Cardboard VR

All topics about ZGameEditor goes here.

Moderator: Moderators

User avatar
Ats
Posts: 603
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Cardboard VR

Post by Ats »

Awesome Kjell!
With that projection Matrix, everything's work, and I don't even have to initialize the screen on Android with an empty AppState :wink:
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Cardboard VR

Post by VilleK »

Kjell wrote: Wed May 15, 2019 6:02 pmthe AspectRatio properties aren't meant to be updated in real-time / mid-frame
It should work to update those properties in OnBeginRenderPass though. But I haven't followed the details of this thread so I guess there is a reason you are not doing that.
User avatar
Kjell
Posts: 1876
Joined: Sat Feb 23, 2008 11:15 pm

Re: Cardboard VR

Post by Kjell »

Hej Ville,
VilleK wrote: Fri May 17, 2019 7:36 amIt should work to update those properties in OnBeginRenderPass though. But I haven't followed the details of this thread so I guess there is a reason you are not doing that.
He's using 2 render passes ( one for each eye ) but wants the mouse coordinates for the entire screen ... and since mouse coordinates are mapped & clamped to the active viewport that's not possible by only updating the properties in OnBeginRenderPass.

K
Post Reply