Forum Discussion
donner1122
12 years agoHonored Guest
Help with 2 Cameras
Hello developers!
I am new to this and need some help. In unity, I have an OVRCameraController with a mouse look and a FpsInput controller.
The camera moves just fine, but when i use use the mouse to look around, only the right camera/screen moves. Thanks in advanced!
I am new to this and need some help. In unity, I have an OVRCameraController with a mouse look and a FpsInput controller.
The camera moves just fine, but when i use use the mouse to look around, only the right camera/screen moves. Thanks in advanced!
8 Replies
Replies have been turned off for this discussion
- donner1122Honored GuestThe left side/camera does not move. it just stays the same.
- boone188Honored GuestDo you have the mouse look or fps control component attached to the left camera?
- ProtonHonored GuestYou might still have a 'Main Camera' from a default scene. Delete that.
- adaptationHonored GuestI've always wondered how it would be to see like a chameleon.
- cyberealityGrand ChampionYou have to make the FollowOrientation parameter of the OVRCameraController set to your First Person Controller. You may also have to make some edits to the script, see this thread:
viewtopic.php?f=37&t=3018&p=37280#p37280
Also moved to the Unity section since it's a Unity question. - RyuMasterHonored GuestI also have question about 2 cameras. I've bought Universe Sky component, in deffered lighting mode, in order to sort depth correctly, I need to render it to separate cameras with its own culling mask.
So, I clone 2 default Oculus Rift cameras, parent them to original ones to have 100% match, set original cameras depth mode to Depth Only, new Cameras to Skybox, and correct culling masks.
But when I start the game, I get many errors. I suppose, default Oculus camera script is ment to work with 2 cameras only, I can not attach it to additional cameras like that? - cyberealityGrand ChampionWell deferred rendering is only partially supported, so I am not surprised you are having issues. I recall some people had setups with multiple OVRCameras, but I can't remember the exact steps needed to get it to work.
- RyuMasterHonored GuestHmm well I guess I'll wait for future Unity integration releases, meanwhile focusing on something else. I can see there is deffered rendering patch in neighbour thread, maybe it will get merged with original code soon.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 2 years ago