PDA

View Full Version : Texturing landscape



03-16-2006, 06:01 AM
Hello, all......
I have a problem with texturing generated landsape:
My program generates a height 50x50 map.
Also I have two textures of ground - rock and grass.
I need to mix these textures according to the height map - so as peaks become "rocks" and plain becomes grass.
But if I'll mix textures, according to 50*50 height map and then apply it to WHOLE landscape, it looks awful(because it's too small), but I can't tile mixed texture - because "peaks ans plains" will tile too.......
So, I need to mix TILED(!) grass texture with TILED rock, acording to NONTILED, warped texture of height map!

I hope, you understood my problem :)

ZbuffeR
03-17-2006, 01:22 AM
Go for multitexture, that way you can specify texcoords for each texture independantly.

This tutorial may help you :
http://www.delphi3d.net/articles/viewarticle.php?article=terraintex.htm