Hi Leviskim,

Simply do:

  viewer.setSceneData(0);

Robert.

On 21 December 2014 at 12:29, Hyuntai Kim <[email protected]> wrote:

> Hi,
>
> I have made 3D app several times, but I am new as for OSG.
>
> I use the sample code below like this.
>
>     osg::ref_ptr<osg::Node> node = osgDB::readNodeFile(fileName);
>     viewer->setSceneData(node.get());
>
> and I want to just reset my viewer to as unload status.
>
> I think that it is basic, so I tried to find this at the beginners book
> and here. but I failed to find it.
>
>
> ...
>
> Thank you!
>
> Cheers,
> leviskim
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=62149#62149
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to