Black particles?

General discussion on Particle Designer

Black particles?

Postby NickFalk » Mon May 24, 2010 11:50 am

Hi there. Just purchased the app a couple of days ago and have been enjoying myself going particle-crazy ever since. I am now however thinking to actually use it in my next game but has run into a problem: How can I create black particles? If I use the colour-sliders it seems to me that 0,0,0 will make the render transparent rather than black. Likewise, if I use a black, rather than white image the app uses this as the alpha and I'm left with what's essentially an invisible particle(?)
NickFalk
 
Posts: 2
Joined: Mon May 24, 2010 11:45 am

Re: Black particles?

Postby mike » Mon May 24, 2010 2:05 pm

Hi Nick. It sounds like the wrong blend function is being used. Try using a blend source of GL_ONE and a blend destination of GL_ONE_MINUS_SOURCE_ALPHA.

I just gave that a try and got black particles.

Let me know how that goes.

Mike
mike
 
Posts: 670
Joined: Fri Aug 21, 2009 2:10 pm

Re: Black particles?

Postby NickFalk » Mon May 24, 2010 2:29 pm

Thanks! Worked fine, but in the process I have discovered something that seems like a bug(?)

When creating the particle in the app it works the way I planned it, but when importing it to XCode the sprite-image used for the particle is turned upside down! (Haven't tried the device yet, only the simulator). The obvious workaround has simply been to flip the image before saving the plist, but it still baffles me.
NickFalk
 
Posts: 2
Joined: Mon May 24, 2010 11:45 am

Re: Black particles?

Postby mike » Mon May 24, 2010 9:56 pm

Oohh that's an odd one. I'll have to check that out.

Thanks

Mike
mike
 
Posts: 670
Joined: Fri Aug 21, 2009 2:10 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron