GRADUAL_FADE, PARTIAL_FADE

GRADUAL_FADE, PARTIAL_FADE

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

GRADUAL_FADE, PARTIAL_FADE

Post by Argh »

I'd like a two new visual effects, invokable via COB: GRADUAL_FADE and PARTIAL_FADE

Invoking this command(syntax: SET GRADUAL_FADE (Piece , Time); ) would cause the Piece to be redrawn with a different alpha value (like a hidden unit) until it reached the value of Time, then it would disappear.

PARTIAL_FADE (syntax: SET PARTIAL_FADE (Piece, Time); ) would allow us to set an alpha value on a given Piece.

With two very similar pieces of code, hooking into the alpha system already in place (although it's borked for S3O, as I need to report, again), we could have:

1. Motion-blurs.
2. Windows.
3. Objects that fade out upon Death()
4. Better-looking blended animations that use hide / show techniques.

I think it'd be very cool, and solve a bunch of problems at once- no new rendering code needed, other than applying the current alpha code per Piece (which it almost certainly does anyhow), and it'd allow for a lot of things that aren't currently possible.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: GRADUAL_FADE, PARTIAL_FADE

Post by Peet »

Argh wrote:(although it's borked for S3O, as I need to report, again)
Even with flozi's patch?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

The next lua addition should make that feature (and many more), possible.
The current code does not adjust the alpha per piece, it seems to be set at
0.3 for the lot of them.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

:!: :shock: :!:

One question. It's about the only thing that matters (er, at least to me and the people I am working with), here: will what you're saying, and the profound implications, be relevant in a mod that is still using S3O as the primary content format?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

yes
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Your code violates the BOS set syntax. However, you could use get instead. However, it's probably a bit beyond me to code and trepan can LUA it up anyway. :P
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

You do realize that making me learn GLSL, on top of everything else, is likely to make my head explode? Which might be cool, for whoever got to witness it, but, meh, me neurons are at their limits, captain! I cannah make them go any faster!
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Well, you may be able to delegate that section of the engine to another person. I know I'm not willing to tackle LUA.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

I'll do whatever is required. I'm just human, is all.
Post Reply

Return to “Feature Requests”