Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Blend Mode -> sf::BlendSub  (Read 4700 times)

0 Members and 1 Guest are viewing this topic.

Orezar

  • Newbie
  • *
  • Posts: 38
    • View Profile
Blend Mode -> sf::BlendSub
« on: October 08, 2012, 11:00:24 am »
Hello,

I know there is still a new Thread about blend modes, but I want to ask for this Feature too,
so I made a new separate Thread for the reason why I want this feature (too).

Reason:

It would be nice if there is a way to make (easily) custom blend modes
without using Open GL (cause I have no experience in it :P).

I need one blend mode that substract the Source Pixel with the Destination Pixel
for a simple lighting system. This is my personal reason why I want this feature.

But I think generally that blend modes are a very useful tool on the graphical level, and
I'm sure that I need later a custom blend mode for other stuff (again)... And it seems like that
I'm not the only one that want this feature too, so why there is still no SFML class that allows
making custom blend modes, is there an important Reason? :)

Thanks in Advance for all answers!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Blend Mode -> sf::BlendSub
« Reply #1 on: October 08, 2012, 11:49:15 am »
Since a lot of people are asking for this feature, I'll create a task on the tracker to gather all the requests. And maybe one day........ :P
Laurent Gomila - SFML developer

Orezar

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Blend Mode -> sf::BlendSub
« Reply #2 on: October 08, 2012, 12:14:29 pm »
I hope this day comes fast... :P ;D

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: Blend Mode -> sf::BlendSub
« Reply #3 on: October 08, 2012, 05:31:01 pm »
Awesome! I'm really glad to hear this :) And I'm looking forward to that day too :D
But I think his question is actually asking for two things: One is the custom blend mode "function" that let's you specify the way the source and the destination colors are mixed. And the second thing is a subtract blend mode. This is a rather trivial thing. Could the subtract blend mode be added in the meantime? I mean you could remove it the second the custom blend mode option is added? I'd really love to see that.

Orezar

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Blend Mode -> sf::BlendSub
« Reply #4 on: October 08, 2012, 06:02:41 pm »
Awesome! I'm really glad to hear this :) And I'm looking forward to that day too :D
But I think his question is actually asking for two things: One is the custom blend mode "function" that let's you specify the way the source and the destination colors are mixed. And the second thing is a subtract blend mode. This is a rather trivial thing. Could the subtract blend mode be added in the meantime? I mean you could remove it the second the custom blend mode option is added? I'd really love to see that.

Yes, this would be really nice.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Blend Mode -> sf::BlendSub
« Reply #5 on: October 08, 2012, 08:23:00 pm »
Laurent Gomila - SFML developer

Orezar

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Blend Mode -> sf::BlendSub
« Reply #6 on: October 08, 2012, 09:13:33 pm »
If I have the permission to say something, I would say that it would be good if
you only add sf::BlendSub to the other blend modes that still exist and additionally
making the API more flexible for blend modes.

I think with sf::BlendAdd, sf::BlendSub, sf::BlendAlpha, sf::BlendMultiply and sf::BlendNone
the most use of blend modes covered and for the other people with special wishes
is a simple custom blend mode system enough.

So you would have the compromise. There is still a clearly manageable list of existing
blend modes that will cover the most use and at the same time there is a flexible system
for creating custom ones that cover all sort of use of blend modes.

Only wanted to say it, if you not already want to do it like I said. ;D
« Last Edit: October 08, 2012, 09:15:23 pm by Orezar »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Blend Mode -> sf::BlendSub
« Reply #7 on: October 08, 2012, 11:19:45 pm »
I don't think that I'll mix two different APIs just for setting a blending mode. One of them will be enough.
Laurent Gomila - SFML developer