Page 1 of 1

View distance [Solved]

Posted: Mon Aug 11, 2014 7:53 pm
by jojo3450
When I make a map things are invisible until i get close enough, and far away buildings are faded and seem to be fogged. How can I change this because maps that I play dont have that, I can see clear across the map. please help

Re: view distance

Posted: Mon Aug 11, 2014 8:18 pm
by GAB
These things are all setup in the world's .sky file, located in your world1 folder.

If you open the file you will find a SkyInfo() section right at the top, which may or may not contain the following:

EnableFadeAdjustWithZoom(1): If included, it increases the view distance when you zoom.

FogRange(10.0, 450.0): If included, it applies fog to the scene. The two values are there so that you can create a smooth fog intensification. In this example, the fog would start 10 meters in front of the camera and would be fully intense at 450 meters away from it.

FogColor(Red, Green, Blue, Alpha): If included, it tints the the fog mentioned above with the specified color.

NearSceneRange(60.0, 150.0, 75.0, 200.0): Most important part of the sky file. It controls when the game stops rendering high resolution models and starts rendering low resolution ones instead. It is used for performance purposes.

> The first value represents when the lowrez starts fading into the scene (in this case, 60 meters away from the camera)
> The second value represents when the lowrez finishes fading into the scene (in this case, 150 meters away from the camera)
> The third value represents when the hirez starts fading out of the scene (in this case, 75 meters away from the camera)
> And the last value represents when the hirez finishes fading out of the scene (in this case, 200 meters away from the camera)

There are four values so that the hirez models doesn't suddenly disappear and lowrez one doesn't suddenly appear. This results in objects transitioning between the two in a smooth fashion.

FarSceneRange(800.0, 1000.0): This controls when the whole scene starts to fade out, which in this case, would begin at 800 meters from the camera and would finish at 1000 meters away from it.

WorldFogRange(0.0, -10.0): This adds a fixed fog coming from below of the map. -10 is the height where the fog is the most intense. 0 is the height where it ends. The color of this type of fog is set by the FogColor parameter.

And I think those are the parameters that cover you issue with a few bonus ones just for the record.

Re: view distance

Posted: Tue Aug 12, 2014 6:19 am
by thelegend
Wow. Some of the parameters were unknown for me. (e.g the last one). Thanks for posting that.

Re: view distance

Posted: Tue Aug 12, 2014 7:21 pm
by jojo3450
ok thanks