Coder Social home page Coder Social logo

miralabs / mira-unity-sdk Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 17.0 119.3 MB

Mira’s Unity-based SDK enables creators to develop original experiences, re-tool existing 3D assets, or add a premium layer to their existing handheld AR apps.

Home Page: https://developer.mirareality.com

License: Other

C# 62.31% ShaderLab 4.62% HLSL 4.03% Objective-C 22.86% Objective-C++ 0.05% C++ 5.57% C 0.55%

mira-unity-sdk's People

Contributors

phaseone avatar sterlingcrispin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mira-unity-sdk's Issues

Mira Live Preview marker tracking not working

Brief description of issue: I followed the instructions for the Mira Live Preview and was trying to do marker tracking. Unfortunately it does not work to track the marker when running both the WikiMiraTemplate and the Tracking tutorials. I get an error in the console in Unity which says "The current platfrom (OSXEditor) is not supported by the Wikitude Unity Plugin". The head tracking works well as I rotate my head I see both the editor and the phone content changing, however the spiral is never displayed when the marker is visible. The app works if not run in live preview.

All the instructions you had regarding the quality https://developer.mirareality.com/docs/mira-live-preview#section-configuring-quality-settings-to-use-live-preview were already setup and also the metal was already disabled.


This issue was found on:

  • Mira Unity SDK version number: 0.7.0
  • Mira headset version: -
  • Unity version number: 2017.2.0f3
  • Phone model and OS version number: iPhone 8
  • XCode Version number:

Error messages or logs - Output from console in unity

You are trying to create a MonoBehaviour using the 'new' keyword.  This is not allowed.  MonoBehaviours can only be added using AddComponent().  Alternatively, your script can inherit from ScriptableObject or no base class at all
UnityEngine.MonoBehaviour:.ctor()
RemoteManager:.ctor() (at Assets/MiraSDK/Scripts/BTRemote/RemoteManager.cs:79)
RemoteManager:.cctor() (at Assets/MiraSDK/Scripts/BTRemote/RemoteManager.cs:32)

The current platfrom (OSXEditor) is not supported by the Wikitude Unity Plugin
UnityEngine.Debug:Log(Object)
Wikitude.WikitudeSDK:.cctor()
WikitudeEditor.WikitudeEditorExtension:CheckCompatibility()
WikitudeEditor.WikitudeEditorExtension:CheckCompatibility()
WikitudeEditor.WikitudeEditorExtension:.cctor()
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

Destroying background camera when it doesn't exits yet
UnityEngine.Debug:LogError(Object)
Wikitude.WikitudeCamera:InitializeCamera()
Wikitude.WikitudeCamera:Awake()

besides other messages

Tracking multiple markers

I would like to track multiple markers in the same scene and I am having some difficulties understanding the tracking and hierarchy logic on your getting started documentation.

What I would like to do is to have one Mira marker to be tracked and define the origin of the coordinate system (as in your basic example, as I understood it), and then I would like to track another marker and just obtain the pose of my head relative to that second marker. What would be the proper way to achieve this?

Thanks for the help!

Unreachable code in MiraInputModule

When building or running a Unity project with the Mira SDK, there is an unreachable code warning for Assets/MiraSDK/Scripts/EventSystem/MiraInputModule.cs.

This issue was found on:

  • Mira Unity SDK version number: 0.7.1
  • Unity version number: 2018.1

How to reproduce the issue:

  1. Build a Unity project with the Mira SDK included

This was noted as part of this pull request, but it's not immediately clear what the desired behavior is here. It's possible that the return statement is meant to be part of the if block, or maybe the early return is there to prevent an issue noted during development.

.../Assets/MiraSDK/Scripts/EventSystem/MiraInputModule.cs(13,13): Warning CS0162: Unreachable code detected (CS0162) (Assembly-CSharp)

Unclear documentation instructions

Brief description of issue: The GettingStarted page has unclear instructions.


This issue was found on:

  • Mira Unity SDK version number: 0.7.1? I cloned Master on 31 July 2018 https://github.com/miralabs/mira-unity-sdk
  • Mira headset version: N/A
  • Unity version number: 5.6.1f1
  • Phone model and OS version number: N/A
  • XCode Version number: N/A

