+ 1
Bugging out
I added orbitControls to my three.js project but when you rotate it up or down half of the cylinder glitches out (yes I know this is the second question Iâve asked today) https://sololearn.com/compiler-playground/WkYiJ55Vpl79/?ref=app
2 Réponses
+ 7
âïžïž AstroBirb âŠ
Change line 61 from 100 to 1000
+ 5
âïžïž AstroBirb âŠ
your camera is clipping.
https://threejs.org/docs/#api/en/cameras/PerspectiveCamera
change your camera far value from 100 to a bigger number.
const camera = new THREE.PerspectiveCamera(
45,
sizes.width / sizes.height,
0.1,
3000
);