Does the "lowresterrain" parameter work in BF2?

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
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Does the "lowresterrain" parameter work in BF2?

Post by edge123455 »

I have tried messing around with it and I have gotten no results. Tried adding different textures and screenshots from my map as some tutorials around stated and still nothing.

Here is the little chunk of script in my skyfile:

LowResTerrain()
{
Texture("HBFLOW");
PatchResolution(6);
MaxDistance(6000);
DetailTexture("HBFLOW");
DetailTextureScale(0.5);
}

Is there anything I'm doing wrong?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Does the "lowresterrain" parameter work in BF2?

Post by AceMastermind »

It must work since the devs used it when making the newest Kashyyyk map.

kas2.sky

Code: Select all

	LowResTerrain()
	{
		Texture("kas2");
		PatchResolution(8);
		PC()
		{
			MaxDistance(1500);
			DetailTexture("kas2_far_detail");
			DetailTextureScale(0.5);
		}
		
	}
Maybe other factors like your sky file or game video settings are causing it not to work for you.
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: Does the "lowresterrain" parameter work in BF2?

Post by edge123455 »

I'm still not getting nothing, I even made the lowres texture all black to see If it would be visible but nothing is happening.

Tried messing with the farscene parameters but nothing.

FarSceneRange(300, 5000.0);
Is my deault how I optimized it for my map.

For the lowresterrain I have this:
MaxDistance(7000);

Tried everything and it doesn't work. I even put "Enable(1);" in the lowresterrain to see if that would work but nothing.

Here is my skyfile:
Hidden/Spoiler:
[SkyInfo()
{

Enable(1);
NearSceneRange(40.0, 300.0, 100.0, 1700.0);
FarSceneRange(300, 5000.0);


}

DomeInfo()
{
Texture("SKY_bespin1.tga");
Angle(190.000005);
Ambient(128.000038, 128.000038, 128.000038);
Softness(1);
SoftnessParam(60);
EnableBottom(1);
Offset(-228.0);

PC()
{
//TerrainBumpDetail("hoth_bump", 1.0, 0.3);
}

DomeModel()
{
Geometry("bes1_sky_dome");
rotationspeed(0.001, 0,1.0,0);
EnableBottom(1);

}

LowResTerrain()
{

Texture("hbf_lowresterrain");
PatchResolution(6);
MaxDistance(7000);
DetailTexture("hbf_lowresterrain");
DetailTextureScale(0.5);
}



DomeModel()
{
Geometry("SKY_bespin1_clouds");
Offset(0.0);
MovementScale(0.9986);
EnableBottom(1);
}

DomeModel()
{
Geometry("hoth_mountain");
Offset(0.0);

}

}
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Does the "lowresterrain" parameter work in BF2?

Post by AceMastermind »

You have a stray bracket at the beginning.

The lowres terrain image can be created in ZE with a top-down screenshot of your map then edited to your liking.
Advanced>Terrain>Save Map (set size of image first)
[color=#FF8040]Rends[/color] wrote:LowResTerrain()
{
Texture-------------------here you need to add the image name of a lowres version (for example 512x512 pixel ) of your complete map.

this screenshot shows a map one time without a lowres terrain image(upper half) and one time with a lowres terrain image(lower half):
Image
There is nothing special that has to be done based on the information given.
The stock images are RGBA varying in size(64x64, 128x128, 256x256 etc).
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: Does the "lowresterrain" parameter work in BF2?

Post by edge123455 »

Sorry for the late response, I've been busy these last days.

Anyways, the stray bracket in the sky file happened on accident as I tried to post it here and "Hide" it which didn't work until several tries and I guess I forgot to delete bracket.

So here are all the steps I did to try and get the lowresterrain to show up.

1) Took 1024, 512 and 256 screen shots of the terrain in editor like I said. I saved them as tga, named the files and transferred them to my world folder and adjusted the loweresterrrain parameter as needed to the name of the tga.

2) I played around with the lowresterrain parameters such as "MaxDistance();" and the farsceneRange parameters .

3) Played around with the video settings in game with LOD, visibility, lighting, etc.

4)Made an all black 512 tga image to see if it will be visible at far distances.

5)Removed the fog parameter to make the whole map clean and visible.

6)I even switched the lowresterrain to the FX file since some parameters from BF1 sky file where switched to the FX file for BF2.

Of all these steps I still don't get nothing and at the distance I can see the terrain cut off due to the value of the "FarsceneRange" I put to get the Lowresterrain to render at farther distances but still nothing. And like I said I played around with the visibility ranges for an hour or so.
Post Reply