I am using GLTFLoader but only part of my scene is loading at one time. As if render distance would be set to be really small but I cannot find where I could increase the render distance…
Render.txt (2.2 KB)
I am using GLTFLoader but only part of my scene is loading at one time. As if render distance would be set to be really small but I cannot find where I could increase the render distance…
Render.txt (2.2 KB)
Its where you create the camera, in your case, 5000:
camera = new THREE.PerspectiveCamera(40,window.innerWidth/window.innerHeight,1,5000);
However,if the diff between near plane (1 in your case) and far plane (5000, or max render distance as you called it) is too big, z-buffer will be less accurate and you’ll experience artifacts. So I recommend scaling down your model instead.
A good recommendation is 1 unit = 1 meter, so now ask yourself if your model really is more than 5000 meters long?
You are a hero, I could not find this anywhere else. And I will try to scale my model down too. Thank you!!!