How to reproduce the issue:

  1. The Getting Started section says "Import the Mira SDK." I have cloned the latest to my computer, but Unity has no "import" option. Instead, I opened the root folder that I cloned in Unity SDK.

Q1: Was it correct to open the root folder of the Mira SDK in Unity?

  1. The next step says: "Configure Player Settings: In the Unity top toolbar, select Mira -> Settings -> and then apply each recommended setting". Unfortunately, I don't seem to have the "mira" option in my Unity top toolbar (or anywhere on my screen): https://www.dropbox.com/s/cc4wlmjys3vmpyd/Screenshot%202018-07-31%2015.16.43.png?dl=0

Q2: How do I actually apply the recommended settings?

Wikitude Image Tracking Doesn't Work with Custom Targets

Brief description of issue:
No custom images can be implemented and then recognized on runtime. Target tracking works with default images as long as the MiraTrackers.wtc file hasn't been added to, but adding new targets and creating new .wtc files (and trying to use them) results in non-responsive runtimes and builds.

This issue was found on:

  • Mira Unity SDK version number: 0.6.0, 0.7.0, 0.7.1
  • Mira headset version: For the iPhone 6, 6s, and 7
  • Unity version number: 2017.2.0f, 2017.3.0f
  • Phone model and OS version number: iPhone 6 OS 11.2.6
  • XCode Version number: 9.2 (9C40b)

