Archived

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

no one

terrain texturing question...

Recommended Posts

no one    133
Hello, Im working on a terrain engine right now and I was wondering how exactly to go about texturing it. What I want to do is have the designer be able to ''paint'' the terrain with different textures. Each quad or every two triangles will have a texture filename attached to it which is the easy part, but what about borders (ie. if the textures don''t overlapp, how can the be blended together). Should there still be a base texture and every other texture is simple a detial?(ie. sand is the base texture or whatever and grass, stone etc is simply a secondary texture). I should add that I have worked on terrains before and know the basics, so please don''t give me a link to game tutorials Thanks in advanced.

Share this post


Link to post
Share on other sites
sBibi    241
you need multiple textures, not per quad, but per patch or whatever patch groups make up your terrain (and whatever you called them). you also need weights for these textures, to alpha blend them on top of each other.
also have a look at texture splatting on google...

Share this post


Link to post
Share on other sites
no one    133
Alrighty, well after reading your(sBiBi) post I started to do some research on terrains. I wasn't sure exactly what you had ment by patch, but I think I know it now, plus I think I know how you do the texturing...

Each patch is a portion of the full height map, say 128x128 or so in size and containing say 64 tris each. So, to texture each patch, you use the slope/weight algorithym which if converted to a single image would be mapped to the patch and work like a standard texture stretched over 1 huge terrain. Correct?


[edited by - no one on January 22, 2004 9:21:55 PM]

Share this post


Link to post
Share on other sites
no one    133
could someone tell me if im correct, please? Im working on a over head 3d rpg like diablo 2, so the terrain does not need to
be very complex. I just would like to know what the best method
would be, that would alow the desinger to place say grass textures on various parts of the world, dirt on others, and
roads/paths. Again, I don''t need to use elevation maps, but I need a way to texture the terrain and be able to blend textures
together near the edges. Can anyone help me out here

Share this post


Link to post
Share on other sites