Thanks again, guys.

Jean-Sebastien, I apologize, but I did not notice your reply until just now!

I didn't write the Slow App code myself, but I do have the power to change it, 
if only on my local machine to test things. You are correct that, in both apps, 
the hierarchy is very flat, with a single group node, which I'll call the 
'Scene Root', and all of the objects in the scene are children of this Scene 
Root, and siblings of one another.

Although, by 'Object', what I really mean is a MatrixTransform that has, as its 
child, the root of a subgraph that contains many geodes, drawables, statesets, 
etc. It is the Matrix Transform that is given the 0x00 node mask in both the 
Quick App and in the Slow App. So, it SHOULD be enough to stop the cull visitor 
right away, and prevent it from looking any deeper into these objects' 
subgraphs.

However, the way I did it in my Quick App is much simpler than how it is done 
in the Slow App. In the Quick App, for each object in the scene, I:

- Load the FLT file & assign the result to a Node*
- Create a new Matrix Transform
- Set the Node* as a child of the Matrix Transform
- Set the Matrix Transform as a child of the Scene Root
- Set the Matrix Transform's node mask to 0x00

However, in the Slow App, there's actually a Model class of our own making, 
that has an osg::Group* member that stores a reference to the model's parent 
node, and an osg::MatrixTransform* that stores a reference to the model's 
Matrix Transform. The constructor of this class follows the same basic steps I 
outlined above, in order to wire everything together, but it's possible that 
I'm overlooking something amongst the added complexity.

Thanks again,
Frank

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=19459#19459





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to