Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: IceFire on March 08, 2003, 11:29:31 am

Title: Sunglares & Explosions
Post by: IceFire on March 08, 2003, 11:29:31 am
CptWhite on the TBP internal forum mentioned a neat idea.  Sunglares for exploding ships.

Basically, the idea is that when a ship explodes, in addition to its explosion and shockwaves, there is also a brief brightening in the screen if your looking directly at the vessel that has just gone up.  Its been a common special effect since the days of Wing Commander.

I propose a $ExpGlare tag that specifies the level of glare.  For instance $ExpGlare: 0.0 would do it FreeSpace 2 standard mode with no glare.  $ExpGlare: 1.0 would fully white out the screen for that brief moment when the ship goes up.  I suspect that something like 0.6 through 0.8 would do nicely for most large capital ships.
Title: Sunglares & Explosions
Post by: Solatar on March 08, 2003, 11:47:00 am
*bump*

I like the idea.
Title: Sunglares & Explosions
Post by: diamondgeezer on March 08, 2003, 12:25:54 pm
:nod::yes:
Title: Sunglares & Explosions
Post by: kasperl on March 08, 2003, 02:07:21 pm
would look nice, good ideae!
Title: Sunglares & Explosions
Post by: Petrarch of the VBB on March 08, 2003, 02:12:34 pm
:yes:

Sound's good. and perhaps the bigger the ship, the brighter the glow, so a Sath would blind you.
Title: Sunglares & Explosions
Post by: IceFire on March 08, 2003, 02:22:01 pm
Quote
Originally posted by Petrarch of the VBB
:yes:

Sound's good. and perhaps the bigger the ship, the brighter the glow, so a Sath would blind you.

Thats the idea.  So roasting marshmellows would have a whole new meaning :)
Title: Sunglares & Explosions
Post by: aldo_14 on March 08, 2003, 02:31:55 pm
Or, base the glow proportionally on the blast (or whatever it's called) / shockwave stting in the tbl.
Title: Sunglares & Explosions
Post by: Goober5000 on March 08, 2003, 02:39:46 pm
Quote
Originally posted by aldo_14
Or, base the glow proportionally on the blast (or whatever it's called) / shockwave stting in the tbl.


Great idea.  And allow a $Special Glare mod just like $Special Exp. :yes:
Title: Sunglares & Explosions
Post by: LAM3O on March 08, 2003, 03:49:46 pm
A very good idea, reminds me of this thread:
http://www.hard-light.net/forums/index.php/topic,12050.0.html

(http://fs2source.warpcore.org/ogl/ships3.jpg)
Title: Sunglares & Explosions
Post by: Bobboau on March 08, 2003, 03:53:37 pm
now just rendering a bit map would be extreemly easy,
I know that the flash thing isn't too hard but I don't know how any of it works so I'll let someone else do it
Title: Sunglares & Explosions
Post by: Petrarch of the VBB on March 09, 2003, 09:24:55 am
what sort of parameters would the specialglow thing have, though?

Things like radius, brightness, colour etc?
Title: Sunglares & Explosions
Post by: IceFire on March 09, 2003, 09:48:25 am
Quote
Originally posted by Petrarch of the VBB
what sort of parameters would the specialglow thing have, though?

Things like radius, brightness, colour etc?

Just like when you look at a sun.  It glares....except the glare would be present for a second or less while looking directly at a large ship exploding.

So...expolosion, explosion, ship breaks apart, white flash, fading flash, explosions and debris spewing out.
Title: Sunglares & Explosions
Post by: Nico on March 09, 2003, 11:52:48 am
nah, make a flash with each shockwave.
Title: Sunglares & Explosions
Post by: diamondgeezer on March 09, 2003, 12:32:41 pm
If the player wasn't looking at the exploding ship, would the glare effect still be drawn, ie. draining system resources?



Good God, a half-way intelligent question. I think I need to lie down in a dark room for a bit...
Title: Sunglares & Explosions
Post by: IceFire on March 09, 2003, 12:37:46 pm
Quote
Originally posted by diamondgeezer
If the player wasn't looking at the exploding ship, would the glare effect still be drawn, ie. draining system resources?



Good God, a half-way intelligent question. I think I need to lie down in a dark room for a bit...

I would hope not...but its probably a fairly simple thing anyways.  It'd be just like a sun glare....FS2 has no problems with those.
Title: Sunglares & Explosions
Post by: ZylonBane on March 09, 2003, 03:09:41 pm
Quote
Originally posted by diamondgeezer
If the player wasn't looking at the exploding ship, would the glare effect still be drawn, ie. draining system resources?
The FS2 sun glare doesn't draw anything. It just makes everything onscreen bright and washed-out.

So basically, everytime a shockwave ani is triggered, this code would temporarily create a local-space "sun" light point (as opposed to the regular suns which are infinitely distant), which would start at maximum intensity and then drop off in synch with the frames of its shockwave, hitting zero by frame 10 or so.

Something like that.