Why can't I see particles on a white background?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- mcjohnalds45
- Prole
- Posts: 18
- Joined: Sat Jun 02, 2012 12:08 pm
Why can't I see particles on a white background?
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?
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
- mcjohnalds45
- Prole
- Posts: 18
- Joined: Sat Jun 02, 2012 12:08 pm
Re: Why can't I see particles on a white background?
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.
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
- 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?
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.)
Who is online
Users browsing this forum: Bing [Bot] and 4 guests