Forum Discussion

callecocos's avatar
1 month ago

Meta OVRManager camera transforms

I am struggling with controlling the rotation of the CenterEyeAnchor camera. I am working with a RenderTexture that I render my main camera to (located on the CenterEyeAnchor). 

Is there any way to the render the camera in a set direction while still being able to read the headsets world rotation?

2 Replies

  • Thank you JCorfer​

    In my case I had to read the tracker's rotatin as I am using the main camera for controlling the game. But thank you for your help. Rotating the RenderTexture around the main camera helped a lot in the next step.

  • JCorfer's avatar
    JCorfer
    Start Member

    Hi!

    If I understood well, I would say that you cannot modify the main camera's rotation or position directly, because his transform is been calculated by the SDK or maybe it would generate glitchs, I'm not shure. 

    Something that could works for you would be rotate your RenderTexture around the main camera until his forward direction to position the RenderTexture front the user. 

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions