Hello Cervantes (I assume that's your first name, please correct me if
I'm wrong and please sign with your first name at the end of your
messages as it makes for much friendlier conversation)
I don´t have access to the original model, so i cannot modify it. Can someone
give me a hint of how to correct it?
Even if you don't have access to the model, you can convert it to .osg
and examine it in a text editor:
osgconv <model> model.osg
(replace <model> by the filename of the model)
Also, to see why it's interacting like that with your other models in
your scene, you might want to dump your whole scene graph to a file and
examine that. To do that, just #include <osgDB/WriteFile> and then do:
osgDB::writeNodeFile(*rootNodeToWrite, "filename.osg");
(you can use viewer->getSceneData() as the node to write, for example,
or any other node, but better choose one that's close to your actual
scene root as state is inherited downwards so if you don't choose a node
high enough the suspicious state might be in a node higher than what you
wrote to the file, and you'll never see it)
Then open filename.osg in a text editor and check for suspicious things,
or you could also view it in the stock osgviewer application to see if
the behavior is the same or is specific to your application. I sometimes
also do this, see that the behavior is the same, then tinker with the
.osg file until I get the right results so that I know exactly what
changes to make to my app for it to look like I want.
See this blog post by Paul Martz for other OSG debugging tips (including
the one I gave above):
http://www.skew-matrix.com/bb/viewtopic.php?f=6&t=5
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org