I generated a 3d terrain, but when I apply the texture a black color appears !! ??
Hello - can you post the mesh and the image, or send to email@example.com? My guess is the mesh does not have texture coordinates, possibly - you can try
ApplyPlanarMapping on the mesh and see if that does anything.