Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / 2D Particles Shader

Author
Message
eveready
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 27th Oct 2017 05:10
Hi, all!

I am looking to use an additive shader on the particles in a 2D particle emitter. Is this possible?

I found this as an option in the PAX particle editor, and I see the shader file included there, but I'm not seeing any way to set this shader on a particle emitter in code. Maybe this is only available with 3D particles?

Apologies if this info is available elsewhere.

Thanks!
eveready
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 27th Oct 2017 05:17 Edited at: 27th Oct 2017 14:04
[repost deleted]
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 27th Oct 2017 09:24
eveready
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 27th Oct 2017 14:06
That looks like it! Thanks!
eveready
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 27th Oct 2017 21:04
Unfortunately using SetParticlesTransparency to set additive mode appears to stop honoring any transparency in the image. My particles now all have solid white square backgrounds.
eveready
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 27th Oct 2017 22:57
I just got a hint from another thread by baxslash that using this additive option requires the particle image to have a black background. I’ll be trying that later tonight!
eveready
9
Years of Service
User Offline
Joined: 20th Jul 2015
Location:
Posted: 30th Oct 2017 03:29
Black background did the trick!

Now to figure out how to start particles at a random rotation ...

Login to post a reply

Server time is: 2024-11-24 08:46:45
Your offset time is: 2024-11-24 08:46:45