Hi Vincent, What you are hitting as an transparent ordering issue that is common issue when trying to rendering transparent objects that overlap in depth. This isn't specially an OSG issue, rather it's basic limit of way that the depth and colour buffers work and the standard technique for rendering transparent objects by drawing opaque objects first, then rendering transparent objects from furthers from the eye to nearest to the eye. This technique only works perfectly when objects don't overlap in screen space and depth at the same time, when they overlap there are potential ordering issues where triangles from one object can be drawn prior to triangles that are infact nearer. One can potentially sort by triangles but this is typically too expensive. Breaking objects up into small parts is often sufficient.
As this is a standard graphics issue it's been discussed many times on the list over the years so I'd recommend reading through the archives to familiarise yourself with the general topic and the types of solutions that you can use. Robert. On 12 March 2012 08:28, vincent Sauvage <vinc...@lessauvage.fr> wrote: > Hi, > > i have 2 transparents spheres, one inside another. > The smallest one (inside) has a texture. > > My pb is: > when moving camera, the smallest sphere disappear. > (Spheres et lights have always the same position) > > Is there some constraint in osg with transparency? ( maximum number of > transparent object in graph? maximum number of embedded transparent object ? > > Thank you for your help ! > > Cheers, > vincent > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=46159#46159 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org