Page 2 of 2

Re: Cardboard VR

Posted: Thu May 16, 2019 5:24 pm
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:

Re: Cardboard VR

Posted: Fri May 17, 2019 7:36 am
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.

Re: Cardboard VR

Posted: Fri May 17, 2019 7:46 am
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