Re: [osg-users] Help:why does renderbin affect the display of textures ?

2012-10-08 Thread wang shuiying
Is nobody interested in this question?:-( Hello, I have two drawable nodes A and B under the same main group node. I mapped two different textures on the drawables respectively. Those two drawables do not have any overlappings in terms of pixels on the screen. Drawable A is described using open

Re: [osg-users] Help:why does renderbin affect the display of textures ?

2012-10-08 Thread Wang Rui
Hi Shuiying, I guess that there may be something wrong in the draw implementation of drawable B. Although OpenGL calls can be executable in custom drawables, it is still suggested that you apply all kinds of rendering states to the drawable using StateAttribute derivatives. But without looking at

Re: [osg-users] Help:why does renderbin affect the display of textures ?

2012-10-08 Thread Sergey Polischuk
Hi Seems like you are messing with opengl state, and osg dont know about it. You should either: a) when you draw something with pure gl - after you finished, return all state you modified to values being before you started drawing b) use osg::State interface members to let osg know what state

[osg-users] Help:why does renderbin affect the display of textures ?

2012-10-05 Thread wang shuiying
Hello, I have two drawable nodes A and B under the same main group node. I mapped two different textures on the drawables respectively. Those two drawables do not have any overlappings in terms of pixels on the screen. Drawable A is described using open scene graph library while drawable B