[Help] Undergrowth won't show in editor or ingame

Making or wanting help making your own asset? Check in here
Post Reply
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

[Help] Undergrowth won't show in editor or ingame

Post by Spyker2041 »

Hey guys, got a problem. I am finishing a map off for someone, they have set up their UG and it is painted on the map as you can see but the UG won't show up in the editor or ingame.

Image

Here is his undergrowth.cfg

Code: Select all

ViewDistance 150
ViewDistanceFadeScale 0.5
ViewDistanceHeightScale 0.4
ViewDistanceHeight2Scale 0.4
ViewDistanceStreamingScale 1
PatchSubdivide 15
SwayScale 0.15
LightingScale 1.8
AlphaRef 0.15

Material main_land_vegi 1
{
	GeneralHeight 0

	Type 1
	{
		Mesh hexagon
		Texture Defaultgrass2
		RandomSizeScale 0.6 0.5
		Density 0.5
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.3
		Skew 0
	}
	Type 2
	{
		Mesh deadgrass
		Texture grass_mix4
		RandomSizeScale 0.5 0.7
		Density 0.09
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.4
		Skew 0
	}
	Type 3
	{
		Mesh hexagon
		Texture grass_mix
		RandomSizeScale 0.7 0.8
		Density 0.5
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.3
		Skew 0
	}
	Type 4
	{
		Mesh NC_FernUG01
		Texture NC_FernUG01
		RandomSizeScale 0.7 0.7
		Density 0.04
		Variation 1
		TerrainColorScale 0.7
		TypeSwayScale 0.4
		Skew 0
	}
	Type 5
	{
		Mesh kelp01
		Texture kelp01
		RandomSizeScale 0.2 0.1
		Density 0.015
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.3
		Skew 0
	}
	Type 6
	{
		Mesh hexagon
		Texture Defaultgrass
		RandomSizeScale 0.7 0.5
		Density 0.5
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.4
		Skew 0
	}
	Type 7
	{
		Mesh deadgrass
		Texture fieldgrass
		RandomSizeScale 0.5 0.6
		Density 0.02
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.4
		Skew 0
	}
	Type 8
	{
		Mesh deadgrass
		Texture flower
		RandomSizeScale 0.5 0.4
		Density 0.07
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.3
		Skew 0
	}
}

Material garden 2
{
	GeneralHeight 0

	Type 1
	{
		Mesh hexagon
		Texture grass_mix
		RandomSizeScale 0.3 0.2
		Density 8
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0.2
		Skew 0
	}
}

Material stones 3
{
	GeneralHeight 0

	Type 1
	{
		Mesh ME_genrock01
		Texture ME_genrock01
		RandomSizeScale 0.3 0.2
		Density 0.2
		Variation 1
		TerrainColorScale 1
		TypeSwayScale 0
		Skew 0
	}
}

Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
VapoMan
Retired PR Developer
Posts: 1139
Joined: 2009-05-29 07:11

Re: [Map] Undergrowth won't show in editor or ingame

Post by VapoMan »

This happend to me before. It was because there the undergrowthatlas.tai and undergrowthatlas0.dds files were missing. These files control the texture of the undergrowth.

Im not sure what I did to fix it, but try making a small change to the undergrowth by painting something like 1 square and making a small change to one of the density values and then save.

Image"Eight glorious sides and eight stunning angles!"Image
dunem666
Posts: 559
Joined: 2009-06-02 13:04

Re: [Map] Undergrowth won't show in editor or ingame

Post by dunem666 »

copy undergrowthatlas from a different map, re open in editor, replace small fraction of your UG and resave. The TAI files are missing.

your random size scale needs to be set at 1 or more especially with the materials your using, they will simply not show up or be much too small.

set x and y to 1 and try again. regenerate.

here is example of some UG i have made that works.
ViewDistance 400
ViewDistanceFadeScale 0.5
ViewDistanceHeightScale 0.4
ViewDistanceHeight2Scale 0.4
ViewDistanceStreamingScale 1
PatchSubdivide 15
SwayScale 0.15
LightingScale 1.8
AlphaRef 0.15

Material g1 3
{
GeneralHeight 0

Type g1
{
Mesh deadgrass
Texture deadgrass
RandomSizeScale 1 1
Density 0.02
Variation 0.2
TerrainColorScale 1
TypeSwayScale 1
Skew 0
}
Type g2
{
Mesh ME_grassbush01
Texture ME_grassbush01
RandomSizeScale 2 1
Density 0.01
Variation 0.2
TerrainColorScale 1
TypeSwayScale 1
Skew 0
}
Type g3
{
Mesh ME_deadstick01
Texture ME_deadstick01
RandomSizeScale 1 1
Density 0.01
Variation 0.2
TerrainColorScale 0
TypeSwayScale 0
Skew 0
}
Type g4
{
Mesh ME_genrock01
Texture ME_genrock01
RandomSizeScale 1 1
Density 0.01
Variation 0.2
TerrainColorScale 1
TypeSwayScale 0
Skew 0
}
Type g5
{
Mesh ME_genrock02
Texture ME_genrock02
RandomSizeScale 1 1
Density 0.01
Variation 0.2
TerrainColorScale 0
TypeSwayScale 0
Skew 0
}
}
dunem
ImageImage
ImageImage
Post Reply

Return to “PR:BF2 Community Modding”