object fade out in distance

Software: Away3D 4.x

/\/\/\, Newbie
Posted: 06 March 2013 10:48 AM   Total Posts: 15

Hi, i got a project with LineSegments.
I want these white lines to fade out to black in the distance.
What is the best way to achieve that?
Would you put a material on that line with a gradient or is there an “automatic” way to achieve it via the renderer or something?

thx!

EDIT:
ok, i think it´s not possible to set a material to a LineSegment. I saw that there is the option of an endColor, which is cool.
But REALLY cool would be the option of an endAlpha.

   

Babylon, Jr. Member
Posted: 06 March 2013 05:00 PM   Total Posts: 39   [ # 1 ]

Greetings,
Perhaps you could create a light with an ambient color of your choice. You could set the minimum to say, 600, and max to like, 60,000. This way the light will shine on the line?

Or.. if line’s can’t have material can they not have lights either? Not sure.

Good luck

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X