[osg-users] hud camera not saving in the osgb file extension osg3.3.7

Roni Zanolli roni at compro.net
Tue Apr 28 07:57:27 PDT 2015


Hi,

I tried to save the osghud example to a osgb file and when I tried to open
the saved file using osgviewer the truck model is there but not the hud group is not. However if I save the file to a osg or osgt file everything works fine.

I have osg 3.3.7 developer release

   below where I have add the writeNodeFile call to the osghud example:

        // add the HUD subgraph.
        if (scene.valid()) group->addChild(scene.get());
        group->addChild(createHUD());

        osgDB::writeNodeFile(*group, "hud.osgb");
 
        // set the scene to render
        viewer.setSceneData(group.get());

 Any ideas?

Thank you!

Cheers,
Roni

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








More information about the osg-users mailing list