Hi Radu, The most likely cause of transparency problems is having the skybox marked as being transparent so it should drop into the transparent bin, this means it'll be sorted along with everything else.
What you want for a skybox is for it to be drawn first, and setting the RenderBinDetails for it with a bin number of -1 would ensure that its draw before the opaque and transparent bins. See the osghangglide example. Robert. On 7/11/06, Radu Mihai <[EMAIL PROTECTED]> wrote:
Hello, I'm new to the group. I've just started working with OSG, and I'm trying to get a handle on a rendering problem with transparencies (I was hoping OSG 1.1 would fix it but ...) : When objects have some partly-transparent textures, the sky box texture gets rendered in the transparent part of the foreground object, even though there are intervening objects in between. This only happens if there are only transparent-textured objects layered till the sky box, if there are other objects in the way without any alpha-values, it looks ok. To my continuing frustration, different versions give varrying results: OSG .99 works fine OSG 1.0 draws the skybox texture throughout the polygon (eg. a billboard will appear rectangular with the skybox texture as background and the non-transparent parts of it's own texture overlaid) OSG 1.1rc1 (actually today's cvs) draws the skybox texture only in the part of the texture that has is not-quite transparent (so the bilboard from the previous example would now exibit a kind of 'halo' around the non-transparent parts of it's texture) I hope someone has some pointers -------------------------- Radu Mihai [EMAIL PROTECTED] _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
