Game Development Community

Fog Question

by CdnGater · in Torque Game Engine · 07/25/2004 (9:54 am) · 6 replies

I am not sure if Torque can do this, and if it can I have no idea how to set it up.

Using starter.fps

Orc Village in fog bubble.

When the player enters the village, its is covered in fog, but when the player moves horizontaly away from the village the fog vanishes.

I have created an object around the village that looks foggy from the outside, now when I enter, I want to see a foggy village.

Can torque as it is do that? if so, how do I set it up. If not, any ideas on how I could do it? (I don't want to be changing alpha's of the objects if I can help it).

I know how fog works verticaly and that is not what I am looking for. And no, putting village in lowest part of land and using banded fog will not work, then village would be underwater.

#1
07/26/2004 (12:08 am)
You can move the level of the water around...
#2
07/26/2004 (4:10 am)
So thats your answer Ben? Move the level of water! And that helps me create the the foggy village the way I need it how?

Now imagine that the village is on a small island that is surrounded by water. So moving the water would not be an option.
#3
07/26/2004 (4:45 am)
So you want a certain area of the map to be covered in fog and the rest not?

As far as i know Torque cant do that out of the box....
#4
07/26/2004 (5:18 am)
Simon, No, he was answering the last thing you said there, about "then it would be underwater"
#5
07/26/2004 (5:20 am)
Yes, you got it Daniel.

Ok thanks, not the answer what I was hoping for. Hum, guess I need to re-think what I was trying to do.
#6
07/26/2004 (9:00 am)
You're kinda touchy today. :)

You can try a few things here. One thing is just faking it with the existing system and varying the amount of fog in the world based on the player's distance from the village. For a subtle effect this would probably work pretty well. Or you could try full volumetric fog, but this would involve some fairly deep changes to the rendering code (and a speed hit, too, I'll bet).

Not a drop-in change but not impossible, either, especially if you're willing to work with the tech a bit to get what you want.