Hi,

For reasons that aren't relevant I'm trying to "merge" multiple .obj files into 
one.  Each .obj file fairly small and includes  the typical mtllib, usemtl 
statements then is followed by the "g" group name then the list of vertices "v" 
then a list of facets, "f".  All very normal, I can load and view the files no 
problem.  

So maybe this isn't the best way to do this but to "merge" I'm doing:

osgDB.writeNodeFile(osgDB.readNodeFiles(objFileList,mergedObjFileName)

where, objFileList is a list of the file paths to each of the .obj files to 
merge, mergedObjFileName is the output .obj file name.

This does, technically, work.  However, in the final, merged, .obj file I've 
lost what I specified for mtllib, usemtl and the group "g" names!!!!  It looks 
like all those have been auto generated?  Am I missing something?  I know there 
is the ability for osgDB.readNodeFiles and osgDB.writeNodeFiles to take other 
command line parameters?  So should I be specifying some?  Help!  Any guidance 
would be appreciated!

Is there a better way to handle the merge?


Thank you!

Cheers,
Robert

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to