Terrain Lighting/Fog of War...?
by Ricky Taylor · in Torque Game Engine · 05/09/2006 (7:48 am) · 9 replies
Would it be possible to edit the terrain lighting (dynamically, C++)?
See, I'm trying to make Fog-of-War, and I want it to just darken "unviewable" areas.
I would like the terrain to repeat possibly, so any ideas?
See, I'm trying to make Fog-of-War, and I want it to just darken "unviewable" areas.
I would like the terrain to repeat possibly, so any ideas?
#2
It needn't have anything to do with lighting, that was just a thought.
05/09/2006 (7:59 am)
Yeah, but even if I had those, how would I do it?It needn't have anything to do with lighting, that was just a thought.
#3
05/09/2006 (10:08 am)
With Bit Shifter they had dynamic terrain textures, so you could possibly do something like that and have terrain textures be dark, and/or trying using dynamic view distance and fog setups. Base it all of a grid of what areas should be visible or something. No idea how difficult all that would be, just some guesses.
#4
didn't see that bit sorry
05/09/2006 (10:43 am)
Quote:I want it to just darken "unviewable" areas.
didn't see that bit sorry
#5
Lighting would be the obvious one, but I cant work out how to set the darkness of an area and all terrain repeats!
Please help. =(
05/10/2006 (8:17 am)
How could I do dynamic textures?Lighting would be the obvious one, but I cant work out how to set the darkness of an area and all terrain repeats!
Please help. =(
#6
05/10/2006 (9:23 am)
Why don't you adjust the fog in the world editor (make it closer)
#7
Any other ideas?
05/10/2006 (3:52 pm)
I'd need to edit the fog dynamically, any ideas? Volumetric fog sounds cool, and its something no-one has tried before.Any other ideas?
#8
05/11/2006 (7:46 am)
*BUMP* Mmmm?
#9
05/12/2006 (3:26 am)
My only suggestion isn't to "obscure" terrain and features and reveal them, but to simply not render them at all beyond a certain radius around friendly units, just make the pixel black. With Google to lookup the mathematics, you can vingette the edges for exactly the effect you're looking for.
Torque Owner Skylar Kelty
SkylarK