Re: [osg-users] [osgPlugins] osgDB OBJ Plugin

2009-05-14 Thread Robert Youngren
Alright, some more details. I'm converting some constructive geometry models from BRL-CAD into faceted models in OBJ format. I'm converting them region by region in a constructive geometry sense. Each region becomes a group in an OBJ file sense. Now, each region has a material value

Re: [osg-users] [osgPlugins] osgDB OBJ Plugin

2009-05-14 Thread David Spilling
Robert, At the moment the OBJ loader builds a material to stateset map, which is indexed by the material name. However when the stateset is applied to a geometry, the material name is effectively lost. Also the OBJ loader reads the group name (i.e. g groupname in the .obj) and any object name

Re: [osg-users] [osgPlugins] osgDB OBJ Plugin

2009-05-13 Thread Robert Youngren
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

Re: [osg-users] [osgPlugins] osgDB OBJ Plugin

2009-05-13 Thread Chris 'Xenon' Hanson
Robert Youngren wrote: 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