Digital Paint Discussion Board
Development => Bugs, Feature Requests, and Feedback => Topic started by: Cobo on October 16, 2005, 08:19:05 PM
-
i think it would be prety cool to have like maps with a sky that changes from day to night, and from night to day each round or maybe to change slowly while time passes.
wouldnt it be cool? :D
-
And rain, and snow, and thunder, lightning, tornadoes, volcanoes, earthquakes and big chunky pieces of meteors! :D
Yes, that would be the day, cool as icecream.
-
Actually, I really like the day/night idea. The sun could be completely different from the sky, and the sky could have sunsets and stuff.
/me is excited.
-
Two problems: The skies are pre-rendered, and the lightmaps are pre-calculated. Each takes several minutes, and sometimes more than an hour to complete. It would not be possible to do these in realtime. Not with current hardware, and not at the same quality they have now.
Also, maps only last a few minutes anyway, so it's not like it would change from day to night in that period of time.
-
well it doesnt has to be like a 24 hour cycle :P
it can be like each day/night could last a minute, or just one round day and other round night!
:)
-
Hmmm... I didn't think about the light.
This solution is a horrendous waste of time, and require changes to the mapformat/compiler, but it could do four light render passes (sunrise, noon, sunset, midnight) ano have them fade between...
Way too hard, but an idea nonetheless.
-
Variable for Darkness_Factor, set to 0 for noon and -XX for Midnight. Use these values and change the sky picture depending on time of day, with an int that stores the current time. If int >4 (aka full cycle done) int = 0 (aka noon again) and with each round int++. Then use the Darkness_Factor to decrease the brightness of the light, therefore making it seem darker..
Though I'm not sure if you can do that easily with the lights, since users make maps and add light origins..
Edit:
And the pre-rendered sky type thing, have 4 pre-rendered switching ones and for dark maps have a var that means "Dont change light" (Possibly)
-
Post removed
-
Lighting transitions wouldnt be choppy because there could be 2 ways to do it:
1. Slowly decrement current light untill new light value is reached
2. Change light between round, with big jumps in time. 3 rounds per Time change (or so).
-
The first wouldn't be that bad, but it would be impossible to code.
-
int light_value_subtract=40; //Example for how dark to make it
for(int i=0; i<light_value_subtract; i++)
{
current_light_value--;
//Some sort of waiting here (sleep type timer class)
}
Or if its Light values that make a huge difference from 2 to 1, use decimels in the for loop.
-
It's not that simple. Ask jits.
-
It would be possible in something like doom3 where the lighting is realtime (and slow), but Paintball2 uses precalculated lightmaps. They're textures. I mean, I could do something cheesy like make the whole lightmap darker, but I don't think it would look very good, And does it add much to the game? It just makes things gradually harder and harder to see.
-
It would be possible in something like doom3 where the lighting is realtime (and slow), but Paintball2 uses precalculated lightmaps. They're textures. I mean, I could do something cheesy like make the whole lightmap darker, but I don't think it would look very good, And does it add much to the game? It just makes things gradually harder and harder to see.
Ah n/m then, I was thinking the light were realtime or.. well something different then textures.