Light Map
Moderator: Moderators
Light Map
I was wondering... would it be possible to have some sort of light map implamented?
Expalanation (cause im using the wrong name probablie, and it may mean somthing totaly different...)
Basicly just a mask that covers the whole world, letting more light in some places than others... How to explane? If you were in a forest you would have light stippeling through the trees onto the ground.
As a suggestion of how it would work...
You can assign a bmp, were dark = shadows and light = lighter.
You can set how much yopu want these shadows to appear as possible a percentage of the current shadow on ground value (or just keep it seperate)
You can either have one map for the whole map, or set it to tile over and over again, and you can assign a value to how many repeates you want.
how hard to add in??
aGorm
Expalanation (cause im using the wrong name probablie, and it may mean somthing totaly different...)
Basicly just a mask that covers the whole world, letting more light in some places than others... How to explane? If you were in a forest you would have light stippeling through the trees onto the ground.
As a suggestion of how it would work...
You can assign a bmp, were dark = shadows and light = lighter.
You can set how much yopu want these shadows to appear as possible a percentage of the current shadow on ground value (or just keep it seperate)
You can either have one map for the whole map, or set it to tile over and over again, and you can assign a value to how many repeates you want.
how hard to add in??
aGorm
If there should be any kind of lighting it should be just local hardware vertex lighting. I agree with IMSabbel that shadowmapping (eh we have shadow mapping right now... you mean the Quake style precomputed light maps? Hmm it's a vague term anyway, are you mapping shadows or are you mapping light
) is not fitted for spring.
Earth 2160 does lighting pretty well by the way. It should be quite possible to let units have small lights and keep a good framerate.

