Cesium v1.97 Release Notes

Release Date: 2022-09-01 // over 1 year ago
  • Major Announcements :loudspeaker:

    • CesiumJS has switched to a new architecture for loading glTF models and tilesets to enable:
    • Usage notes for the new glTF architecture:
      • Those using ModelExperimental.fromGltf() should now use Model.fromGltf().
      • The enableModelExperimental flag was removed, as tilesets and entities always use the new architecture.
      • The new implementation of Model uses the same public API as before, so no other changes are necessary.

    ๐Ÿ’ฅ Breaking Changes :mega:

    • ๐Ÿฑ glTF 1.0 assets are no longer fully supported. glTF 1.0 techniques are converted to PBR materials where possible, but more complex techniques will no longer function correctly. If custom GLSL shaders are needed, use CustomShader instead. #10648
    • The glTF 2.0 extension KHR_techniques_webgl and KHR_materials_common are also no longer fully supported. Materials are converted to PBR materials where possible.
    • ๐Ÿ‘Œ Support for rendering instanced models on the CPU has been removed.
    • ๐Ÿšš Model.gltf, Model.basePath, Model.pendingTextureLoads (properties), and Model.dequantizeInShader (constructor option) have been removed.
    • ๐Ÿšš ModelMesh and ModelMaterial have been removed.
    • new Model() is an internal constructor and must not be used directly. Use Model.fromGltf() instead. #10778
    โž• Additions :tada:
    • ๐Ÿฑ Model can now classify other assets with a given classificationType. #10623
    • ๐Ÿ‘ Model now supports back face culling for point clouds. #10703
    • ๐Ÿ”ง Export asset files such as CSS in package.json, allowing bundlers to import without additional configuration. #9212
    • ๐Ÿ“ฆ The sideEffects field in package.json is now specified, allowing more conservative bundlers like Webpack to enable tree shaking by default. #10714
    • ๐Ÿ‘ Model entities now support CustomShader. #10747
    ๐Ÿ›  Fixes :wrench:
    • Fixed bug with Viewer.flyTo where camera could go underground when target is an Entity with ModelGraphics with HeightReference.CLAMP_TO_GROUND or HeightReference.RELATIVE_TO_GROUND. #10631
    • ๐Ÿ›  Fixed issues running CesiumJS under Node.js when using ES modules. #10684
    • ๐Ÿ›  Fixed the incorrect lighting of instanced models. #10690
    • ๐Ÿ›  Fixed developer error with Camera.flyTo with an orientation and a Rectangle value for destination. #10704
    • ๐Ÿ›  Fixed rendering bug with points in .vctr format, where points wouldn't show until picked or styled. #10707
    • Fixed bounding volume calculations for glTF models with KHR_mesh_quantization and normalized positions. #10741