Hi Michael, Write the model out to a .osg file, this will give you a clear indication of what structure the scene graph has once its loaded.
Another thing to look at is the effect that running the osgUtil::Optimizer has on the scene graph. Robert. On 5/7/07, Bosse, Michael A @ Link <[EMAIL PROTECTED]> wrote:
The code in the book example experiences the same issue that I am confronted with. Apparently, when a flt file has a particular structure, it does not appear that a node visitor applied at the root node will traverse all of the child nodes. Some of our flt databases have multiple group nodes attached to the root node. So the database would look like (in creator): [db] | [g1] | [g2] [node][node][node][etc..] When I utilize the code as given in the numerous examples that employ it, the found node is either empty, a null vector, or the scene root node. Sorry if I did not explain this better. -----Original Message----- From: [EMAIL PROTECTED] on behalf of Paul Martz Sent: Mon 5/7/2007 12:18 PM To: 'osg users' Subject: RE: [osg-users] OpenFLT There's a FindNamedNode visitor in the Quick Start Guide examples, maybe that'll help you find the problem with your code. http://www.openscenegraph.com/osgwiki/pmwiki.php/Documentation/QuickStartGui de -Paul _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bosse, Michael A @ Link Sent: Monday, May 07, 2007 9:40 AM To: osg-users@openscenegraph.net Subject: [osg-users] OpenFLT I am currently using a node visitor applied to the group root node of my scene to locate by name, nodes in a scenegraph loaded from an open flight file. My code works properly for any situation where there is no group node below the db node in the database. The code I am using is the standard example of a node visitor. I am not sure why I can not seem to get pointers back when there is that group node below the db node. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/