Hi, using java3d
I wonder if I should bother adding / removing objects from the scene-graph when they are out of sight. (I’m talking about a lot of polygons offscreen.)
Hi, using java3d
I wonder if I should bother adding / removing objects from the scene-graph when they are out of sight. (I’m talking about a lot of polygons offscreen.)
Nope. One of the basic scenegraph features is that objects out of sight are culled away from rendering.
It MIGHT make sense when you know they are out of sight from other sources than frustrum intersection.
thanks!
I probably won’t have this problem but I’m curious… What if I need to rotate offscreen many-polygon objects? This will still take time, right?
hmm… or does it merely store/append the transformation and apply it when the object is visible?
if you rotate an object, it’s transformation matrix is changed, yes. This also may cause a recomputation of visibility.
Rotation itself is a very cheap operation.
There are more options of course. You could place the rotation code in a behavior that only fires when the object gets visible.