Game Development Community

Cannot see detail texture on terrain?

by Peng Du · in Game Design and Creative Issues · 04/01/2007 (4:55 am) · 3 replies

I chose an image for detail texture, but I can't see the detail texture's effect. What is the probable reason?

Thanks in advance!

#1
05/04/2007 (9:41 am)
Yeah i have the same problem, seems like you have to change the detail1.png in the folder and restart the engine to see any difference but that cant be right
#2
09/21/2007 (10:37 am)
You are using TGEA I am assuming by the post. (TGE details work fine) The detail and bumpmap properties on legacy terrain in TGEA do nothing. the detail texture for the terrain is actually set in "Torque_Directory/Example/Game_Directory/data/materials.cs"

Look for the block that says:

new CustomMaterial(TerrainMaterial)
{
   shader = TerrShader;
   version = 1.1;

   texture[3] = "~/data/terrains/details/detail1";

   dynamicLightingMaterial = TerrainMaterialDynamicLighting;
   dynamicLightingMaskMaterial = TerrainMaterialDynamicLightingMask;
   preload = true;
};

change the "texture[3] = "~/data/terrains/details/detail1";" (detail1 is the current detail texture)

unfortunately for some god-awful reason you can only have 1 detail texture per zone so if you have more then 1 land type you are kind of screwed... IE. use a detail that looks like sand and your grass will look like green sand, and since you cant scale the texture size good luck getting any kind of actual detail from the texture itself. (you can change the square size to an extent but that doesn't make up for not being able to scale the texture size itself as you still cannot get it small enough to show sufficient detail. Your best bet is to use a general, subtle detail texture and hide as much as you can with foliage and stuff.
#3
09/21/2007 (7:02 pm)
Thank you very much for your detailed explaination Ethan!