Re: [osg-users] Loading mesh without textures

2009-12-15 Thread Michael Day
Hi, Choco does it again! Thanks for posting that solution in code! In my app, all I was missing was the removeTextureAttribute. Thank you again! Cheers, Michael -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21538#21538

Re: [osg-users] Loading mesh without textures

2009-10-19 Thread Martin Scheffler
So, as promised here's the code to strip textures and UV coords from geometry. It saves me about 700 mb at runtime, which makes me happy :o Code: class StripTexturesVisitor : public osg::NodeVisitor { public: StripTexturesVisitor() :

[osg-users] Loading mesh without textures

2009-10-15 Thread Martin Scheffler
Hi, I am using OSG to write a preprocessing tool where I do a lot of collision testing. I am running into memory problems as the meshes I load have a LOT of textures. I would like to remove the textures, as they take away a lot of memory and are irrelevant for the task I do. Is it possible to

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Ulrich Hertlein
Hi Martin, On 15/10/09 11:20 AM, Martin Scheffler wrote: I am using OSG to write a preprocessing tool where I do a lot of collision testing. I am running into memory problems as the meshes I load have a LOT of textures. I would like to remove the textures, as they take away a lot of memory

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Martin Scheffler
Ulrich, thank you for your answer. But I load .ive files, which have textures included! So this callback only receives the name of the ive, not the textures. Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18290#18290

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Tomlinson, Gordon
...@lists.openscenegraph.org] On Behalf Of Martin Scheffler Sent: Thursday, October 15, 2009 6:41 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Loading mesh without textures Ulrich, thank you for your answer. But I load .ive files, which have textures included! So this callback only

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Martin Scheffler
Gordon: I think the idea with the visitor would work for me. I apply this visitor to my meshes: [code] class StripTexturesVisitor : public osg::NodeVisitor { public: StripTexturesVisitor() : osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN) {} virtual void

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Ulrich Hertlein
On 15/10/09 2:00 PM, Martin Scheffler wrote: I think the idea with the visitor would work for me. I apply this visitor to my meshes: [code] class StripTexturesVisitor : public osg::NodeVisitor { public: StripTexturesVisitor() :

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Jean-Sébastien Guay
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

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Brian R Hill
...@lists.openscenegraph.org wrote: - To: osg-users@lists.openscenegraph.org From: Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Sent by: osg-users-boun...@lists.openscenegraph.org Date: 10/15/2009 09:02AM Subject: Re: [osg-users] Loading mesh without textures Hi Martin, This does

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Martin Scheffler
Thanks guys! I will post a correct visitor here when I have finished it. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18297#18297 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Loading mesh without textures

2009-10-15 Thread Chris 'Xenon' Hanson
Martin Scheffler wrote: Thanks guys! I will post a correct visitor here when I have finished it. If it's a one-off conversion, I'd just hack the IVE loader and comment out the part where it loads the texture. use osgconv to convert IVE to IVE, then undo your hack. -- Chris 'Xenon' Hanson,