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

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Sun Oct 23 23:03:07 PDT 2016


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 <umaselvam1503 at 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161024/6ba80deb/attachment-0003.htm>


More information about the osg-users mailing list