How to reproduce the issue:

  1. Load any new image into the WTC Editor.
  2. Modify size as appropriate.
  3. Build or run Live Preview and test target recognition (if you don't get a SIGABRT on a random thread citing an NSRangeException).

Additional comments:

Error messages or logs

XCode will show a SIGABRT on differing threads citing an NSRangeException or the like.

Custom 3D marker

Hi,

I would like to track a 3D marker (e.g. a cube) instead of 2D. An example of the marker that I would like to track can be found here https://github.com/qian256/HoloLensARToolKit which I have been previously tracking with a Hololens. I tried looking into Wikitude and see if they would support this (so it could be used with Mira as well) but wasnt really able to find anything on this. It would be great to know if anyone has seen already something on this.

Thanks a lot for the help!

Image tracking with custom marker not working properly

Brief description of issue:

Hi, I was now trying to add a custom marker to the WikiMiraTemplate.Unity scene. I followed the online instructions and in Unity went to Window/WTC Editor and then added my custom marker (png image) where I confirmed that the dimensions of the marker in the png image are the same as the printed marker - in GIMP it says that the print size is 80 mm width which is the same as the printed marker - and added it to "MiraTrackers". Then went to the MiraTracker gameobject and checked that it appeared there and set my custom marker to "active" (all others active as well).

If I run the example (not using preview), the original Mira marker gets properly detected and the spiral is displayed. If I then put my custom marker, the spiral is displayed but it is displayed not on top of my marker but very close to my eyes (becomes very large) and the movement of the spiral follows the movement of the marker (I rotated it by hand and the spiral rotates in the same way). Any idea why the spiral display would not be the same for my custom marker as it is for the original Mira marker?

Another thing is that if I click to "preview" for some reason the marker is not displayed in the scene, while the original Mira markers are.

I also noticed now that when opening the "Mira_Beta_Small.png" in GIMP it says that the print size of the image is a square of 361.24 mm width but that is not the size of the printed marker, which is 133.0 mm. Is this correct? Does this mean that there is a difference between the size of the printed marker and the print size of the png image?

Thanks!


This issue was found on:

  • Mira Unity SDK version number: 0.7.0
  • Mira headset version:
  • Unity version number: 2017.2.0F3
  • Phone model and OS version number: iPhone 8
  • XCode Version number: 9.2 (9C40b)

Accessing the camera stream

Hi,

I was wondering if there was any simple way to access the camera stream when running one of your applications?

Thanks for the help!

current platform (OSXeditor) not supported by wikitude unity plugin

Brief description of issue:
___on building i get this warning message "current platform (OSXeditor) not supported by wikitude unity plugin"....im using unity 2018.1.0f2 on mac OS 10.13.4...so basically on building the app to the iphone i see my asset already floating in space....anyone else had this issue?!

This issue was found on:

  • Mira Unity SDK version number: 0.7.1
  • Mira headset version: not sure how to find?
  • Unity version number: 2018.1.0f2
  • Phone model and OS version number: iphone7 iOS 11.3.1
  • XCode Version number: 9.3 9E145
    *Mac OS used 10.13.4 High Sierra

How to reproduce the issue:

  1. ___try to build either the prefab for marker tracking or the standard tracking scene.
  2. ___it builds fine but pops message in console, "The current platform (OSXEditor) is not supported by the wikitude unity plugin UnityEngine.Debug:Log(Object)
  3. ___build to iphone from xcode, when testing thru the mira headset, the marker geometry is already in the scene , does not prompt to track...and does not track either, no 6DOF experience.

Additional comments:


Error messages or logs


the build doesn't work after the first attempt

Hello,
I've been trying to build the tutorial scene many times, I went through the link provided in the website, and this is what happens everytime.
The first build with device connected works perfectly, I terminate the app, remove the chord, restart the app, it crashes, I connect it again to debug it and it says it gets a sigKill from an uncaught exception.


This issue was found on:

  • Mira Unity SDK version number: mira-unity-sdk_v0.7.1.unitypackage
  • Mira headset version: no headset yet
  • Unity version number: 2017.1
  • Phone model and OS version number: Iphone 6 OS 11.1
  • XCode Version number: 9.2

How to reproduce the issue:

  1. follow tutorial build on unity then xcode
  2. start app on phone it works
  3. restart app , it doesn't work, it dies

Additional comments:


Error messages or logs
Crash report:
2018-02-05 13:56:04.013935-0500 example[48379:4468398] Wikitude SDK Error: 'Error setting focus mode. The focus mode '2' is not supported by the current capture device '<AVCaptureFigVideoDevice: 0x1100258b0 [Front Camera][com.apple.avfoundation.avcapturedevice.built-in_video:1]>'.'
2018-02-05 13:56:04.014041-0500 example[48379:4468398] Wikitude SDK Error: 'Error setting focus range restriction. Focus range restrictions are not supported by the current capture device '<AVCaptureFigVideoDevice: 0x1100258b0 [Front Camera][com.apple.avfoundation.avcapturedevice.built-in_video:1]>'.'
Using front facing camera
MiraWikitudeManager:Start()

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

2018-02-05 13:56:04.021180-0500 example[48379:4468398] Wikitude SDK Error: 'Error setting focus mode. The focus mode '2' is not supported by the current capture device '<AVCaptureFigVideoDevice: 0x1100258b0 [Front Camera][com.apple.avfoundation.avcapturedevice.built-in_video:1]>'.'
2018-02-05 13:56:04.021298-0500 example[48379:4468398] Wikitude SDK Error: 'Error setting focus range restriction. Focus range restrictions are not supported by the current capture device '<AVCaptureFigVideoDevice: 0x1100258b0 [Front Camera][com.apple.avfoundation.avcapturedevice.built-in_video:1]>'.'
2018-02-05 13:56:04.021749-0500 example[48379:4468398] Wikitude SDK Error: 'Error setting torch mode. Torch is not supported by the current capture device '<AVCaptureFigVideoDevice: 0x1100258b0 [Front Camera][com.apple.avfoundation.avcapturedevice.built-in_video:1]>'.'
2018-02-05 13:56:04.062352-0500 example[48379:4468449] Uncaught exception: NSRangeException: *** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array
(
0 CoreFoundation 0x0000000186839d1c + 148
1 libobjc.A.dylib 0x0000000185a88528 objc_exception_throw + 56
2 CoreFoundation 0x00000001867d2bd4 _CFArgv + 0
3 CoreFoundation 0x00000001867bfd38 + 188
4 WikitudeMiraSDK 0x0000000103f5dc14 -[WTCameraFrameStorageMetal getDrawableCameraFrame] + 76
5 WikitudeMiraSDK 0x0000000103f563bc -[WTCameraFrameRendererMetal renderCameraFrameForLumaTexture:andChromaTexture:withFrameId:withCommandQueue:] + 152
6 WikitudeMiraSDK 0x0000000103f53374 __74-[WTVideoCamera metalCaptureDataOutputHandlerForCaptureDataOutputHandler:]_block_invoke + 336
7 WikitudeMiraSDK 0x0000000103f5fe54 -[WTCaptureDataOutputHandlerMetal processImageBuffer:withFrameId:] + 284
8 WikitudeMiraSDK 0x0000000103f5294c -[WTVideoCamera captureManager:didOutputSampleBuffer:fromConnection:atFrameId:] + 156
9 WikitudeMiraSDK 0x0000000103f6a0f4 -[WTCaptureManager processRunningSampleBuffer:fromConnection:] + 144
10 CoreFoundation 0x0000000186841670 + 144
11 CoreFoundation 0x00000001867206cc + 292
12 CoreFoundation 0x000000018672516c + 60
13 WikitudeMiraSDK 0x0000000103f6939c -[WTCaptureManager captureOutput:didOutputSampleBuffer:fromConnection:] + 228
14 AVFoundation 0x000000018c137570 + 344
15 AVFoundation 0x000000018c137388 + 100
16 CoreMedia 0x00000001899a193c + 260
17 CoreMedia 0x00000001899bdf98 + 224
18 libdispatch.dylib 0x00000001861bd048 + 16
19 libdispatch.dylib 0x00000001861c53d4 + 428
20 libdispatch.dylib 0x00000001861ceca4 + 1588
21 libdispatch.dylib 0x00000001861c6d00 + 200
22 libdispatch.dylib 0x00000001861c77d8 + 340
23 libdispatch.dylib 0x00000001861c6d00 + 200
24 libdispatch.dylib 0x00000001861c77d8 + 340
25 libdispatch.dylib 0x00000001861c8200 + 400
26 libdispatch.dylib 0x00000001861d04a0 + 644
27 libsystem_pthread.dylib 0x0000000186462fd0 _pthread_wqthread + 932
28 libsystem_pthread.dylib 0x0000000186462c20 start_wqthread + 4
)
2018-02-05 13:56:04.064496-0500 example[48379:4468449] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(0x186839d04 0x185a88528 0x1867d2bd4 0x1867bfd38 0x103f5dc14 0x103f563bc 0x103f53374 0x103f5fe54 0x103f5294c 0x103f6a0f4 0x186841670 0x1867206cc 0x18672516c 0x103f6939c 0x18c137570 0x18c137388 0x1899a193c 0x1899bdf98 0x1861bd048 0x1861c53d4 0x1861ceca4 0x1861c6d00 0x1861c77d8 0x1861c6d00 0x1861c77d8 0x1861c8200 0x1861d04a0 0x186462fd0 0x186462c20)
libc++abi.dylib: terminating with uncaught exception of type NSException

Thank you
Aziz

Project Dead?

Hi,
there's a long time ago since the last update. Is this project dead?
Thx forward for reply.

Documentation out of date?

Brief description of issue: Step 1 of the Controller Interactions and Events section asks you to "Add Mira Input Module to your scene's Event System". That module does not exist. Has it been renamed?


This issue was found on:

  • Mira Unity SDK version number: 0.7.1
  • Mira headset version: N/A
  • Unity version number: 2018.2.6f1 (Personal)
  • Phone model and OS version number: N/A
  • XCode Version number: N/A

How to reproduce the issue:

  1. Step 1 of the Controller Interactions and Events section asks you to "Add Mira Input Module to your scene's Event System". That module does not exist. Has it been renamed? Two most similar are "Mira Controller" and "Mira Example Interaction Script" : https://www.dropbox.com/s/j09rszgnz6k628a/Screenshot%202018-09-02%2014.45.53.png?dl=0

Additional comments:
Thanks.


Error messages or logs


2D Transition Behavior

https://github.com/miralabs/mira-unity-sdk/blob/b6aff080b945f8f05496b94da9701a2726cff21c/Assets/MiraSDK/Scripts/Transition2D.cs

The Transition2D script doesn't seem to automatically detect landscape when the phone's rotation starts off in landscape. I'm having to rotate to portrait and then back to landscape in order for it to transition.

It also doesn't seem to automatically detect landscape when the device is locked in portrait like the Google Cardboard app.

I'm on 2017.1.0f3

hello ,I downloaded SDK and packaged the WikiMiraTemplate scene in it for testing. I matched the controller to the cell phone in the way I was in the document, but I found my controller kept still, and that was the case in other scenes.Can you help me to solve this problem

Brief description of issue:


This issue was found on:

  • Mira Unity SDK version number:
  • Mira headset version:
  • Unity version number:
  • Phone model and OS version number:
  • XCode Version number:

How to reproduce the issue:




Additional comments:


Error messages or logs


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.