Jump to content
  • Advertisement
Sign in to follow this  
EverIce

Blending two textures with alpha

This topic is 5050 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 have several textures in my tiled terrain. I have to blend two textures where two different texs meet. How to do that if my texs don't have alphas? I have to create to every tile a blank texture with specified alpha ? And using this texture to blending ? Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
You could create an alpha texture map, I think that is the way Charles Bloom recommended for splatting (not saying you are doing splatting, just commenting). Either that, or you can try using the alpha of the vertices to blend the two textures together, however I'm not sure how well that would work.

-Mezz

Share this post


Link to post
Share on other sites
I suspect setting the alpha at vertices works quite well, I think quite a few things use it - Tuxracer for example from the map files looks like it does. I think Quake 3's terrain code does too.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!