Game Development Community

Variable visible distance and fog

by David Erenger · in Torque Game Engine · 05/04/2004 (4:22 am) · 2 replies

Hi!

Is it possible to have different visibleDistance based on some triggers or anything? I have a deep forest that looks great with visibleDistance 200 and fog distance at 50 but when I'm out from the woods I would like to see more, the one reason not to have high visibility all the time is the trees, I have 100000 trees in the wood and with vis 200 it renders about 30 - 100 at a time.

Any idea how I can do this??

#1
05/04/2004 (7:22 am)
$pref::visibleDistanceMod can change the visible distance on the client in real time. It just does percentages but you should be able to modify the code it uses to do absolute values. Then just put a trigger in the map that sends a commandToClient that switches the visible distance
#2
05/05/2004 (10:23 am)
Or you can subclass Trigger and have it do it all in C++, which is probably a better solution.