Author Topic: palette plus 8bit alpha in dds  (Read 2356 times)

0 Members and 1 Guest are viewing this topic.

Offline Topgun

  • 210
palette plus 8bit alpha in dds
I am making an animated beam. grayscale color and needs alpha (there are black parts in the bitmap that cannot be transparent) I was wondering if there are platted dds with 8bit alpha. if not I will just use u8888.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: palette plus 8bit alpha in dds
There is luminance alpha, a 16-bit format that is 8-bit grayscale plus 8-bit alpha.  It's not supported in the current code though (but I have added support for it in my Xt builds for eventual commit to CVS).

You are going to run into a bigger problem however, it's not going to blend properly.  Using a real alpha channel in beam effects is going to look bad at the point of impact.  Some day that might be fixed, but it's not likely to be any time soon.

 

Offline Topgun

  • 210
Re: palette plus 8bit alpha in dds
darn, what do you think I should do?

 

Offline Hades

  • FINISHING MODELS IS OVERRATED
  • 212
  • i wonder when my polycounts will exceed my iq
    • Skype
    • Steam
Re: palette plus 8bit alpha in dds
Is this this the beam you will Defeat Goober with? :nervous: Just don't use alpha.
[22:29] <sigtau> Hello, #hard-light?  I'm trying to tell a girl she looks really good for someone who doesn't exercise.  How do I word that non-offensively?
[22:29] <RangerKarl|AtWork> "you look like a big tasty muffin"
----
<batwota> wouldn’t that mean that it’s prepared to kiss your ass if you flank it :p
<batwota> wow
<batwota> KILL

 

Offline Topgun

  • 210
Re: palette plus 8bit alpha in dds
shh, that's a secret :nervous:.

and how does the beam look bad when it has alpha? can you give me an example? IE if it just looks "weird" then it might be a desired effect.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: palette plus 8bit alpha in dds
and how does the beam look bad when it has alpha? can you give me an example? IE if it just looks "weird" then it might be a desired effect.
There is a screenshot somewhere, but I don't remember the thread that was in.  But if you want to see what it looks like, then just try it yourself.

  

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: palette plus 8bit alpha in dds


That's what alpha blended beams will look like. The brightness is not what it should be and the beam is actually less luminous than the explosion behind it which makes the beam kinda "shadow" it's background, which looks bad.

Use additive blending to avoid it. That is, make black the background colour of the texture and leave the edges black.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.