PDA

View Full Version : Which is faster: Blend Mode



Jared@ETC
07-23-2003, 09:24 AM
Hi,

Which is generally the better method to use in a scene where some objects have varying degrees of alpha while others remain opaque:

1. Set up GL_BLEND to be enabled all the time, and then give opaque objects an alpha of 1.

2. Enable GL_BLEND for only the objects that will be blended, and disable it when drawing the opaque.

Thanks.

Obli
07-23-2003, 11:31 AM
Quite sure it's (2), especially if you group all your transparent objects and you render them after non-transparent objects have been rendered.

DJSnow
07-25-2003, 03:54 PM
and one rule-of-the-thumb is first to render all non-transparent objects and then render all transparent objects.

dorbie
07-25-2003, 04:47 PM
I have a strange feeling of deja-vu.