Game Development Community

Materials on Terrain Textures?

by Kyle Goodwin · in Torque Game Engine Advanced · 10/30/2004 (7:43 pm) · 4 replies

I've been messing around doing some porting of my game over to TSE lastely and have gotten it working much quicker than I thought would happen, but there's one thing I can't seem to figure out. I have materials mapping to textures used in dts and dif just fine, but when I try to map a material to a terrain texture it doesn't work. The FAQ indicates that materials should be mappable to terrain textures, but are all materials being preempted by the terrain blending custom shader material? Is there something I need to do to make it do a second pass with my material or something? Thanks.

#1
10/30/2004 (8:55 pm)
The terrain texture blender blends the various source terrains and the lightmap. Then the resulting texture is used when rendering terrain geometry; a special terrain custom shader is used in both these stages. You'll have to modify those if you want special behavior. One thing to be aware of is that the alpha channel is blended but not used. You might be able to use that to modulate/control a shader effect.
#2
10/31/2004 (6:08 am)
Is there built-in functionality for bump/normal-mapping and detail texturing terrains already like in TGE or will I need to recreate these effects manually as well? Currently I'm getting flat-looking terrain with no detail texture and no bumpmapping even though I've speficied to use bump-mapping and detail textures in the preferences files and have a detail texture specified in the mission file...
#3
10/31/2004 (6:16 am)
It's easy to add, but it's not in there right now.
#4
10/31/2004 (6:43 am)
OK, thanks, I'll get to adding it then. :)