Skip to main content
GameDev.net gamedev.net
🔒 Locked

Texturing Terrain

Started by Q-Mark Jul 21, 2002 at 5:15 PM 3 replies 500+ views
Original Post
Q-Mark
Q-Mark
I don''t know if this has been asked before, if so I apologize right away. I''m currently into terrain-rendering, and of course I use height maps to create my terrain. Now the texturing is a problem to me; The texture I map onto a quad depends on the height of the Quad. But if one quad stretches from the deepest point of the mesh to the highest It would be cool to have the lower two vertice have a sand texture and the upper two a stone texture. This has been done in games before, so there must be some way, but I just can''t figure it out. The only method I could think of (which I think is a horrible solution) is to draw the quad with a stone texture, then draw a quad with the sand texture + total transparency on the upper two vertice. Does anybody here have a simple solution in idiomatic C++? Thnx in advance! SNAFU - Sitation normal; All fucked up
SNAFU - Sitation normal; All fucked up
Q-Mark
Q-Mark
Hmm.
That would end up in generating a LOT of textures...
Isn''t there a way to blend one texture into another without using more than one quad?

Oh, and yeah, I don''t exactly need source code, might sound a little like this from my first post though.

SNAFU - Sitation normal; All fucked up
SNAFU - Sitation normal; All fucked up
Q-Mark
Q-Mark
Interesting. I''ll look into that, thnx!

SNAFU - Sitation normal; All fucked up
SNAFU - Sitation normal; All fucked up

Topic Locked

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

Sign in to reply to this topic.