#scaling between image from WebXR camera-access and the window.inner dimensions

5 messages · Page 1 of 1 (latest)

steel fiber
#

How does the camera texture get resized between its actual size (3120x1440) and the size of the browser window (916x412)? I need to align coordinates generated on the first image size with how the camera renders in the browser window, but the positioning is way off. Any help would be greatly appreciated.

steel fiber
#

actually looks like the screen is the correct aspect ratio (892x412) but the window.innerHeight is larger than that, why???

tight meteor
steel fiber
#

does threejs use the webgl viewport or the normal one?