Game Development Community

Transparent blends

by David Chan · in Torque 3D Professional · 05/26/2009 (12:47 pm) · 2 replies

Can someone tell me what the difference between the Sub transparency blend and the lerpAlpha?

About the author

Got my start at BioWare in 1999. First project was MDK2 and last project was Mass Effect. Since then I've worked on indie titles and other games like Prey and Splinter Cell. Got my start at pureLIGHT late last year as the Product Manager.


#1
05/26/2009 (1:04 pm)
In theory Sub should be subtractive blending. If it looks no different then lerpAlpha it's probably a bug.
#2
05/26/2009 (1:47 pm)
Sub looks like a more "standard" colour blend currently similar to "Lerp", whilst "add" is radioactive bright. It looks black against a skybox, "add" isn't visible against a skybox.

I've always found that leaving everything off except an "Alpha Threshold"/"Alpha Test" gets the best results.
e.g.
alphaTest = "1";
alphaRef = 180;