x


Trail renderer that fades out at the end?

I thought color might do this, but it doesn't seem to. I want the trail to gradually fade to nothing rather than abruptly end like it does now. Is this possible?

more ▼

asked May 25 '11 at 07:33 AM

Patyrn gravatar image

Patyrn
542 49 54 64

(comments are locked)
10|3000 characters needed characters left

2 answers: sort newest

You use the alpha (A) in the last and/or first color block to fade out the trail. Trail Renderer

Trail Colors You can cycle your trail through 5 different color/opacity combinations. Using colors could make a bright green plasma trail gradually dim down to a dull grey dissipation, or cycle through the other colors of the rainbow. If you don't want to change the color, it can be very effective to change only the opacity of each color to make your trail fade in and out at the head and/or tail.

Particle shaders works best together with the trail renderer.

more ▼

answered May 25 '11 at 09:13 AM

save gravatar image

save
8.2k 22 31 62

Yeah, that's a good suggestion, too. :P

May 25 '11 at 09:31 AM CHPedersen

And so is yours. :)

May 25 '11 at 09:34 AM save

Ah. My problem was using a transparent shader, but not a particle one. The built in trail renderer does indeed do exactly what I want.

May 25 '11 at 07:03 PM Patyrn
(comments are locked)
10|3000 characters needed characters left

Certainly. Others have once had the same problem, so they went and created an improved version of the trail renderer, that can fade over time. :)

It's on the wiki, take a look here:

http://www.unifycommunity.com/wiki/index.php?title=TimeBasedTrailRenderer

more ▼

answered May 25 '11 at 09:08 AM

CHPedersen gravatar image

CHPedersen
6k 13 22 61

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x58
x33

asked: May 25 '11 at 07:33 AM

Seen: 3105 times

Last Updated: May 25 '11 at 07:03 PM