Advertisement

transparent color how?

Started by May 14, 2004 03:42 PM
11 comments, last by Raduprv 20 years, 5 months ago
Aha! I completely forgot I was using testing and not blending. I had blending going a long time ago, but it kept giving me crappy results with my Milkshape objects so i disabled it in my prog. Some recoding and tweaking should fix it. Thanks for the response!
THE swoish
Quote: Original post by psycho-babble
Aha! I completely forgot I was using testing and not blending. I had blending going a long time ago, but it kept giving me crappy results with my Milkshape objects so i disabled it in my prog. Some recoding and tweaking should fix it. Thanks for the response!

If you've got performance problems with blending then you can use alpha testing as well to save yourself a bit of speed (at the expense of some quality).

By setting alpha testing to something close to fully transparent (like say, 0.1f) these almost invisible pixels are totally rejected (so no expensive framebuffer read, blend, write) but you get near identical visual result.
Advertisement
Quote: Original post by OrangyTang
If you've got performance problems with blending then you can use alpha testing as well to save yourself a bit of speed (at the expense of some quality).

By setting alpha testing to something close to fully transparent (like say, 0.1f) these almost invisible pixels are totally rejected (so no expensive framebuffer read, blend, write) but you get near identical visual result.


Alpha blending gives a slightly better visual quality, but to do it properly you need to order all your scene, so alpha testing is the way :)

This topic is closed to new replies.

Advertisement