Game Development Community

Black Unique Terrain At a Distance

by Jesse McKinney · in Torque Game Engine Advanced · 01/07/2007 (8:58 am) · 1 replies

I recently recompiled my blended terrain to a unique terrain because of the significant performance difference between the two. However, now when in the map about where the fog starts, I am seeing some odd black fog of war effect on the terrain that makes the terrain in the distance all black:

img177.imageshack.us/my.php?image=base00005381ig8.png

It also shows up in the command map black as well.

I was wondering if anyone else has seen this before or knows of the cause and solution. I have made plenty of Unique terrains in the past and haven't seen this before. The fog color is a bright orange so the terrain turning black is a bit odd to say the least


-Calsa

#1
01/07/2007 (3:27 pm)
I managed to fix this with a bit of help from Byte, Basically if you encounter this problem its because your texture map chunk size is not the same as your height map chunk size in my case I was using a high res texture map with a 4096x4096 area and a height map that was 2048x2048. I made a mistake and set the lod for both the texture map and height map to be 3 which meant the terrain height map chunks were 512x512 and the texture chunks were 1024x1024. The engine was confused by the texture map chunks not being the same size as the height map chunks and LOD'ed the terrain to black out of terror. Once I set the texture map lod so the chunks were the same 512x512 size as the height map chunks it showed up the way it was suppose to.

Picture of it working
www.ascension-game.com/index.php/mod/gallery/file/display/image/170?asc=&sort=i....

Maybe in the next release GG can add in a check to make sure the texturemap and heightmap chunks are the same size so others dont have this problem in the future.