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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
mcjohnalds45
Prole
Posts: 18
Joined: Sat Jun 02, 2012 12:08 pm

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

Post 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?
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

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

Post by Saegor »

i'm not a particle expert but i guess the bitmap of your particles is drawed in alpha and white so...
Current work : Isömap
User avatar
mcjohnalds45
Prole
Posts: 18
Joined: Sat Jun 02, 2012 12:08 pm

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

Post 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
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post 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.)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests