Disable Frustum Culling

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nophlock


I would like to know if there’s a way to disable Frustum Culling for certain objects in 3D? I’m asking because, I’m generating a terrain with a chunk-system for my game and culling is only needed for the chunks. All other objects lies within the chunks and therefore can just rely on the chunks occlusion. I am a bit afraid that the performance will suffer if every object also makes an frustum-check even though they don’t need to. So I would like to know if this is possible somehow?

Thanks for any help.

:bust_in_silhouette: Reply From: Nophlock

Just to give help to the people that have a similar problem. In the end I’ve just added an “VisibilityNotifier” to each of my Chunk-Objs and use the “camera_entered” and “camera_exited” signal to hide or show the Chunk-Obj itself (“self.show()” and “self.hide()”). Every Object that’s within the chunk is been added as an child of it and since the visibility will be derived from it’s parent, every object automatically get’s hidden without performing any Frustum-Check.

Hope it’s help someone

And what if I don’t have any nodes?
I’m using VisualServer to draw meshes

Maksanty | 2019-10-06 07:48