🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How can i merge some textures ?

Started by
2 comments, last by NinjaCross 23 years, 11 months ago
hey guys ! I hope somebody is able to help me... I''ve got a little big question. I''ve got a landscape generated using a heightmap, and i have a set of textures. Each of these textures is suitable for a height-level of the height map. Now i wanna apply these textures. The texture applied to the landscape, should be a merged (interpolated) version of all (or some) of them. In this manner, the terrain should appears uniform nd realistic. How can I (fast) interpolate the textures in real-time to obtain the appropriate one to use on the landscape ? I saw this effect on a lot of voxel egines, but i''ve never found the source code. Can you help me please ? Any clue will be appreciated //------------- Making Funny Garbage Codes on http://members.xoom.it/NinjaCross
//-------------A straight line may be the shortest distance between two points, but it is by no means the most interesting.http://members.xoom.it/NinjaCross
Advertisement
Dunno but multitextureing is one way to merge textures but how to do it for what u want I don''t know, not much help that really was it.
< warning, I am at work and have nothing to reference.. these ideas are PURE speculation >

Heya!

If I''m not mistaken, there are functions to replace part of a texture.. or image.. It would seem to me that would be a good thing to try.. on borders you could somehow fade/blur you textures together..

I''m not a 100% sure what your talking about, but an easy way to say go from land to water is to have a transition texture.. like a "shore" texture specifically designed for that purpose..

If you took say the first four rows of a texture on any border and did some kind of alpha blending or products of the colors you might be able to accomplish it..

let me know if you work something out..


bosco()
--leader of the free world .. or something ..
Thankyou so much for your help guys, i''ll try to follow them !

//-------------
Making Funny Garbage Codes on
http://members.xoom.it/NinjaCross
//-------------A straight line may be the shortest distance between two points, but it is by no means the most interesting.http://members.xoom.it/NinjaCross

This topic is closed to new replies.

Advertisement