Download the latest version of Unity. During the install, make sure that you have iOS Build Support selected
Configure Player Settings:
In the Unity top toolbar, select Mira -> Settings -> and then apply each recommended setting
If you're utilizing marker tracking, open the WikiMiraTemplate scene from Assets -> MiraSDK -> TemplateScenes. If you're not tracking, open the RotationalMiraTemplate scene instead.
If you're converting an existing scene, and you are using marker tracking, drag the MiraWikiTracking prefab from the Prefabs folder. If you do not plan to use tracking in your application, drag the MiraRotationalOnly prefab into your scene.
The Mira Prefabs include the following components, activated at runtime:
- Wikitude Computer Vision
- Mira Stereo Camera Rig
- Gyroscope-based rotational tracking
- Counter-distortion Rendering
- 3-Degrees-of-freedom controller and event/raycast system
To place the user in a virtual environment, the Prism utilizes 2 types of tracking:
Rotational tracking has 3 degrees-of-freedom, meaning the scene will respond to the headset's orientation, but does not respond to translation. When the user moves side-to-side, the planets will remain orbiting the headset.
In the example scenes (and in the images below) the planets use Head Orientation tracking. If the user looks around the scene, the planets will appear to stay in the same spot.
Marker tracking has 6 degrees-of-freedom, meaning that the user can move around the physical tracker, and the virtual content will appear stuck to the marker
- An object that is a child of the MiraARCamera will inherit the camera's position and rotation.
- An object with no parent will remain stationary.
- An object that is a child of the HeadOrientation will inherit the camera's position, but not the rotation.
- An object with no parent will behave as though stuck to the tracker.
For more information on the scene hierarchy, see:
To recenter the controller and camera rig, enter play mode, and hit the Start button (the button with a circle, on the bottom of the remote)
Parent an object to the BTController to have it rotate with the controller. For details on controller interactions, see the Controller Interactions page: Controller Interactions
To change the scene scale, set the ScaleMultiplier on the MiraArController. A value of 100 will set 1 Unit == 1 Meter. This will scale all aspects of the Mira system, to fit the size of a pre-existing application. If you are building an app from scratch, we strongly recommend sticking with the default value of 100 (meter scale)
For more information, see the Scale FAQ:
Frequently Asked Questions
Updated 2 years ago
|Building to iOS|