Hi,
I am creating a 3d geometry model and saving it out to osg, osgb, osgt and ive
formats.
I tried to view the saved files in osgviewer and strangely, I can only view the
ive file. The others (osg, osgb, osgt) are not visible in viewer as only the
background clear_color is seen. As can be seen in the attached osg file, the
geometry and all the children seem to be saved correctly.
I set OSG_NOTIFY_LEVEL to Debug and the output obtained is attached (too long
to paste here)
The writeNodeFile(..) returns true for all 4 file types.
The readNodeFile(..) returns a valid pointer to the node that I double checked
with displaying numChildren.
Code:
if(osgDB::writeNodeFile(*cylinderGroupNode.get(), pipeNameToSave + ".osgb"))
{
std::cout << "written out osgb\n";
}
if(osgDB::writeNodeFile(*cylinderGroupNode.get(), pipeNameToSave + ".osgt"))
{
std::cout << "written out osgt\n";
}
if(osgDB::writeNodeFile(*cylinderGroupNode.get(), pipeNameToSave + ".osg"))
{
std::cout << "written out osg\n";
}
if(osgDB::writeNodeFile(*cylinderGroupNode.get(), pipeNameToSave + ".ive"))
{
std::cout << "written out ive\n";
}
Alternately, I created a test scene graph by loading the cow.osg, cessna etc
and saved the resultant as a .osgt, .osgb and osgviewer is able to open this.
Not sure what I'm missing in this particular problem.
Using 0sg 3.0.1 (built from source), VisualStudio 2008, Win 7 32 bit.
Thank you
Sincerely,
Sanat.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42339#42339
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org