Sign in to follow this  
marltoro

Heightmap Texture Mapping

Recommended Posts

[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:
[url="http://www.youtube.com/watch?v=hOIEqxmJ8xg"]http://www.youtube.c...h?v=hOIEqxmJ8xg[/url]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this