Closed Bug 1246868 Opened 10 years ago Closed 9 years ago

[webvr] WebGL canvas size and WebVR getEyeParameters().renderRect size

Categories

(Core :: Graphics: CanvasWebGL, defect)

47 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mail, Unassigned)

Details

(Whiteboard: gfx-noted, [webvr])

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160204142810 Steps to reproduce: When using the WebVR getEyeParameters().renderRect size to set the size of the WebGL canvas, then Firefox renders the WebVR output wrong (Firefox Nightly 47.0a1, Windows 7, Oculus Rift DK2, SDK 0.8.0). The VR rendering is currently only correct when using the screen/window size for the canvas size, but this is WRONG - because this way the VR rendering resolution depends on the resolution of the normal desktop screen - and this one can be lower or higher than the one from the VR device (which could cause too low rendering res for VR or waste of rendering power when higher). You can see the problem here in the Quake 3 WebGL Demo from Brandon Jones: http://media.tojicode.com/q3bsp/ or here in the krpano WebVR example: http://krpano.com/krpanocloud/webvr/index.html?v=119pr3 See also the WebVR spec and example there: http://mozvr.github.io/webvr-spec/webvr.html#dom-vreyeparameters-renderrect That means when implementing WebVR by following the specs, Firefox currently behaves wrong. For the moment I will add a special workaround for Firefox in krpano, but it would be nice when this would get fixed soon. Best regards, Klaus
Whiteboard: gxf-noted
Whiteboard: gxf-noted → gfx-noted
Whiteboard: gfx-noted → gfx-noted, [webvr]
Kip, it looks like the canvas size still resizes to desktop despite setting it to intermediate render size?
Flags: needinfo?(kgilbert)
This will be changed with the implementation of the WebVR 1.0 API (Bug 1250244). Should we fix this first, or wait for WebVR 1.0 to fix it?
Flags: needinfo?(kgilbert) → needinfo?(caseyyee.ca)
Na, I guess we can forgo and wait for 1.0.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(caseyyee.ca)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.