On Wed, 07 May 2008 18:10:43 +0200, 이정석 <[EMAIL PROTECTED]> wrote:
Hi all.
I encounter with VRML file (*.wrl)
I have to load this VRML file on OSG.
How am I suppose to do?
Is there good example? even simple.
Thanks to everybody read my naive questions. :-)
First, be sure that you compiled the vrml plugin, and that it resides in
you environmet path.
You don't say if you want to load your model from console or
programmatical.
From a console, type:
osgviewer.exe youfile.wrl
To see how this is achieved programmatical, have a look in the source code
to osgviewer (applications\osgviewer\osgviewer.cpp).
This line is relevant for you:
osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile("youfile.wrl");
--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org