Re: [osg-users] removing texture from stateset

2018-01-14 Thread Trajce Nikolov NICK
Hi Julien, yes, removeTextureAttribute did the job. Thanks a bunch!!! I should have consulted the header too Cheers, Nick On Sat, Jan 13, 2018 at 10:02 PM, Julien Valentin < julienvalenti...@gmail.com> wrote: > oups i post too fast > I wanted to write > > Code: >

Re: [osg-users] removing texture from stateset

2018-01-13 Thread Julien Valentin
oups i post too fast I wanted to write Code: StateSet::removeTextureAttribute(unit,texatt) mp3butcher wrote: > Hi Nickolov > use > > Code: > StateSet::removeTextureAttribute(unit,texatt) > > > to remove a texture. > Moreover when you erase you iterator it invalidates it ...so don't do

Re: [osg-users] removing texture from stateset

2018-01-13 Thread Julien Valentin
Hi Nickolov use Code: StateSet::setTextureAttribute(unit,0) to remove a texture. Moreover when you erase you iterator it invalidates it ...so don't do like this Cheers Trajce Nikolov NICK wrote: > Hi Community, > > this should be simple, but I can not make it work. I have ive file with >

[osg-users] removing texture from stateset

2018-01-13 Thread Trajce Nikolov NICK
Hi Community, this should be simple, but I can not make it work. I have ive file with embedded texture and it is big file. All I want is to remove the texture and save it back. When I do this with the code bellow, and save the file, the file is not changing it's size. Any clue/hint? Thanks a