Just loop it through osgconv to strip the textures out.

osgconv original_file_with_textures.ive new_file_no_textures.osg
osgconv new_file_no_textures.osg new_file_no_textures.ive

Brian

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose. •


[email protected] wrote: -----


To: [email protected]
From: Jean-Sébastien Guay <[email protected]>
Sent by: [email protected]
Date: 10/15/2009 09:02AM
Subject: Re: [osg-users] Loading mesh without textures

Hi Martin,

> This does not seem to work. The removeTextureAttribute method is called,
but I can still see the textures on the meshes. Is this the correct way to
remove the textures?

Keep in mind that Drawables also have a stateset which you won't get to
by using the code you posted. So in addition to removing the textures on
all statesets assigned to nodes, you also need to override apply(Geode&)
and loop through all Drawables and remove the textures there too.

If that still doesn't work, then you could use osgDB::writeNodeFile()
after running the visitor, to output the resulting subgraph to a .osg
file which you can load in a text editor to see where the remaining
textures are.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org,
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to