Re: [osg-users] Transparent sphere

2008-02-07 Thread Jean-Sébastien Guay
Hi Paul, > Probably a more interesting question is how to render the transparent sphere > so that the back half is rendered first and the front half is rendered > second, for proper blending. > > Best way to do that is to multi-parent the sphere to two Geodes. In one > Geode cull front faces, and

Re: [osg-users] Transparent sphere

2008-02-07 Thread Paul Martz
> How can I draw a Transparent sphere? > > I need to draw a sphere inside a Transparent one. > Can anyone tell me how to set the material and color of the > Transparent one. Probably a more interesting question is how to render the transparent sphere so that the back half is rendered first and

Re: [osg-users] Transparent sphere

2008-02-07 Thread Jean-Sébastien Guay
Hello Ahmed, > I need to draw a sphere inside a Transparent one. > Can anyone tell me how to set the material and color of the Transparent one. > If you're using ShapeDrawables for your spheres, you can do it like this: // Sphere of radius 1, red and semi-transparent. osg::ref_ptr sphere = ne

[osg-users] Transparent sphere

2008-02-06 Thread Ahmed Nawar
Hi All, How can I draw a Transparent sphere? I need to draw a sphere inside a Transparent one. Can anyone tell me how to set the material and color of the Transparent one. Thanks, Ahmed Nawar <>___ osg-users mailing list osg-users@lists.openscenegr