[osg-users] converting any 3d models to osg,osgb or osgt

359 views
Skip to first unread message

Uma Devi Selvaraj

unread,
Oct 24, 2016, 1:27:44 AM10/24/16
to osg-...@lists.openscenegraph.org
Hi all,

I need to convert 3d Models(.3ds,.ply,.obj,.. ) to osg or osgb or osgt using code. I know that by running "osgconv input output" command in console will do conversion. Is there any option using osgconv in c++ code.
If so how to use osgconv in code ..??

...

Thank you!

Cheers,
Uma

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





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Trajce Nikolov NICK

unread,
Oct 24, 2016, 2:03:11 AM10/24/16
to OpenSceneGraph Users
Hi Uma,

have a look at the osgconv code .... it is very thin applet. What you do is simply:

osg::Node* model = osgDB::readNodeFile("filename.ext");
osgDB::ReaderWriter::WriteResult result = osgDB::Registry::instance()->writeNode(model,"fileNameOut.osgb");
or
osgDB::writeNodeFile(model,"fileNameOut.osgb");

On Mon, Oct 24, 2016 at 7:27 AM, Uma Devi Selvaraj <umasel...@gmail.com> wrote:
Hi all,

       I need to convert 3d Models(.3ds,.ply,.obj,.. ) to osg or osgb or osgt using code. I know that by running "osgconv input output" command in console will do conversion. Is there any option using osgconv in c++ code.
If so how to use osgconv in code ..??

...

Thank you!

Cheers,
Uma

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





_______________________________________________
osg-users mailing list

Uma Devi Selvaraj

unread,
Oct 24, 2016, 2:21:00 AM10/24/16
to osg-...@lists.openscenegraph.org
Hi Trajce,


Thanks for the reply :).

...

Thank you!

Cheers,
Uma

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69127#69127
Reply all
Reply to author
Forward
0 new messages