L
Lars Karlsson
Guest
Hi there. First I'd like to give thanks to maartenvt for sending me on the right direction and I've gotten really close to my goal. Just one last step that I'm stuck on.
I'm quite bad at explaining so hopefully I'll get my question across.
Game without surfaces. What the game looks like without any surfaces.
Shadow1 A surface generated by a line-of-sight extention.
Shadow1 + Grass The game with the surface applied using draw_set_blend_mode_ext(bm_dest_color,bm_zero).
So far all good.
Now to the hopefully last step.
I want to achieve THIS with the help of either FOG1 or FOG2.
I basically want the 'fog' to only draw where it's black.
My best guess is to create a second surface which combines Shadow1 with either FOG1 or FOG2 and then draw that after the first surface. I've tried many different blend modes and combinations without result.
EDIT: I feel like drawing a second surface with FOG2 should do. But I must be using the blend modes wrong.
EDIT2: Using FOG2 above the first surface in Photoshop using the mode 'Lighten' achieves the right result. Is there a blend mode in GM that work just like the 'Lighten' mode in photoshop?
I'd love to hear any suggestions. I'm just completely stuck on this. So close to achieveing what I want.
/Thanks
I'm quite bad at explaining so hopefully I'll get my question across.
Game without surfaces. What the game looks like without any surfaces.
Shadow1 A surface generated by a line-of-sight extention.
Shadow1 + Grass The game with the surface applied using draw_set_blend_mode_ext(bm_dest_color,bm_zero).
So far all good.
Now to the hopefully last step.
I want to achieve THIS with the help of either FOG1 or FOG2.
I basically want the 'fog' to only draw where it's black.
My best guess is to create a second surface which combines Shadow1 with either FOG1 or FOG2 and then draw that after the first surface. I've tried many different blend modes and combinations without result.
EDIT: I feel like drawing a second surface with FOG2 should do. But I must be using the blend modes wrong.
EDIT2: Using FOG2 above the first surface in Photoshop using the mode 'Lighten' achieves the right result. Is there a blend mode in GM that work just like the 'Lighten' mode in photoshop?
I'd love to hear any suggestions. I'm just completely stuck on this. So close to achieveing what I want.
/Thanks
Last edited by a moderator: