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

Author Topic: Sf::RenderTexture issue  (Read 1185 times)

0 Members and 1 Guest are viewing this topic.

DrAdventure

  • Newbie
  • *
  • Posts: 8
    • View Profile
Sf::RenderTexture issue
« on: September 11, 2018, 05:12:31 am »
I am currently working on a particle system. And of course I am using  Additive blending to achieve a nice glowing particle effects, but the issue is the background colors is taken into the the blending equation which make the particles’ color entirely different. Also when I tried to draw the particles on a RenderTexture then on top of the window a new issue popped-out , a strange black haze surrounds the edge of the particles which makes them seems like a low-quality image ... Any suggestions?
« Last Edit: December 09, 2023, 09:53:34 pm by eXpl0it3r »

Hapax

  • Hero Member
  • *****
  • Posts: 3357
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Sf::RenderTexture issue
« Reply #1 on: September 12, 2018, 07:57:44 pm »
Clear the render texture with a transparent colour:
renderTexture.clear(sf::Color::Transparent);
« Last Edit: December 09, 2023, 09:53:39 pm by eXpl0it3r »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*