- Title: Extended Blend Modes Visualization
- Description: View the outcome of extended blend mode combinations on a handy sheet.
- GM Version: GM8.0
- Registered: Yes. The blend modes aren't available in the free edition.
- File Type: *.gmk
- File Size: 1.40 MB (Because of the pretty background image. I thought it was worth it!)
- File Link: http://www.host-a.ne... Phantom107.gmk
A lot of people (including myself) have been a bit puzzled on the correct use of extended blend modes. To make things easy to understand, and to create "plug and play" accessibility, I have put together a handy sheet. On this sheet you can see the outcome of combinations of blend mode sources and blend mode destinations.
The extended blend mode function according to the GameMaker Manual:
The sheet is what it's all about. I put it inside this spoiler tag, because it's a relatively big image.draw_set_blend_mode_ext(src, dest)
Indicates what blend mode to use for both the source and destination color. The new color is some factor times the source and another factor times the destination. These factors are set with this function. To understand this, the source and destination both have a red, green, blue, and alpha component. So the source is (Rs, Gs, Bs, As) and the destination is (Rd, Gd, Bd, Ad). All are considered to lie between 0 and 1.
Sheet 1 - Complete tree on stretched gradients, drawn on top of buildings wallpaper
Sheet 2 - Tree that has the right side 50% transparent on local gradients, drawn on top of gray (128, 128, 128) background.
Sheet 3 - Tree that has the right side 50% transparent on local gradients, drawn on top of checkers background.
Sheet 4 - Tree that has the right side 50% transparent on pure white, drawn on top of gray (128, 128, 128) background.
Sheet 5 - Tree that has the right side 50% transparent on pure black, drawn on top of gray (128, 128, 128) background.
There is a *.gmk too, so you can play around with different images to match the sheet to your exact situation.
Warning
Creativebunch brought to my attention that there was something fishy going on. I did some testing with the loop and concluded he was right! After some testing I got it right though, so please re-download if you already have the files on your PC.
- Phantom107
Edited by Phantom107, 04 July 2011 - 04:25 PM.

















