Author Topic: Question about custom effects  (Read 1242 times)

0 Members and 1 Guest are viewing this topic.

Question about custom effects
I've got one hopefully small question about  custom effects.  I want to create a red/green/blue/yellow/orange....etc glows.  I've created the red glow as a test. The file is a DXT3 DDS and i've managed to create transparency.  The problem is the transparency looks very dithered.

That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

  

Offline taylor

  • Super SCP/Linux Guru
  • 212
    • http://www.icculus.org/~taylor
Re: Question about custom effects
DXT3 only has 4-bit alpha, which means it's not good for gradients.  You would mainly use DXT3 when it's either alpha, or not, basically just a well defined edge.  But when you have a gradient like you have here then you need to use DXT5 since it gives you the full 8-bits of alpha.

If you had very fine control over your gradient then you could probably get away with using DXT3, but it's generally just too much work since you can simply move to DXT5 instead and not worry about it.  DXT3 alpha should be a bit cleaner than DXT5 alpha would be (except for gradients obviously) so when you have rather sharp alpha transitions then going DXT3 might actually give you a little better quality.

Most of the time though, just use DXT1c if you don't need alpha, and DXT5 if you do need alpha.  DXT3 would only be for special cases as far as FS2 effects and textures are concerned.

 
Re: Question about custom effects
Thanks tyler that did the trick  :)  Now I don't have to remember which thrusterglow number is red or green or..... Simply use redglow, greenglow...etc
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"