Merging an image with a mask. How can it be done?

BlitzMax Forums/OpenGL Module/Merging an image with a mask. How can it be done?

Canali(Posted 2011) [#1]
Hi,
first of all forgive my poor english but I'm not native.

I already posted this in another section but think this might be more appropriate.

:)

I was building my tile engine and had to handle tiles transitions.
Instead of drawing each kind of tile with any possibile transition I wanted to use opacity masks to be used when plotting a tile.

Example:
http://blogs.silverlight.net/blogs/msnow/archive/2008/08/25/terrain-tutorial-part-3-creating-smooth-tile-transitions-using-opacity-masks.aspx

I mean, is there a way I can quickly merge an image with an opacity mask and then draw it?
Any other approach suggestion??

Thanks
:)


Zeke(Posted 2011) [#2]
http://blitzbasic.com/Community/posts.php?topic=94692