Archived

This topic is now archived and is closed to further replies.

Freeride Designs

Landscape Textures

Recommended Posts

I''m working on a landscape engine that uses height maps, and I''ve decided there are two ways to do the textures: 1) One large texture covering the whole landscape, easy to do, but very poor detail. 2) Tile the textures, much better detail. But the problem I''m having is when using method 2, how do I create the vertices, with method 1 I would just have the landscape as 1 long triangle strip, but with method 2 would I need to set several texture coordinates to each vertex, and thus have to create lots more vertices (BTW I''m using D3D) ----------------
Freeride Designs
----------------

Share this post


Link to post
Share on other sites
Yoshi    122
In D3D7 you can use multiple texture coordinates in one vertex(uses more memory anyway). You just have to set your own vertex format with the amount of texture coordinates you need.
e.g
struct Tex3Vertex
{
float x,y,z;
float tu,tv,tu2,tv2,tu3,tv3;
}
just an example.

The last truth is that there is no magic(Feist)

Share this post


Link to post
Share on other sites