Cardboard VR

All topics about ZGameEditor goes here.

Moderator: Moderators

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

Re: Cardboard VR

Post by Ats » Thu May 16, 2019 5:24 pm

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: 2020
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Cardboard VR

Post by VilleK » Fri May 17, 2019 7:36 am

Kjell wrote:
Wed May 15, 2019 6:02 pm
the 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: 1714
Joined: Sat Feb 23, 2008 11:15 pm

Re: Cardboard VR

Post by Kjell » Fri May 17, 2019 7:46 am

Hej Ville,
VilleK wrote:
Fri May 17, 2019 7:36 am
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.
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