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

Author Topic: Issue with overlay blending modes  (Read 2860 times)

0 Members and 1 Guest are viewing this topic.

oomek

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • Email
Issue with overlay blending modes
« on: April 22, 2017, 11:45:12 am »
I'm sorry for digging out that old thread but this is the only thread I could find which mentioned an overlay blending mode in SFML. I use:

Code: [Select]
BlendMode(sf::BlendMode::DstColor, sf::BlendMode::SrcColor).
This works great, but the problem I'm having is that I have no way of controling the opacity of the effect, I've tried also:

Code: [Select]
BlendMode(sf::BlendMode::DstColor, sf::BlendMode::SrcColor, sf::BlendMode::Add, sf::BlendMode::SrcAlpha, sf::BlendMode::Zero, sf::BlendMode::Add);
But this seem not to work either. Is there any other way I could try to control the opacity in that mode?
« Last Edit: April 22, 2017, 11:46:50 am by oomek »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Issue with overlay blending modes
« Reply #1 on: April 22, 2017, 07:44:13 pm »
I have split your post into its own topic, as it had nothing to do with the original thread.
Please don't post in topics that are 8 years old and don't have anything to do with your post, except for mentioning some detail. ;)

So, how about you explain first, what your final goal is. Maybe someone will know a better solution or maybe a shader would work better.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

ZeroZ30o

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Issue with overlay blending modes
« Reply #2 on: April 27, 2017, 02:09:19 pm »
« Last Edit: April 27, 2017, 02:15:49 pm by ZeroZ30o »