gecko-dev icon indicating copy to clipboard operation
gecko-dev copied to clipboard

Canvas fully rendered on left eye

Open Teybeo opened this issue 11 years ago • 2 comments

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

Teybeo avatar Aug 01 '14 15:08 Teybeo

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

dmarcos avatar Aug 06 '14 00:08 dmarcos

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.

vvuk avatar Aug 06 '14 01:08 vvuk