Author Topic: [ANNOUNCEMENT] Blending modes will come to Attract Mode  (Read 659 times)

Oomek

  • Sr. Member
  • ****
  • Posts: 138
    • View Profile
[ANNOUNCEMENT] Blending modes will come to Attract Mode
« on: April 20, 2017, 06:07:03 AM »
I'm planning to add belnding modes to Attract Mode (overlay, multiply, add, subtract)
Are you happy?
« Last Edit: April 21, 2017, 06:08:20 AM by Oomek »

jedione

  • Sr. Member
  • ****
  • Posts: 363
  • punktoe
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #1 on: April 20, 2017, 06:07:20 PM »
yes....i am
help a friend....

Oomek

  • Sr. Member
  • ****
  • Posts: 138
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #2 on: April 21, 2017, 06:07:10 AM »

mahuti

  • Administrator
  • Full Member
  • *****
  • Posts: 92
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #3 on: April 21, 2017, 07:52:56 AM »
I can think of a lot of uses for this.

Oomek

  • Sr. Member
  • ****
  • Posts: 138
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #4 on: April 22, 2017, 03:40:28 AM »
It appears that for overlay mode I won't be able to make the alpha blending working. It's due to how glsl's output merger belnding states work. I can work around this by making blending modes as a shader, but I wanted to make them native and accessible by setting for example image.blending("overlay"). To make it as a shader it would require to render all the theme objects on the master surface and then pass that surface to the shader to be used as a back buffer.

The good side of this is that I'm not limited to just 4 blending modes. I could do all the ones that Photoshop provides and many more.

Tell me what do you think.

Oomek

  • Sr. Member
  • ****
  • Posts: 138
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #5 on: April 29, 2017, 10:00:12 AM »
I chose the shade route

usage is as simple as:

Code: [Select]
local bl = Blender( fe.layout.width, fe.layout.height )

local image1 = bl.add_image( "image1.png", 100, 100, BlendMode.Add )
local image2 = bl.add_image( "image2.png", 200, 200, BlendMode.Overlay )

All the image properties and functions are inherited, so you only substitute fe. with bl. and specify the blending mode and that's it

WIP video
https://youtu.be/JrvfiUfZ_Hw
« Last Edit: April 29, 2017, 10:02:34 AM by Oomek »

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 436
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #6 on: May 23, 2017, 07:26:57 PM »
this is awesome, thank you!

mahuti

  • Administrator
  • Full Member
  • *****
  • Posts: 92
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #7 on: June 06, 2017, 11:51:46 AM »
If this were available for download I'd be testing it on a new layout I have. There are some shadowing and highlights that might be nice to use these on instead of cut PNGs.

jedione

  • Sr. Member
  • ****
  • Posts: 363
  • punktoe
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #8 on: November 04, 2017, 08:02:57 AM »
im guessing he has left the building?

 :'(
help a friend....

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 436
    • View Profile
Re: [ANNOUNCEMENT] Blending modes will come to Attract Mode
« Reply #9 on: November 04, 2017, 10:55:30 PM »
I'm dying for this one as well... :P