Advertisement

special effects

Started by February 23, 2001 03:59 PM
2 comments, last by OoMMMoO 23 years, 11 months ago
Anyone have any tips on doing special effects such as fading one screen into another? Im not quite sure how to do that. I can fade the screen to black then fade in a screen from the black but I want to skip the fading to black and just fade to another screen. By the way Im doing this in 16bpp OoMMMoO
Are the scenes static pictures? or are the 3d scenes? It is easy to change from one texture to another using alphas, and 2 sets of panels( one set for the old scene and one for the new ). If you are going from one 3D scene to another, I have some ideas, but will toss them out if you need them.
Advertisement
Ive never messed with alphas before. Im doing the game in 2d, do you know of any tutorials on doing stuff like that?
Assume d the destination surface, s the source surface and a the alpha value between one and zero...

d(n) = d(n) * a + s(n) * (1 - a)

or

d(n) = a(d(n) - s(n)) + s(n) and thus one multiply less...

or

d(n) = (a(d(n) - s(n))) << 8 + s(n) where a is between 0 and 255, to avoid floating point math



Then there''s always assembly to make things faster...

And MMX...

And RLE encoded surfaces and such...



Good luck optimizing


"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album

This topic is closed to new replies.

Advertisement