Control rendered only if corresponding Spatial is visible


I added a Control to a Node in my scene and I wanted to display some debug objects, so I overrode the controlRender() method of the Control. However I found out that this is only called if the Node is not culled. Is there a way to turn this behavior off, or maybe that’s not the way to do it?

The point is that its not called cause culling means no rendering.

OK, maybe I haven’t understood the purpose of the controlRender() method. I thought the culling was about the Node, not about the Control. If I have some objects to show the state of the Control, and that they are in a completely different position, shouldn’t they still be rendered ?

You shouldn’t do that in render() but in update(). Best read the manual and javadoc to get this kind of information.

Thanks for this valuable information.