Transparency issues with particles

Hi all,

I’m aware this issue has sprung up a few times before on the forums, as spoken of here:

And the solution proposed is to do this:

       partSys.loadConfig("./samples/particles/smokering.ptf")
       partSys.start(parent = render, renderParent = render)
       partSys.setDepthWrite(False)
       partSys.setPos(sendPos)
       partSys.setTransparency(TransparencyAttrib.MAlpha)

However, even when setting the depth-write to false, this issue still persists:

As can be seen from the image above, some parts of the particles have outlines around them that don’t render anything, this is true when I move the camera around and view the particle system from a certain angle. This persists even when setting the depth write to false and when putting it in the “fixed” bin: partSys.setBin("fixed", 0).

How can this issue be solved?

Thanks in advance.

Well, this seems to have done the trick:

       particleRenderNode = render.attachNewNode("particleNode")
       partSys.start(parent = render, renderParent = particleRenderNode)
       particleRenderNode.setDepthWrite(False)
       particleRenderNode.setBin("fixed", 0)

I needed to create a new NodePath and then set it as the render parent of the ParticleEffect object, then set the depth write to false to 0 on the newly created NodePath as well as putting it in the “fixed” bin, just incase anyone else ever wonders how to do this correctly.