Help! Model visibility bug when moving camera inside

Hi! I am new to three js (it’s my third day learning it, I guess) and I am stuck:)

I’ve been trying to animate a camera following a curve inside a 3d tunnel. Everything works fine except that a model dissapears on some curve segments when the camera moves inside. If I place a camera outside 3d model, everything looks ok and I don’t see any missing geometry. I figured out that changing camera fov to bigger values (> 140) somehow fixes the problem, but I don’t understand how:)

Here is my code
https://codesandbox.io/p/sandbox/3qtxwh

flow.object3D.frustumCulled=false;

1 Like

Wow, it works! Thanks a lot