View distance [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

View distance [Solved]

Post 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
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: view distance

Post 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.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: view distance

Post by thelegend »

Wow. Some of the parameters were unknown for me. (e.g the last one). Thanks for posting that.
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

Re: view distance

Post by jojo3450 »

ok thanks
Post Reply