Stop render script from hiding 3d animated models?

Can I turn something off in the default render script so that the game stops trying to hide my 3d animated models based on where the camera is looking?
Right now, my game is hiding my 3d animated .glb models aggressively based on where camera is pointing. They get hidden when the animated 3d character moves closer to the camera. When the camera looks up or looks to the side, with model still visible on screen, the model gets hidden. My character is in multiple meshes and the game hides her eyeballs first but still shows her body for a moment before hiding her body. It’s not fixed by adjusting the camera minZ or by scaling down my models. I think this is called culling or frustum culling?
I think its caused by the render script because when I use the operator plugin’s render script this problem doesn’t happen. I think there’s something in the regular render script that causes this aggressive hiding but I don’t understand what is causing it. I want to make it stop hiding my 3d animated models so I can use render scripts similar to the default one. If I can do something quick and dirty to make it never hide character that would be great.

Operator render script:

Default render script:

Vantage render script (similar to default):

It’s not a problem, it’s actually a very useful feature called frustum culling. It’s the recommended way to render objects efficiently.

If you don’t want to use it, you can turn it off by setting use_frustum = false on this line:

However, disabling it may lead to performance issues that you’ll need to address yourself.

Other render scripts actually have to implement this feature.

1 Like