Particle opacity

I’m trying to get a good fog effect using a particle system. I have everything looking the way I want it except for the opacity of the particles.

I have looked through the particle animator and renderer and haven’t found anything that allows me to tweak the opacity level. I also looked at the default- particle material and the alpha blended premultiply shader, couldn’t find a variable to tweak it there either. I was reading a previous post that mentioned an opacity slider in the animator, but I don’t see anything like that in my engine (Unity 3.4). Could somebody please point me in the right direction to solve this problem? It would be GREATLY appreciated. Thanks!!

Wow okay, that's a tough one. My advice is just based of logic, I'm not massively skilled with animation. I think if its moving the whole dragon its likely to be on either the root bone or pelvis. I would also suggest it will be one that says Position. If you can edit look for Y axis changes on one of those bones and try adjusting it to see the outcome Sorry I can't be of much more help than that.

3 Answers

3

When you open Color over Lifetime in the Inspector of the Particle System, you can:

  • Click the little arrows below the gradient bar to set the color.
  • Click the little arrows above the gradient bar to set the opacity.

Post the full code again, and I can take a quick scan

There are 2 ways that I know of to control the alpha of a particle;

Material Shader

For the particle material use a Shader that allows you to define a tint color and set the alpha of the tint.

Particle Animator

In the Particle Animator component notice the Color Animation[0], Color Animation[1], etc. This allows you basically another tint color that it animates based on the lifetime of the particle. They start at 0 and smoothly blend between each step until 4. You can set the alpha of the particles here as well.

I didn’t really understood well how the particles animation works (component/effects/legacy particcles).
But I just found an other way to have opacity, in the particles view, in color over life, you can choose a color over life but also an opacity (like in photoshop when you use gradient, you select the upper arrow and can choose the opacity.
It’s better with a picture :

Hope it helps !

That was excellent! Even a couple of years later ;)