• Advertisement

Archived

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

Landscape Textures

This topic is 6421 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Check out my game demo at this link:
RaptorEntertainment

I have used a different method.the textures are created at run time for the patch that is visible.


Edited by - Raptor on July 23, 2000 5:36:17 AM

Share this post


Link to post
Share on other sites

  • Advertisement