Cameras
Last updated
There are 4 cameras in the JMRMixedReality prefab.
The head camera is tagged as the main camera and is disabled when running on target device, hence if you are using Camera.main
in your application, it will return with a null reference exception.
The head camera renders the application in 2d mono view in the unity editor.
Left and right cameras render the application in 3d stereo view on the target device.
POV camera is used for casting your application to other devices.
Skybox can be used to render the sky. Skybox has other use cases as well as mentioned in unity's documentation.
In the unity editor skybox is enabled by default.
Skybox is enabled by default in VR devices i.e., JioDive
Skybox is disabled by default in AR devices i.e., JioPrism and JioGlass.
Virtual Controller has the functionality to turn the skybox on and off by changing the camera Clear Flags.
You can force the cameras to render in skybox mode by changing the camera clear flags on the OnEnable event after 1-2 frames delay.
Users can still revert to Clear flags
- Solid Color
by toggling VR mode in Virtual Controller.