"Shawn Kennedy" writes:

> Hi,
>
> We use OSG for one of our products, and I recently upgraded it from
> 2.6.0 to 3.0.0.  We are now running into a problem where a
> Node->asGroup call which once returned non-zero is now returning zero.
> I'm having difficulty debugging the issue and I'm wondering if anyone
> can shed some light on why this may be happening.
>
> Little more detail:
>
> I have a Switch, which I add two children (Nodes) to using
> readNodeFile.  I then try to add a child to one of those children
> using Node->asGroup->addChild, but asGroup is returning zero.

Hi Shawn,

could it be that the plugin you are using for loading your data has
changed a little its behaviour and now it creates a slightly different
graph? You can check this by loading the data in OSG and then exporting
it to a format you can easily read. If the files are small, .osg will
do. Otherwise, you can use osgconvert to do convert it to .dot file and
then process it with the `dot' program in the Graphviz suite
(http://www.graphviz.org/) in order to have a diagram for you to peruse.

Once you solve this, you can go into more robust ways of locating
elements in the graph. Usually the NodeVisitor pattern can locate
specific nodes in it even when the graph suffered changes.

-- 
Alberto

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to