I have been using the sandcastle example and have a entity which moves along a path and draws the path with a new material as it goes.
What I would like to achieve is the same thing but with a short change in colour just behind the entity as it moves. Ideally, this short change in color would fade out.
I thought maybe to add 2 entities, one which has a leadTime of 0 and draws the path. The other with my model which has a leadTime of 0 and a trailTime of say 10. This procedures a different colour trail just behind the entity as it moves but does not achieve the fade effect.
I noticed a Fade material but not sure if this is correct and/or how to use it?
I don’t think this is (currently) achievable with “path”.
I simulate multicolor path with PolylineGeometry and PolylineColorAppearance (haven’t checked Entity API).
Unfortunately, this is something the Entity API doesn’t support yet. Path visualization in general is due for a large overhaul, but it’s not on the short term roadmap.
It would be especially great to FADE the alpha, so that new part of the path is a vibrant, opaque color and the history of the path is muted by translucency of the same color.
I don’t think this is something that has been implemented in Cesium yet. You would have to add a custom material to handle the fade. This does take a little bit of graphics know-how to do, but here are the steps you would need to take. (I’ll use the polyline glow material as an example)
Since this is something other people have asked for, I’ll write up an issue in Cesium so we know it’s a requested feature. If you do implement it, let us know! We would gladly take the contribution.