I have a fire particle emitter in my project and I have it following a football. My goal is to make the football look like it is on fire but the problem is when I add it to the screen it can only be in front of the football or behind it. I want to be able to add it to the screen and make it transparent so that the football will still show through to a certain point. Does anyone now how I would go about doing this?
I would go with this method:
- draw the ball object,
- then draw the particles over it with alpha blending enabled
- redraw the ball in exact same position but this time use lower opacity for the whole sprite (maybe something around 40%)
This way you'll both see the ball everywhere even if no particles are drawn at that pixel(caused by the back ball picture), and you can always see the ball.
And for blending method just use the normal function implemented by default.