How can this effect be achieved?


1 Like


I’m assuming you got the coords (array of Cartesian3), so this is simply a wall entity with a material of light to darker blue in the vertical, with opacity at, hmm, 0.5 or so? Make the wall have height offset extrusion of whatever that is, 500 meters or so?Then a polyline at the top coords for emphasize. Not sure what the lines inside the wall is, if it’s something important or just fancy visual noise?

So, start with something like the below, and pad it out;

viewer.entities.add ({
   name: 'bounding : wall',
   wall: {
      positions: this.coords,
      outline: true,
      outlineWidth: 3,
      outlineColor: Cesium.Color.ORANGE.withAlpha(0.7),
      material: Cesium.Color.ORANGE.withAlpha(0.3)

I would start with perhaps defining a stripe of 1 with your to and from colors, and see if you can fit that into the wall, and simply play with opacity. Check out this Sandcastle for a live demo on that;

If that fails, you can always create an image that is the same height as the wall (but small width) with your from and to colors and fill the wall with that. For much more on materials and Fabrics in case you need to roll your own;

Let us know how you go, and the easiest is to place your experiment in a Sandcastle and link it here, then we can much easier help you out with tips and tweaks.




Thank u very much! Alex :grinning_face_with_smiling_eyes: