[Help] Black Patchs on terrain

Making or wanting help making your own asset? Check in here
TheDarkOverlord
Posts: 134
Joined: 2006-05-07 13:19

Post by TheDarkOverlord »

I am still having this problem, and not just in night maps. I tried making another map (a daytime map), and the black patchs appear on the terrain. It seems to replace certain textures, such as mountains or mud. What am I doing wrong?
Image
TheDarkOverlord
Posts: 134
Joined: 2006-05-07 13:19

Post by TheDarkOverlord »

I can't figure out what is wrong. I rendered lightmaps on low with the following settings:
rem ******** Lightmap Generation Settings ********
if v_arg1 == BF2Editor

LightMapGeneration.init
LightMapGeneration.GILightsBaseDir 0/0.33/-0.66
LightMapGeneration.GILightsIntensity 0.33
LightMapGeneration.GILightsShadowIntensity 1
LightMapGeneration.GILightsFov 45
LightMapGeneration.UseGITopLight 1
LightMapGeneration.GITopLightIntensity 0.1
LightMapGeneration.GILightsViewDistance 10
LightMapGeneration.skyWhite 0.3
LightMapGeneration.numberOfGILights 8
LightMapGeneration.sunLightShadowIntensity 1
LightMapGeneration.sunLightFov 2
LightMapGeneration.sunLightIntensity 1

endIf
It looks fine in the editor but in game, the terrain looks ugly and has black patchs all over (Also, I set the object texture to woodland, but in game it is desert). Here are some screeshots of the problem:

Editor:
Image

In Game:
Image

Editor:
Image

In Game:
Image

Editor:
Image

In Game:
Image

Editor:
Image

In Game:
Image

The textures look fine from far away, but when you get closer or zoom in the black patchs appear.

Far Away:
Image

Zoomed In:
Image
Image
Griffon2-6
Posts: 2487
Joined: 2006-05-26 04:21

Post by Griffon2-6 »

Oh.... I know the problem now! Did you editor happen to crash while saving? Go to your layers folder for texturing in the editor, then click on each of your layers. Make sure your detail textures and color textures are still assigned, because this happened to me, but fortunately I figured it out.
TheDarkOverlord
Posts: 134
Joined: 2006-05-07 13:19

Post by TheDarkOverlord »

Griffon2-6 wrote:Oh.... I know the problem now! Did you editor happen to crash while saving? Go to your layers folder for texturing in the editor, then click on each of your layers. Make sure your detail textures and color textures are still assigned, because this happened to me, but fortunately I figured it out.
I think this might be it, I remeber the editor crashing during saving at one point (can't remeber when though). I can change the detail textures, but when I try to change the colour textures the colour texture on places where I have already painted does not change. Do I have to repaint the whole map to get it to work?
Image
Griffon2-6
Posts: 2487
Joined: 2006-05-26 04:21

Post by Griffon2-6 »

No.... not if I recall correctly. Worked fine for me, the color texture should change. I always change my color texture if it looks horrible from a distance.
TheDarkOverlord
Posts: 134
Joined: 2006-05-07 13:19

Post by TheDarkOverlord »

Griffon2-6 wrote:No.... not if I recall correctly. Worked fine for me, the color texture should change. I always change my color texture if it looks horrible from a distance.
When I change colour textures in the editor, nothing happens and it stays as the old colour texture.
Image
Griffon2-6
Posts: 2487
Joined: 2006-05-26 04:21

Post by Griffon2-6 »

It looks like there is no change, but that's because you already have the detail texture on top of it. Change render mode to texture mode to see the difference.
TheDarkOverlord
Posts: 134
Joined: 2006-05-07 13:19

Post by TheDarkOverlord »

Griffon2-6 wrote:It looks like there is no change, but that's because you already have the detail texture on top of it. Change render mode to texture mode to see the difference.
Even in texture mode nothing changes.
Image
.:XDR:.FRIJJ
Retired PR Developer
Posts: 212
Joined: 2006-05-17 13:47

Post by .:XDR:.FRIJJ »

sorry just double checking your not doing a 1024x4 map by any chance?


If not try going into your levels folder/mapname/editor/lightmaps, colormaps, detailmaps, lowdetailmaps and make sure all the lightmaps, colormaps, detail maps, low detail maps have been saved into your levels folder properly. It might be missing a couple of files hence why your getting black in game and not in editor.

When working in editor it uses the files from levels/yourmap/editor
When working in game it uses the files from levels/yourmap
TheDarkOverlord
Posts: 134
Joined: 2006-05-07 13:19

Post by TheDarkOverlord »

'[R-CON wrote:. :X DR:.FRIJJ']sorry just double checking your not doing a 1024x4 map by any chance?


If not try going into your levels folder/mapname/editor/lightmaps, colormaps, detailmaps, lowdetailmaps and make sure all the lightmaps, colormaps, detail maps, low detail maps have been saved into your levels folder properly. It might be missing a couple of files hence why your getting black in game and not in editor.

When working in editor it uses the files from levels/yourmap/editor
When working in game it uses the files from levels/yourmap
Thanks! That fixed the terrain.

Now my undergrowth is all weird though.
Image

If I delete the undergrowth layer and recreate it, will it keep the painting? Or is their an easier way to fix this?
Image
Griffon2-6
Posts: 2487
Joined: 2006-05-26 04:21

Post by Griffon2-6 »

Hmmm..... in the tweaker bar, did you set terrain sun color and terrain sky color? And if so, did you set a value for the undergrowth under "terrain color match"?
.:XDR:.FRIJJ
Retired PR Developer
Posts: 212
Joined: 2006-05-17 13:47

Post by .:XDR:.FRIJJ »

Look at this thread here, the last post tells you all you need to do ;)

http://bfeditor.org/forums/index.php?showtopic=5884&hl=
TheDarkOverlord
Posts: 134
Joined: 2006-05-07 13:19

Post by TheDarkOverlord »

'[R-CON wrote:. :X DR:.FRIJJ']Look at this thread here, the last post tells you all you need to do ;)

http://bfeditor.org/forums/index.php?showtopic=5884&hl=
That fixed it.

Thanks!
Image
.:XDR:.FRIJJ
Retired PR Developer
Posts: 212
Joined: 2006-05-17 13:47

Post by .:XDR:.FRIJJ »

Let us know when your finished mate, would love to see your masterpiece :)
Post Reply

Return to “PR:BF2 Community Modding”