Hi guys,
Found this example here : three.js examples , if I resize the height of the browser ( 20% of the screen by ex) the camera seems to “zoom out”, here two examples which are working verry fine without the “zoom out” effect when I resize the browser height: https://immersive-g.com/ & https://lusion.co/, somebody know how to achieve that ? The camera seems to not be affected by the height of the browser.
Thanks !
Yes.
One possible way is this: https://codepen.io/boytchev/full/MWdgYvw
1 Like
Will dig that, thanks Pavel!
Here’s an approach that tries to preserve an aspect ratio of 1 for the content:
https://western-experienced-sushi.glitch.me
(code in renderer.js: Glitch :・゚✧ )
This behavior feels more intuitive to me than the default.
2 Likes