Blend mode not being added

General discussion on Particle Designer

Blend mode not being added

Postby crooksy88 » Wed Oct 20, 2010 4:06 pm

Hi,

After playing around (for hours! 8-)) with different particle systems I exported my plist for cocos2d and implemented it into my app. However, the nice Additive blend mode that I used in the particle designer doesn't seem to display when I use the plist in my iPhone app?

Looking in my plist I have
blendFuncDestination:1
blendFuncSource:770

I've tried to manually set the blendFunc property of the CCParticleSystem but this also has no effect.

CCParticleSystem* system;
// uses a plist with the texture already embedded
system = [CCPointParticleSystem particleWithFile:@"Intro2sec.plist"];
system.autoRemoveOnFinish=YES;
system.blendAdditive=YES;
system.blendFunc=(ccBlendFunc){GL_SRC_ALPHA, GL_ONE};


Would anyone know why this might be happening.

I'm using SDK 3.2.4 and baseSDK and development target iOS4.1
iPhone 3G as the development device.

Thanks,

Mark
crooksy88
 
Posts: 2
Joined: Wed Oct 20, 2010 3:54 pm

Re: Blend mode not being added

Postby crooksy88 » Thu Oct 21, 2010 7:38 am

Well it seems that there was an issue with this particular particle system? Not sure what it was but I tried using a different style for the system and it blended fine.
crooksy88
 
Posts: 2
Joined: Wed Oct 20, 2010 3:54 pm

Re: Blend mode not being added

Postby mike » Mon Oct 25, 2010 7:48 am

That is odd. If you every spot a set of actions that causes blending not to work let me know. I can then try and track down the cause.

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