This isn’t a direct OSG question, but one I was hoping people on this list might be able to help out with. We have several thousand FLT files that use rgbs as textures. Unfortunately we can’t convert these to ive or osgb files as they are shared with another application that is not made in OSG and only supports FLT files. However, both can support FLT files using DDS textures to allow for texture compression. Through testing we have shown a large improvement by doing this, so we want to go that route.
The issue is how to convert all of these FLT files over. We can easily batch convert all of the textures, that is not a problem. The issue is updating the FLT files themselves to tell them to point to the dds texture instead of the rgb texture. Having someone manually open up each file and edit the texture names is VERY time consuming. Does anyone know of an easy way we could do this through scripting or a custom converter or something else? The files will stay named the same except for the .rgb will become .dds.
Thanks in advance.
Karl Cary
SAIC
Software Developer
I'll second Robert's suggestion of simply loading the .FLT file, programmatically changing the texture references, and exporting back to .FLT. This seems like the easiest approach, so you should probably try it first before moving on to more elaborate solutions.
The potential problem is that the .FLT importer or exporter might drop some .FLT features that your (non-OSG) rendering software depends on.
-Paul
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org