Hi Gerrit,

> On Thu, 2005-10-13 at 11:29 +0200, Antonio Bleile wrote:
> > Hi,
> >
> > I'm creating a bounding box for my nodes with
> > makeBox(...). I want to do a simple thing:
> > Make the bounding box transparent. I tried
> > to set the color, but I can't seem to set 4-tupel
> > color vectors. Then I tried to modify the material
> > with "setTransparency". But the result looks
> > horrible.
> >
> > [...]
> > bboxMat = SimpleMaterial::create();
> > bboxMat->setTransparency( 0.5 );
> > [...]
> >
> > It must be simple! :-)
> 
> the setTransparency should be fine, unfortunately handling transparency
> in OpenGL is not easy, you need back to front sorting. Which we only do
> for objects. I guess your result looks horrible is due to this lack of

yeeeeee yea!

> sorting of the faces of your box. If you want to have a correct


Arrrg... I thought OpenSG would to that automatically. So I thought
setting transparency would trigger something in OpenSG to activate
depth sorting on the node. mh... OK, I'll create six planes.


> transparent box you have to create six plane objects and arrange them.
> There are more complex ways to handle transparency which don't need
> sorting (multipass methods) but they are not inside OpenSG yet.


Thank you,

  Toni



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to