Earth 2160 does lighting pretty well by the way. It should be quite possible to let units have small lights and keep a good framerate.
I mean in the vein of... like a mask over the whole maps lightsource. So naturally shaddows etc will blend in with the shadows created but the mask that stops light getting were it would normaly be going? Am I making any sort of sence??
Obviosly you would make it so as you zoomed out the effect disapered... so that it only worked when you were relativly close to the ground...
aGorm
Obviosly you would make it so as you zoomed out the effect disapered... so that it only worked when you were relativly close to the ground...
aGorm
ohh, that's what you meant
I misunderstood to think he wanted Doom/Cube style "lighting zones" available. Not prerendered lightmaps.
Although it did give me one idea - cloud lighting. Change the lighting of the maps as if clouds were passing overhead. So you get gradual waves of light and shadow passing over areas.
Although it did give me one idea - cloud lighting. Change the lighting of the maps as if clouds were passing overhead. So you get gradual waves of light and shadow passing over areas.
Everything that should make a shadow does, so I don't understand what effect you trying to create. You can depen shadows by adjusting values in the SMD but I am sure you know this.
Do you mean that there should be a reduction in ambient light thre deeper into shadows you go? So one tree wont do much but being in the middle of a forest will, that might be interesting, I've no idea if it could be done though.
Do you mean that there should be a reduction in ambient light thre deeper into shadows you go? So one tree wont do much but being in the middle of a forest will, that might be interesting, I've no idea if it could be done though.
What I mean.... (which i doubt would make a performance hit and certainly not increase map size by any vast amount Zaphod, or not to my knoledge)
Basicly:
Currently when light hits the ground, its in one great big solid blanket. IE, there are no cloud shadows, so shadows from things above the camera that you cant actully see, but my point being that it does not mean there not there.
Now, correct me if I'm rong, but I'm sure that this effect is used in older games to make up for the fact that it cant do real lighting effects. The idea of using a mask (just simple b&w) which is used as a map for if the light counts as on or off at a certain point.
I know this aint the best way of describing it but its teh only way i got...
I can change the density of the shadows that are created by things that are there (like hills, trees, units ect...) but i wanted to be able to have a set of shadows already on the floor, befor working out all teh other ones.
So for instance.... I could make a totaly flat map with nothing in it.
Then apply this light mask/map whatever you want to call it.
And suddenly, dispite the fact there should be no shadows, it has some areas in shadow, as if someone was holding a bit of perspex with black marker pen on it infron of the light bulb.
Shurly that would not be resorce intensive??!?
And certainly not increas map size. (Im not suggesting all maps would have or need one of these anyway.)
aGorm
Basicly:
Currently when light hits the ground, its in one great big solid blanket. IE, there are no cloud shadows, so shadows from things above the camera that you cant actully see, but my point being that it does not mean there not there.
Now, correct me if I'm rong, but I'm sure that this effect is used in older games to make up for the fact that it cant do real lighting effects. The idea of using a mask (just simple b&w) which is used as a map for if the light counts as on or off at a certain point.
I know this aint the best way of describing it but its teh only way i got...
I can change the density of the shadows that are created by things that are there (like hills, trees, units ect...) but i wanted to be able to have a set of shadows already on the floor, befor working out all teh other ones.
So for instance.... I could make a totaly flat map with nothing in it.
Then apply this light mask/map whatever you want to call it.
And suddenly, dispite the fact there should be no shadows, it has some areas in shadow, as if someone was holding a bit of perspex with black marker pen on it infron of the light bulb.
Shurly that would not be resorce intensive??!?
And certainly not increas map size. (Im not suggesting all maps would have or need one of these anyway.)
aGorm
- GrOuNd_ZeRo
- Posts: 1370
- Joined: 30 Apr 2005, 01:10
You know what? I don't think Spring is sorely missing anything - all the important stuff is there right now. The main issues for me are really things like stability. My humble machine doesn't do shadows at all, I do miss not having terrain shading (hard to see where the craters are), but I'm not at all fussed about not having shadows and certainly can live without shadows of clouds etc.GrOuNd_ZeRo wrote:Hmm cloud shadows would be awesome, it's something Spring is sorely missing right now
Just my tuppence
Munch
This is ofcours ... in the intrest of making the game as versatial as possible. You see, if you expande the idea some what, theres no reason to not think you could have this map in colour, and then you'll be able to do different colour lighting in different areas, as well as differnt levels of lighting. For instance if you had a volcano map, you may want teh ligting inside the volcano to be red, but curently this means changing the whole maps lighting.
Yes I could in theory just overlay the shadows onto teh ground texture, but
1) it wont effect units
2) it will make the texture way harder to compress well, incresising the file size probablie more than just having a extra map.
aGorm
Yes I could in theory just overlay the shadows onto teh ground texture, but
1) it wont effect units
2) it will make the texture way harder to compress well, incresising the file size probablie more than just having a extra map.
aGorm
-
- Posts: 265
- Joined: 04 Sep 2005, 01:25
Yeah, I was thinking about cloud mapping as well...
Couldn't you just use the skybox itself to help define that? Or that dynamic clouds feature? If the game just generates clouds to roll passed the point where the sun is supposed to be it could just render the cloud's shadows at run time.. or something like that... Something that's done at runtime would be better I think.. Don't you?
I dunno if this is precisely the best place to put this, but speaking of shadows. I just got a nice GE Force 6600 and finally got to look at the unit shadows (which in my opinion makes the game look 100% more realistic.) However, if I activate LOS it disables shadows. And that makes me sad.
Couldn't you just use the skybox itself to help define that? Or that dynamic clouds feature? If the game just generates clouds to roll passed the point where the sun is supposed to be it could just render the cloud's shadows at run time.. or something like that... Something that's done at runtime would be better I think.. Don't you?
I dunno if this is precisely the best place to put this, but speaking of shadows. I just got a nice GE Force 6600 and finally got to look at the unit shadows (which in my opinion makes the game look 100% more realistic.) However, if I activate LOS it disables shadows. And that makes me sad.

- GrOuNd_ZeRo
- Posts: 1370
- Joined: 30 Apr 2005, 01:10
What if the skybox could be used with the clouds overlayed ontop moving as an option in the mapconfig, maybe at a very high height that no unit could reach but not on the infinite, I guess that would generate cloud shadows albeit it might be problematic.
And models having light emmiters could do that aGorm, having a feature that simply emitts red light would do the volcano thing fine.
And models having light emmiters could do that aGorm, having a feature that simply emitts red light would do the volcano thing fine.