Hello,
I'm trying to find an algoritm to do this wit irrlicht:
1 - Have a binary 2d array on wich every position maps a world cell and the value of the byte indicates the type of terrain (Grass, land, rock).
2 - Have a bmp heightmap representing the y axis of the terrain. (And detail map, ...)
This is the solution I'm idealizing:
> Use the terrain APIs in irrlicht to generate the terrain mesh.
> Put all the textures on the same texture map and use the tu and tv components to select the right texture according to the type of terrain.
> Does anyone ever seen something like this done? Code samples?
> How can I alter the tu and tv coordinates of every point in the mess to point to the right texture?
> Any comments on the algorithm?
Thanks,
Pedro
Generating maps and loading them on runtime
Hello, I'm trying to accomplish something very similar. I was trying to use meshes before, but I a simpler way would be to use this: http://www.irrforge.org/index.php/Some_ ... or_Texture to tile smaller textures into one large texture, and generate a terrain node from that.