DYNAMIC LIGHTING, On the table? or forgotten?

DYNAMIC LIGHTING, On the table? or forgotten?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
MR.D
Posts: 1527
Joined: 06 Aug 2005, 13:15

DYNAMIC LIGHTING, On the table? or forgotten?

Post by MR.D »

One thing that really stood out for me when it came to most weapons in the Origional TA game was the presence of Dynamic Lighting from impact effects and some projectiles.

Do the Programming guys plan on adding this in as a feature sometime, or do you guys feel it would be a worthy addition to add some eye candy into Spring?

If you guys could implement Dynamic Lighting into explosion effects, or even Aura Lights around beam weapons and such, IMO it could really add alot to the visual aspects of fighting in Spring.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Post by knorke »

I think nukes already light up the ground a bit...
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

It would be nice, but TA used a trick rather than actual dynamic lighting. Real dynamic lighting for weapons would be really great but I don't see it happening any time soon.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Caydr: All visual rendering for every game is based on tricks. No games acctually use raytracers for full lighting simulation, it just isn't preformance plausable.

That being said I think spring's dynamic lighting could do to be a bit more robust. It would be really nice to be able to have lightcasting units and features, and would massively add to the visual quality of the game. It doesn't need to be full on doom3 style softshadow casting, but some basic dymic lighting, at least to cast on the mapping environment, would be really really cool.
User avatar
Zoombie
Posts: 6149
Joined: 15 Mar 2005, 07:08

Post by Zoombie »

So we could have fusion reactors that go "Whoom...whooom....whooom....whoooom" and pulse like a warp reactor. Now that would be usefull.
User avatar
FireCrack
Posts: 676
Joined: 19 Jul 2005, 09:33

Post by FireCrack »

Yeah, lighting on a per-vertex basis would be good enough. The terrain may look a tad funky for small lights... There are ways to work around this though...
User avatar
Zoombie
Posts: 6149
Joined: 15 Mar 2005, 07:08

Post by Zoombie »

Neat.
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

Zoombie wrote:So we could have fusion reactors that go "Whoom...whooom....whooom....whoooom" and pulse like a warp reactor. Now that would be usefull.
And tanks with headlights!
Just imagine, a weasel with a searchlight on a night map. EPIC!
(We really need ambient sounds)
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Yeah, I guess that's mostly true Swiftspear. But the thing is that TA used an even more tricky trick than the trick you're thinking about using to trick with.

In TA, a simple one-run "flashing" animation with some jagged edges was all that was necessary. Yes... you could do the same thing in Spring, but what about certain kickass maps that aren't just flat everywhere? (such as Altored Divide) If you did that, you'd have that texture colliding with the landscape in all kinds of unholy ways. It might be an improvement, but just like current explosion effects, when it intersected with the ground it would look pretty nasty. I think what might fit the bill is if they used a sort of reverse ground scar. Rather than darkening the terrain, the scar would temporarily BRIGHTEN the terrain. At its apex, like when it's as large as it's going to be and it's going to start to shrink, then the groundscar is applied. As the flash recedes, the nice pretty groundscar is there - the same one as was used for the flash effect.

....wow. That was actually pretty good. I'm making a new thread.

Zaphod's new map renderer just might be able to do nighttime maps, from what I've seen. If we could also have some lighting effects, we could have full-blown headlights on all the units, and so on. Sounds like a lot of work, for the coder (and the modder :cry:)
User avatar
IceXuick
Posts: 519
Joined: 14 Mar 2006, 01:46

Post by IceXuick »

Yiieeeeehaw, headlights ftw!!

here some simple examples of just overlays than don't need to be 3d or what, just can be put over the xplosion centre location.

Image

Image

Image

Image
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Overlaod+lenseflare as the main explosion with several smaller overlay explosions would look amazing
Sean Mirrsen
Posts: 578
Joined: 19 Aug 2004, 17:38

Post by Sean Mirrsen »

While we're on the subject of explosions, can we get explosion control added to the weapon TDF? Like smoke amount, dust amount, fire amount, number of shockwaves, overlay texture and/or animation, plus maybe a simple 3do model with a few pieces with 2-vertex polygons to create directional explosions. The latter would used with the GetPieceDir to set vectors for "debris" flying off, similar to what we could get if a unit exploded at the impact point, with FALL | SMOKE | FIRE set for piece explode settings. The model would turn to orient with the projectile's facing, and the landscape slope. (see the Bertha's shell explosion in TA - it has that small effect I'm talking about, only it's 2d and not turning) I'm sure it's more difficult than it sounds, but since this is THE most moddable game in the world, it would be nice to have control over explosions, other than setting their AOE and damage.
bamb
Posts: 350
Joined: 04 Apr 2006, 14:20

Post by bamb »

Please no, don't ever introduce lens flare to spring. It's one of those monstrosities from 1997 when the programmers just shoved in everything the new 3d cards could do.

The first two look good tho, overlay and radial gradient.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

That overlay first pics looks very nice.

And yes, being able to control color, size, etc.. of explosions is a must!
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

I like the first one best.. it'd probably be the simplest to do.

...I do, however, like the second one a fair bit as well. The way the red bleeds through the terrain, as if your eye had to adjust or whatever.

For the sake of completeness, you should show the unmodified pic too ^^
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

Nr 2 looks best from here.. Unless you are shooting magnesium rounds in those shots.

But then again there's the possibility that it will look gay in 3d.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Explotions aren't the only possible light source in spring. #2 looks plausable to be used as lamposts and other lightsources that aren't nessicarily splody.
Dwarden
Posts: 278
Joined: 25 Feb 2005, 03:21

Post by Dwarden »

instead of lens flares for "camera" focus on glare, blaze, radiance ...
User avatar
MR.D
Posts: 1527
Joined: 06 Aug 2005, 13:15

Post by MR.D »

The overlay seems to be the closest to OTA light orbs from explsions.

The Lighting effect doesn't need to be anything over the top as far as cpu intense, a simple decal style flash would be more than suffient.

A very simple way to achieve it would just to have a decal that is a very bright color, that fades very fast, similar to the blast decals that leave the dark burn marks.

At best, a pixel shaded orb that works as a worldbrush like the sun effects the ground could be pretty neat too, but pixel shaders might be GPU and CPU intense.

True Light sourced explosions should be saved for nukes and things like Bertha Plasma (where they would be rare, and not occur very often), and then they could cast shadows as well, that would be impressive.
User avatar
Zoombie
Posts: 6149
Joined: 15 Mar 2005, 07:08

Post by Zoombie »

Overlay! Overlay!
Post Reply

Return to “Engine”