Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TopAce on March 13, 2005, 03:17:35 am

Title: Can explosions give light?
Post by: TopAce on March 13, 2005, 03:17:35 am
The Mystery picture #09 in the Machina Terra forum (http://www.hard-light.net/forums/index.php/topic,30679.0.html) gave me an inspiration: Would it be possible that explosions emitted some light? I think this is called dynamic light.
Title: Can explosions give light?
Post by: FireCrack on March 13, 2005, 03:21:56 am
Yes, we needy!!!!!!!!!

enough exclimation marks?
Title: Can explosions give light?
Post by: Turambar on March 13, 2005, 06:23:01 am
no!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

this is a good idea
Title: Can explosions give light?
Post by: Fineus on March 13, 2005, 06:47:21 am
Out of interest, could we have this appliable to a table... I'd kinda like to see flare-out applied to explosions as well as the suns in-mission. In theory if the explosion is bright enough you'd have to shield your eyes.. same as looking at the sun!
Title: Can explosions give light?
Post by: Carl on March 13, 2005, 06:50:16 am
errr, don't they already give light? i'm pretty sure they give off dynamic lighting just as lasers do.
Title: Can explosions give light?
Post by: Falcon on March 13, 2005, 07:34:25 am
Take a flash-light and turn it on, aim it at the exposion on your monitor, there's your dynamic light....... ;)
Title: Can explosions give light?
Post by: Turambar on March 13, 2005, 08:22:06 am
i wish we could have colored ambent light coming off nebulas, and inside the nebulas, that would be the ****, and would make it all nice and moody
Title: Can explosions give light?
Post by: DaBrain on March 13, 2005, 12:28:11 pm
Quote
Originally posted by Carl
errr, don't they already give light? i'm pretty sure they give off dynamic lighting just as lasers do.


Yeah, I think so.

The dynamic lightning in FS2 is weird though.
Sometimes it applies and sometimes not.
I don't get it.
Title: Can explosions give light?
Post by: Bobboau on March 13, 2005, 12:39:39 pm
they give off light already.
Title: Can explosions give light?
Post by: Lynx on March 13, 2005, 01:09:10 pm
Hey bob, is that explosion flash thing already activated? I remember you talking about it some time ago.
Title: Can explosions give light?
Post by: Bobboau on March 13, 2005, 01:20:52 pm
it should be
Title: Can explosions give light?
Post by: WMCoolmon on March 13, 2005, 01:31:15 pm
The flag's certainly hanging around.

And let me take the time to remind people there's basically an 8 light limit for light applying to things as well.
Title: Can explosions give light?
Post by: Bobboau on March 13, 2005, 01:41:31 pm
no there isn't, we've taken care of that, we have a multi-pass lighting model, if it can't handle the number of lights we want we just do as many as the hardware will alow for in a number of additive passes.
Title: Can explosions give light?
Post by: WMCoolmon on March 13, 2005, 01:47:00 pm
Ooh, nifty...I didn't know that.

How much of a slowdown does that do? (Does this mean your work on the texturing system is done btw?)
Title: Can explosions give light?
Post by: Bobboau on March 13, 2005, 01:50:35 pm
it's been like that almost sence the begining, it was like item #2 when doing the inital HT&L upgrade ('T' then 'L'), there is very little slowdown because there is rarely more lights than a card can handle.
Title: Can explosions give light?
Post by: Nuke on March 13, 2005, 02:07:56 pm
i want dynamic lighting on some glowpoints, probibly use type 2 (dynamic glow) and 3 (dynamic beam). golor would be determined based on the bitmap used. on the subject of adding glowpoint types, type 4 (particle spewer point) :D
Title: Can explosions give light?
Post by: aldo_14 on March 13, 2005, 02:15:50 pm
Was the 'flare' on explosions ever implemented (blow up ship, flash blinds you ala a star)?  I think it was, but I'm not sure what the flags or whatnot were.
Title: Can explosions give light?
Post by: Bobboau on March 13, 2005, 06:26:29 pm
ship flag of "flash" should cause said ship to blind you when it explodes and you are close to it.
Title: Can explosions give light?
Post by: Trivial Psychic on March 13, 2005, 07:53:01 pm
That could be useful on weapon impacts and FREDed explosions.
Title: Can explosions give light?
Post by: Taristin on March 13, 2005, 07:54:13 pm
*goes to add "flash" to the meson bombs and play "A Flaming Sword'*
Title: Can explosions give light?
Post by: Bobboau on March 13, 2005, 08:14:02 pm
the distance at wich the flash effects you is dependent on the size of the object exploding, so the meson bomb probly won't have any descernable diference, as its relitively small and you have to be fairly far away from it in order not to die.
Title: Can explosions give light?
Post by: Taristin on March 13, 2005, 09:00:10 pm
Well, that sucks, then... Can't it be determined by the blast, rather than the size of the mesh?
Title: Can explosions give light?
Post by: Bobboau on March 13, 2005, 09:09:10 pm
hmm... I guess... don't realy feel like doing it right now though. spent the better part of a day and a half beating my head against trying to get lasers batched with absolutly nothing to show for it.
Title: Can explosions give light?
Post by: FireCrack on March 13, 2005, 09:09:49 pm
Yeah, blast makes more sense.
Title: Can explosions give light?
Post by: Carl on March 13, 2005, 10:29:40 pm
why not make it so whenever there is a large explosion, as in the main explosion of a cap ship or bomb exploding, the sun glare effect happens when you're looking at it, then fades away over a couple seconds? that would be awesome.
Title: Can explosions give light?
Post by: aldo_14 on March 14, 2005, 04:06:17 am
Quote
Originally posted by Carl
why not make it so whenever there is a large explosion, as in the main explosion of a cap ship or bomb exploding, the sun glare effect happens when you're looking at it, then fades away over a couple seconds? that would be awesome.


I think that's exactly what the flash tag does.
Title: Can explosions give light?
Post by: Bobboau on March 14, 2005, 05:33:14 pm
... carl's been doing that a lot lately...
Title: Can explosions give light?
Post by: WMCoolmon on March 14, 2005, 05:34:25 pm
all the new members have diluted Carl's food supply. :p
Title: Can explosions give light?
Post by: Col. Fishguts on March 14, 2005, 06:13:05 pm
Yep, explosions give dynamic light. But what I miss is the dynamic light emmited from beam weapons, which seems to be non-existant now.
Does the -spec_tube x.x flag still work ?
Title: Can explosions give light?
Post by: Bobboau on March 14, 2005, 06:37:13 pm
it's still there... sort of, there is no tube light in the standard api set, so no fixed function tube light, so tube lights have to be simulated with a point ligh closest to the object.