TestCube not visible further than 1000 regardless of set_draw_range_end()

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Charlie
:warning: Old Version Published before Godot 3 was released.

I scripted a moving camera, and added code to TestCube so I can grow it as the camera moves away. At close ranges set_draw_range_begin() and set_draw_range_end() work exactly as I would expect. However, the TestCube becomes invisible somewhere right around 1000 moving out, and becomes visible again at around 1000 moving in, regardless of setting set_draw_range_end(10000) or other arbitrarily high values.

Is 1000 a hard coded range limit for visibility? Or is there another setting I need to know?

:bust_in_silhouette: Reply From: mollusca

There’s also the far clipping plane of the Camera which by default is set to 100 (in 2.1). In the inspector you can set it to a maximum of 4096, but if you use set_perspective or set_orthogonal you can set it much higher.

That was it. Thanks!

Charlie | 2017-11-21 14:25