Blendmode in emitter object

Hi,

So I tried to create a new particle effect using emitter object. The problem is no matter what I designed the blendmode of my particle seems to be “add” all the time and there’s no way to change this both in Particle Designer or editing my json manually.

I do find these paramters that I don’t understand :
“blendFuncDestination”: 1,

“blendFuncSource”: 770,

What do these parameters do?
what values should I put if I just want my particle to have a normal blend mode?

Thanks 

 

so… no one understand what these parameters do? not even the guys from Corona itself?
:huh:

Hi @yanuar,

There are many, many factors and variables involved in this, so it’s no “easy answer.”. Have you looked up and explored articles on OpenGL blending methods? That would be a good starting point.

Brent

Hi @brent,
Instead of giving something useful regarding the poorly documented emitter object you just said what it’s basically : “It’s too complicated for you, you won’t understand” answer.

The fact is right now, the particles in emitter object will always have what seems “screen”/“add” blendmode and there’s no way to change that. The only things that might change it is those parameters :blendFunctionSource and blendFuncDestination but you won’t tell me anything about them instead asking me to go read OpenGL blending mode.

Which I’m not sure how that’s gonna help since emitter object only have 4 public methods none of them allowing us to hack the rendering of the particle.

Good thing Corona is now free 

 

@yanuar,

I’ve given you a starting point. You need to do some research yourself, especially on a topic this broad.

Brent

Seriously… either you just mocking me or either you don’t understand what I ask. How does changing a blendmode is a broad topic? especially since i’m using a 3rd party SDK like Corona here whether my options are either the API supports it or not. I have no intention of making my own rendering method/pipeline thats why I use Corona lol

I’m only asking is it possible? what do these parameters do since there are no docs on them?
You keep answering… it’s too broad go research somewhere else without actually giving a single useful answer on the subject I asked.

Never fucking mind…

 

 

Does this help? You can see it’s a very advanced topic… hence why you need to actually do some research on your own.

https://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml

https://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquation.xml

See… you could’ve told me that those parameters value in the emitter object  simply mean GL_ONE, GL_ZERO, GL_SRC_ALPHA, GL_ONE_MINUS_DST_ALPHA, etc and it’ll be more useful than telling people go research without ever telling what do these parameters mean.

To those who are reading this thread, here’s a simple cheatsheet : http://i.stack.imgur.com/i2IAC.jpg 

 

so… no one understand what these parameters do? not even the guys from Corona itself?
:huh:

Hi @yanuar,

There are many, many factors and variables involved in this, so it’s no “easy answer.”. Have you looked up and explored articles on OpenGL blending methods? That would be a good starting point.

Brent

Hi @brent,
Instead of giving something useful regarding the poorly documented emitter object you just said what it’s basically : “It’s too complicated for you, you won’t understand” answer.

The fact is right now, the particles in emitter object will always have what seems “screen”/“add” blendmode and there’s no way to change that. The only things that might change it is those parameters :blendFunctionSource and blendFuncDestination but you won’t tell me anything about them instead asking me to go read OpenGL blending mode.

Which I’m not sure how that’s gonna help since emitter object only have 4 public methods none of them allowing us to hack the rendering of the particle.

Good thing Corona is now free 

 

@yanuar,

I’ve given you a starting point. You need to do some research yourself, especially on a topic this broad.

Brent

Seriously… either you just mocking me or either you don’t understand what I ask. How does changing a blendmode is a broad topic? especially since i’m using a 3rd party SDK like Corona here whether my options are either the API supports it or not. I have no intention of making my own rendering method/pipeline thats why I use Corona lol

I’m only asking is it possible? what do these parameters do since there are no docs on them?
You keep answering… it’s too broad go research somewhere else without actually giving a single useful answer on the subject I asked.

Never fucking mind…

 

 

Does this help? You can see it’s a very advanced topic… hence why you need to actually do some research on your own.

https://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml

https://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquation.xml

See… you could’ve told me that those parameters value in the emitter object  simply mean GL_ONE, GL_ZERO, GL_SRC_ALPHA, GL_ONE_MINUS_DST_ALPHA, etc and it’ll be more useful than telling people go research without ever telling what do these parameters mean.

To those who are reading this thread, here’s a simple cheatsheet : http://i.stack.imgur.com/i2IAC.jpg