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:
- User-defined GLSL shaders via [
CustomShader
](Documentation/CustomShaderGuide/README.md) - Support for 3D Tiles Next metadata extensions:
EXT_structural_metadata
,EXT_mesh_features
andEXT_instance_features
- Support for
EXT_mesh_gpu_instancing
- Support for
EXT_meshopt_compression
- Texture caching across different tiles
- Numerous bug fixes
- User-defined GLSL shaders via [
- Usage notes for the new glTF architecture:
- Those using
ModelExperimental.fromGltf()
should now useModel.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.
- Those using
๐ฅ 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
andKHR_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), andModel.dequantizeInShader
(constructor option) have been removed. - ๐
ModelMesh
andModelMaterial
have been removed. new Model()
is an internal constructor and must not be used directly. UseModel.fromGltf()
instead. #10778
โ Additions :tada:
- ๐ฑ
Model
can now classify other assets with a givenclassificationType
. #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 inpackage.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 anEntity
withModelGraphics
withHeightReference.CLAMP_TO_GROUND
orHeightReference.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 anorientation
and aRectangle
value fordestination
. #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
- CesiumJS has switched to a new architecture for loading glTF models and tilesets to enable: