Page 1 of 1

Why can't I see particles on a white background?

Posted: Sat Dec 29, 2012 10:27 am
by mcjohnalds45
The closer the background is to white the less visible the particles are, can someone explain what's going on and how to go around it?

Re: Why can't I see particles on a white background?

Posted: Sat Dec 29, 2012 11:26 am
by Saegor
i'm not a particle expert but i guess the bitmap of your particles is drawed in alpha and white so...

Re: Why can't I see particles on a white background?

Posted: Mon Dec 31, 2012 1:50 am
by mcjohnalds45
I don't really know how blending and particles and other what-not works so I've tried messing with setColor, setBlendMode, setColorMode and the color of the particle sprite image used, nothing works. :(

Right now I've just got the following, works on a black background, not on a white.

Code: Select all

function love.draw()
    love.graphics.setColorMode("modulate")
    love.graphics.setBlendMode("additive")
    love.graphics.draw(particle, 0, 0)
end

Re: Why can't I see particles on a white background?

Posted: Mon Dec 31, 2012 4:09 am
by slime
Additive blend mode means the colors of the things you draw will get added to the existing colors on the screen. If the screen is white, each component of the color of every pixel is already the largest it can be, so adding to that color won't do anything. You probably want the alpha blend mode (which is the default.)