Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Emitter blendMode is additive when I want normal
Started by tap32 Apr 10 2019 05:00 AM

No replies to this topic
particle designer emitter
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

tap32

[GLOBAL: userInfoPane.html]
tap32
  • Contributor

  • 243 posts
  • Corona SDK

I'm designing some particle effects in Particle Designer and have the particles set to fade out as they age. However when running the effect in Corona the blend mode looks additive and the particles do not fade.

 

If have Blend Source set to GL_ONE and Blend Destination set to GL_ONE_MINUS_SRC_ALPHA. I have exported the file to JSON. In the JSON   "blendFuncDestination" : 771 and "blendFuncSource" : 1.

 

Is there something that might be causing the blending to look differently in Particle Designer than it does in Corona?

 

Here's the full JSON 

{
  "startColorAlpha" : 1,
  "startParticleSizeVariance" : 5,
  "startColorGreen" : 0.5723068,
  "rotatePerSecond" : 0,
  "radialAcceleration" : 0,
  "yCoordFlipped" : -1,
  "emitterType" : 1,
  "blendFuncSource" : 1,
  "finishColorVarianceAlpha" : 0,
  "rotationEnd" : 0,
  "startColorVarianceBlue" : 0,
  "rotatePerSecondVariance" : 90,
  "particleLifespan" : 1,
  "minRadius" : 151.0417,
  "configName" : "Focus",
  "tangentialAcceleration" : 0,
  "rotationStart" : 0,
  "startColorVarianceGreen" : 0,
  "speed" : 225,
  "minRadiusVariance" : 190.5083,
  "finishColorVarianceBlue" : 0,
  "finishColorBlue" : 1,
  "finishColorGreen" : 0.588163,
  "blendFuncDestination" : 771,
  "finishColorAlpha" : 0,
  "sourcePositionVariancex" : 0,
  "startParticleSize" : 0,
  "sourcePositionVariancey" : 0,
  "startColorRed" : 0.5723068,
  "finishColorVarianceRed" : 0,
  "absolutePosition" : false,
  "textureFileName" : "img/Focus.png",
  "startColorVarianceAlpha" : 0,
  "maxParticles" : 77,
  "finishColorVarianceGreen" : 0,
  "finishParticleSize" : 42.27586,
  "duration" : -1,
  "startColorVarianceRed" : 0,
  "finishColorRed" : 0,
  "gravityx" : 0,
  "maxRadiusVariance" : 0,
  "finishParticleSizeVariance" : 84.96552,
  "gravityy" : 0,
  "rotationEndVariance" : 0,
  "startColorBlue" : 0.5723068,
  "rotationStartVariance" : 0,
  "speedVariance" : 30,
  "radialAccelVariance" : 0,
  "tangentialAccelVariance" : 0,
  "particleLifespanVariance" : 0,
  "angleVariance" : -360,
  "angle" : -90,
  "maxRadius" : 171.0219
}



[topic_controls]
[/topic_controls]