BabylonJS / Babylon.js

Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
http://www.babylonjs.com
Apache License 2.0
23.09k stars 3.41k forks source link

[Suspect] canvas size not restored correctly when switching back and forth to VR #3062

Closed deltakosh closed 6 years ago

deltakosh commented 6 years ago

When entering VR and going back to non-VR, the canvas.width seems wrong

RaananW commented 6 years ago

Just ran a few tests - http://localhost:1338/Playground/index-local.html#5MV04#43 switches between a free camera to a webvr camera and back again. the canvas size is correct after switching to the freecamera.

The problem is - what happens when you simply detach the webvr camera without setting a new one. Then the canvas size is wrong. Question is - is that a bug or a feature?

deltakosh commented 6 years ago

Obviously a feature:) Let's consider it a no repro so far

Thanks you:)