[SOLVED]
I made a DirectX 9 program that will create a heightmap from a .raw file. Everything works perfectly find except I can't figure out how to project a texture on the entire heightmap. What would be the best way to project a texture on my heightmap?
I can texture map individual triangles with this code:
The numbers represent the vertices:
TerrainTest[0].u = 0.0f;
TerrainTest[0].v = 0.0f;
TerrainTest[1].u = 1.0f;
TerrainTest[1].v = 0.0f;
TerrainTest[2].u = 0.0f;
TerrainTest[2].v = 1.0f;
Here's a short video of it just in case that helps:
http://www.youtube.c...h?v=hOIEqxmJ8xg
Heightmap Texture Mapping
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement