Hi Zach,

On 11/27/06, Zach Deedler <[EMAIL PROTECTED]> wrote:
QUESTIONS
1) Do I need the AlphaFunc?

If you actually intend the objects to fall in the transparent bin then
you won't need it.  However, if you they are objects which are opaque
save for the alpha=0.0 parts then using AlphaFunc and no blending
would be most appropriate.

2) Is there a way to detect if a texture has transparency in it?  This way I
can only apply blending if transparency is detected.

In osg::Image there is:

       /** Return true if this image is translucent - i.e. it has
alpha values that are less 1.0 (when normalized). */
       bool isImageTranslucent() const;

Which will get you some of the way.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to