+ 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

30th Apr 2025, 2:27 AM
☕︎︎ AstroBirb ✦
☕︎︎ AstroBirb ✦ - avatar
2 Antworten
+ 7
☕︎︎ AstroBirb ✦ Change line 61 from 100 to 1000
30th Apr 2025, 3:23 AM
BroFar
BroFar - avatar
+ 6
☕︎︎ 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 );
30th Apr 2025, 3:31 AM
Bob_Li
Bob_Li - avatar