Re: Java3D Scene Graph Traversal Question.
Posted by philjord on Feb 05, 2019; 8:19pm
URL: https://forum.jogamp.org/Java3D-Scene-Graph-Traversal-Question-tp4039476p4039485.html
Yes the full scene graph is traversed and all transforms multiplied in. I assume it does the children in first to last order (which would be naturally drawn left to right on a normal drawn graph).
Note that in a reasonable size system many many of the tree branches, Nodes (Shape3D etc) and Node components (Appearance etc) are shared and linked so there are 2 distinct traversals;
One that compiles the tree into a fast access structure for rendering, that occurs on the makeLive call of a BranchGroup, this is quite expensive in terms of processing.
One that occurs on every render frame that accumulates the render settings for a Geometry and makes the render calls, this one is very fast (but goes through a structure that is not designed for human readability)