Cesium v1.47 Release Notes

Release Date: 2018-07-02 // almost 6 years ago
  • Highlights :sparkler:
    • ➕ Added support for polylines on terrain #6689 #6615
    • ➕ Added heightReference and extrudedHeightReference properties to CorridorGraphics, EllipseGraphics, PolygonGraphics and RectangleGraphics. #6717
    • PostProcessStage has a selected property which is an array of primitives used for selectively applying a post-process stage. #6476
    💥 Breaking Changes :mega:
    • glTF 2.0 models corrected to face +Z forwards per specification. Internally Cesium uses +X as forward, so a new +Z to +X rotation was added for 2.0 models only. To fix models that are oriented incorrectly after this change:
      • If the model faces +X forwards update the glTF to face +Z forwards. This can be done by loading the glTF in a model editor and applying a 90 degree clockwise rotation about the up-axis. Alternatively, add a new root node to the glTF node hierarchy whose matrix is [0,0,1,0,0,1,0,0,-1,0,0,0,0,0,0,1].
      • Apply a -90 degree rotation to the model's heading. This can be done by setting the model's orientation using the Entity API or from within CZML. See #6738 for more details.
    • ⚡️ Dropped support for directory URLs when loading tilesets to match the updated 3D Tiles spec. #6502
    • KML and GeoJSON now use PolylineGraphics instead of CorridorGraphics for polylines on terrain. #6706
    ➕ Additions :tada:
    • ➕ Added support for polylines on terrain #6689 #6615
      • Use the clampToGround option for PolylineGraphics (polyline entities).
      • Requires depth texture support (WEBGL_depth_texture or WEBKIT_WEBGL_depth_texture), otherwise clampToGround will be ignored. Use Entity.supportsPolylinesOnTerrain to check for support.
      • Added GroundPolylinePrimitive and GroundPolylineGeometry.
    • PostProcessStage has a selected property which is an array of primitives used for selectively applying a post-process stage. #6476
      • The PostProcessStageLibrary.createBlackAndWhiteStage and PostProcessStageLibrary.createSilhouetteStage have per-feature support.
    • ➕ Added CZML support for zIndex with corridor, ellipse, polygon, polyline and rectangle. #6708
    • ➕ Added CZML clampToGround option for polyline. #6706
    • ➕ Added support for RTC_CENTER property in batched 3D model tilesets to conform to the updated 3D Tiles spec. #6488
    • ➕ Added heightReference and extrudedHeightReference properties to CorridorGraphics, EllipseGraphics, PolygonGraphics and RectangleGraphics. #6717
      • This can be used in conjunction with the height and/or extrudedHeight properties to clamp the geometry to terrain or set the height relative to terrain.
      • Note, this will not make the geometry conform to terrain. Extruded geoemtry that is clamped to the ground will have a flat top will sinks into the terrain at the base.
    🛠 Fixes :wrench:
    • 🛠 Fixed a bug that caused Cesium to be unable to load local resources in Electron. #6726
    • 🛠 Fixed a bug causing crashes with custom vertex attributes on Geometry crossing the IDL. Attributes will be barycentrically interpolated. #6644
    • 🛠 Fixed a bug causing Point Cloud tiles with unsigned int batch-ids to not load. #6666
    • 🛠 Fixed a bug with Draco encoded i3dm tiles, and loading two Draco models with the same url. #6668
    • 🛠 Fixed a bug caused by creating a polygon with positions at the same longitude/latitude position but different heights #6731
    • 🛠 Fixed terrain clipping when the camera was close to flat terrain and was using logarithmic depth. #6701
    • 🛠 Fixed KML bug that constantly requested the same image if it failed to load. #6710
    • 👌 Improved billboard and label rendering so they no longer sink into terrain when clamped to ground. #6621
    • 🛠 Fixed an issue where KMLs containing a colorMode of random could return the exact same color on successive calls to Color.fromRandom().
    • 📜 Iso8601.MAXIMUM_VALUE now formats to a string which can be parsed by fromIso8601.
    • 🛠 Fixed material support when using an image that is already loaded #6729