Re: [osg-users] Statesets with renderBin make sub-models invisible

2009-01-22 Thread Ulrich Hertlein
On 22/1/09 6:30 PM, Stephan Huber wrote: renderbin affairs will not hide but turn blue as I expected. The only difference between these two is the renderbin. I'm a little confused. This is because Renderbin 10 enables GL_BLEND automatically, so the Whoah! Wait! Is this true? So I don't

Re: [osg-users] Statesets with renderBin make sub-models invisible

2009-01-22 Thread Paul Melis
Stephan Huber wrote: Mao.. schrieb: Thank you very much, Rafa Gaitan! Your suggestion works. But I'm wondering one thing: all of the models have passed the more or less same preproccessor, however, some models without the renderbin affairs will not hide but turn blue as I expected. The only

Re: [osg-users] Statesets with renderBin make sub-models invisible

2009-01-22 Thread Stephan Maximilian Huber
Hi, Paul Melis schrieb: I don't think blending is enabled automatically for bin 10. Sorry, i was misleaded by my own code which does enable GL_BLEND automatically for the TRANSPARENT_BIN. cheers, Stephan ___ osg-users mailing list

Re: [osg-users] Statesets with renderBin make sub-models invisible

2009-01-22 Thread Paul Melis
Paul Melis wrote: Stephan Huber wrote: Mao.. schrieb: Thank you very much, Rafa Gaitan! Your suggestion works. But I'm wondering one thing: all of the models have passed the more or less same preproccessor, however, some models without the renderbin affairs will not hide but turn blue as

Re: [osg-users] Statesets with renderBin make sub-models invisible

2009-01-21 Thread Mao..
Thank you very much, Rafa Gaitan! Your suggestion works. But I'm wondering one thing: all of the models have passed the more or less same preproccessor, however, some models without the renderbin affairs will not hide but turn blue as I expected. The only difference between these two is the

Re: [osg-users] Statesets with renderBin make sub-models invisible

2009-01-21 Thread Stephan Huber
Mao.. schrieb: Thank you very much, Rafa Gaitan! Your suggestion works. But I'm wondering one thing: all of the models have passed the more or less same preproccessor, however, some models without the renderbin affairs will not hide but turn blue as I expected. The only difference between

Re: [osg-users] Statesets with renderBin make sub-models invisible

2009-01-20 Thread Rafa Gaitan
Hi Mao, I'm not sure if I understand you correctly, but if you set in node1 a diffuse material with alpha set to 0.0 and the statset is OVERRIDE, if subnodes are not PROTECTED or OVERRIDE then they get the same material, so they become invisible. is it problably the problem? Try to set diff to