Skip to main content
gamedev.net
🔒 Locked

Texturing Terrain

Started by Raeldor 1 reply 250+ views
Original Post
Raeldor
Raeldor
Does anyone have any good tips for texturing terrain. I have built a mesh from a heighmap using a binary triangle tree, and would now like to texture it. Each VERTEX maps to a height and ground-type map, but how do I translate this into textures that appear seamless? Regards Ray
zppz
zppz
you could start by making one texture with the same dimensions as your heightmap and use your height/ground-type map for the color of each pixel. then try auto-generated texture coords to stretch it over your terrain, (if you r using OpenGL, start by looking up glTexGen)

it probably wont look too great but you''ll get an idea of where to go next
Raeldor
Raeldor
Thanks. I was hoping to maybe have different textures for each ground type and set the textures against the polygons. Since each polygon could have three different ground types (since each vertex refers to a point on the grid), I assume it would involve some type of blending operation. Anybody have experience of doing this?

Regards

Ray

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.