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
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()
:
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
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
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
...@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
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
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()
:
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
...@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
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
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,
12 matches
Mail list logo