Game Development Community

Terrain all black

by xardias · in Torque Game Engine Advanced · 08/31/2006 (12:06 pm) · 3 replies

Hi,

I am just porting my scripts from tge to tse.
The game and the server both start without any complains, and the good old orc fellow is lit using the material system.
But I have problems to get the terrain running correctly.
For testing porpose i used an old tge terrain instance. When loading the terrain tse complains about missing material definitions (TerrainMaterial and some other). I created all of them and assigned them the no-material texture.
new Material(TerrainMaterial)
{
   baseTex[0] = "./warnMat";
   emissive[0] = true;
};
The level loads but the terrain shows up all in black and relighting has not solved the problem. I later also tried loading an atlas terrain with the same effect.
Maybe am I missing any script from tse, but I really dont know what do try next.
I would really appreciate any suggestions on where the root of this problem may be.

thanks :)
Dennis

#1
06/26/2007 (10:22 am)
Old post but I ran into the same issue when porting my project. Only the effect happened on only two of four machines. It turns out I had the April '07 DirectX SDK installed. When I went to October '06, I think it was, it was all peachy again.

Edit: Forgot to mention, the console log was complaining like this:

GFXD3DShader::initVertShader - no compiled code produced; possibly missing file 'shaders/legacyTerrain/terrainDynamicLightingMaskV.hlsl'?
GFXD3DShader::initVertShader - unable to compile shader!
#2
06/26/2007 (10:37 am)
Yes, definately a DirectX version problem. Had the same recently with the Flight Game Example.
#3
06/27/2007 (7:36 am)
The latest version of TGEA should work with the April 07 DirectX SDK now. At least, that's what was reported.