Planes Cutting Through One Another

Hello,

I instantiating a load of disc shapes when my projectile collides with something which gives a ripple explosion effect. The discs are models that I made in Maya very quickly. The discs have a transparent material applied to it. When these discs are initiated, iTween is used to fade out and scale up the model in a split second. The discs are all initiated on the projectiles transform, and all have the same Y transform (top down game)

The issue I’m having is that when a few projectiles collide with one another, on occasion the discs flicker, or affect other planes below the discs. For example, I have another transparent image quad that simulates a shadow for a prop, if a projectile where to initiate it discs above this, the shadow quad starts to flicker in certain places as the disc grows in scale (even though they might be on different Y axises).

I don’t think it has anything to do with the Z axis, I’ve tried all sorts of shaders:

  • Transparent > Diffuse
  • Toon > Basic Trans
  • Unlit > Transparent
  • Particles

In fact, let me try with a normal diffuse (no transparent) and see what happens… Yeah diffuse looks fine - although obversely the alpha/fade doesn’t work.

Can someone give me advise on why this is happening?

I think your planes are z-fighting, you might want to look at this tutorial which sheds some light on the subject: http://www.youtube.com/watch?v=f7zDKlsyu6s

1 Answer

1

It may be a collision issue. I would recommend reading the following documentation.

Best of luck!