Re: [osg-users] How to overcome trnasparency blending distortion

2011-12-15 Thread Filip Arlet
Hi, Did you tried to set Blending Function ? osg::BlendFunc class, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA is always a good starting point. Cheers, Filip -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44390#44390

Re: [osg-users] How to overcome trnasparency blending distortion

2011-12-15 Thread Tolga Yilmaz
Hi, I just understood that the problem is about releasing the object and also other primitives that i've added into pyramidGeometry. Because reusing and updating the pyramidGeometry(i.e rotating about some axis in a simulation) each time the drawing methods were releasing and creating a new

[osg-users] How to overcome trnasparency blending distortion

2011-12-14 Thread Tolga Yilmaz
Hi, when i'm drawing a transparent pyramid it is ok; but while i rotating via transformation matrix this pyramid outside this updating makes distortions in the pyramid just like the triangle primitives have patterns. I tried other blending modes else than GL_BLEND and mede stateattr protected