vvuk / gecko-dev

Other
41 stars 5 forks source link

Canvas fully rendered on left eye #9

Open Teybeo opened 10 years ago

Teybeo commented 10 years ago

Hey, I was testing your new build and it seems like there's a problem with firefox vr distortion. These demos were working with your precedent build but are now broken. http://tyrovr.com/lab/webvr/renderer/ http://media.tojicode.com/webvr-test/ http://osgjs.org/examples/dualcam

See for example, tyrovr demo: Old build: Before New build: After

Your demo seems fine though

dmarcos commented 10 years ago

The issue reproduces on OSX 10.9.4. This video illustrates the issue:

https://www.youtube.com/watch?v=hRKea43y720

You can see that the two eyes are rendered properly for a second when transitioning to fullscreen

vvuk commented 10 years ago

Likely because window.innerWidth/window.innerHeight get changed to be the resolution of a single eye, not both like they were before. This was on purpose, but now I'm thinking it was a mistake. I'm not sure what I was thinking, since the individual eye resolution doesn't provide you much info. So a quick fix would be to use window.innerWidth*2 for the width when in fullscreen. This will likely revert in the next build.