<div dir="ltr">Hi Uma,<div><br></div><div>have a look at the osgconv code .... it is very thin applet. What you do is simply:</div><div><br></div><div>osg::Node* model = osgDB::readNodeFile("filename.ext");</div><div>osgDB::ReaderWriter::WriteResult result = osgDB::Registry::instance()->writeNode(model,"fileNameOut.osgb");</div><div>or</div><div>osgDB::writeNodeFile(model,"fileNameOut.osgb");</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 7:27 AM, Uma Devi Selvaraj <span dir="ltr"><<a href="mailto:umaselvam1503@gmail.com" target="_blank">umaselvam1503@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
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.<br>
If so how to use osgconv in code ..??<br>
<br>
...<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Uma<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=69125#69125" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=69125#<wbr>69125</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>