Particle density/transparency in the viewport

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Pancho
Posts: 659
Joined: 19 Sep 2010, 09:28

Particle density/transparency in the viewport

Post by Pancho » 16 Jun 2014, 17:28

Can I change the transparency of the particles in the viewport? Actually I would like them to fade out over time. While this is possible for sure with the actual shader, I would like to preview the behavior in the viewport, so the particle color gets more transparent over time. Possible?

Cheers
Thomas

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 07:44

Re: Particle density/transparency in the viewport

Post by Bullit » 17 Jun 2014, 02:48

For a speedy trick get particle color>multiply color by scalar>set particle color

Put alpha on and factor to 0.9 or more.

User avatar
nixx
Posts: 42
Joined: 09 Jun 2009, 18:25

Re: Particle density/transparency in the viewport

Post by nixx » 17 Jun 2014, 02:58

Or maybe even better,

separate the color channels using an rgba to color node, operate only on the alpha, then combine them back with a color to rgba. That way you won't mess with the actual color of the particles (if you 're using that in the shader).

You can save it as a quick compound named "modify particle alpha" or something, it often comes in handy.

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 07:44

Re: Particle density/transparency in the viewport

Post by Bullit » 17 Jun 2014, 10:27

Separate with color to rgba isn't it?

It works but you need to define a timer or frame counter since all particles fade at same time.

Pancho
Posts: 659
Joined: 19 Sep 2010, 09:28

Re: Particle density/transparency in the viewport

Post by Pancho » 17 Jun 2014, 11:43

Thanks!!! Works like charme!

User avatar
nixx
Posts: 42
Joined: 09 Jun 2009, 18:25

Re: Particle density/transparency in the viewport

Post by nixx » 17 Jun 2014, 15:42

Bullit wrote:Separate with color to rgba isn't it?
Yeah, I got the nodes backwards, it was the middle of the night :)
It works but you need to define a timer or frame counter since all particles fade at same time.
You could use a per-particle attribute, like age for example.
I 'm child, and man, and child again; the boy never gets older.

my Vimeo

Pancho
Posts: 659
Joined: 19 Sep 2010, 09:28

Re: Particle density/transparency in the viewport

Post by Pancho » 17 Jun 2014, 16:03

That's what I did. Per particle.

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 07:44

Re: Particle density/transparency in the viewport

Post by Bullit » 17 Jun 2014, 16:28

Yep forgot about that.

Edit: Pancho with my option you don't need that.