We are currently using version 2.8.1 of OSG, so what I am about to say may not 
jive with the version you are using.

1) Look to the console.  The console should give you plenty of information on 
errors that may be going on inside code.  If you see nothing, try changing the 
environment variable OSG_NOTIFY_LEVEL to the highest setting (DEBUG_FP).

2) When the OSG converts the models, the texture path is stored in the stateset 
with the texture.  The issue here, though, is that some programs that produce 
the model store the texture as an absolute path.  This can be quite problematic 
as the same directory structure is required to be known.  Relative paths are a 
bit better, but I'm not sure if textures that are created and used from 
different directories will actually generate those directories for you during 
the conversion process.

3) With those two things stated, you may or may not get a file produced.  Don't 
be fooled into thinking that the file can be used by GIMP just yet.  Was the 
image compressed when creating the IVE?  In the case of all our models, the 
file is compressed during the conversion process.  When the image comes back 
out, it still uses the image path name stored in the stateset to write the 
texture to disk.  In our case, this was RGB, but the image was a compressed 
format that needed to be DDS.  This is another issue you may face.  For me, 
knowing that all the images were compressed, I just locally modified the code 
to always replace the RGB file extension to DDS.  There may be an easier way of 
doing this, but I didn't spend lots of time trying to figure it out.  Just need 
the textures.

Hope this helps and good luck.

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





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

Reply via email to