You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -300,7 +300,7 @@ This is an npm-only release to fix a dependency issue published in 1.118
300
300
301
301
##### Breaking Changes :mega:
302
302
303
-
- By default, instances of `Cesium3DTileset` will no longer default to enable collisions for camera collision or for clamping entities. [#11829](https://github.com/CesiumGS/cesium/pull/11829)
303
+
- By default, instances of `Cesium3DTileset` will no longer default to enable collisions for camera collision or for clamping entities. [#11829](https://github.com/CesiumGS/cesium/pull/11829)
304
304
- This behavior can be enabled by setting `Cesium3DTileset.enableCollision` to true.
305
305
306
306
##### Additions :tada:
@@ -605,6 +605,7 @@ try {
605
605
- `Cesium3DTileset` constructor parameter `options.url`, `Cesium3DTileset.ready`, and `Cesium3DTileset.readyPromise` have been removed. Use `Cesium3DTileset.fromUrl` instead.
606
606
- `createOsmBuildings` was removed. Use `createOsmBuildingsAsync` instead.
607
607
- `Model.fromGltf`, `Model.readyPromise`, and `Model.texturesLoadedPromise` have been removed. Use `Model.fromGltfAsync`, `Model.readyEvent`, `Model.errorEvent`, and `Model.texturesReadyEvent` instead. For example:
608
+
608
609
```js
609
610
try {
610
611
const model = await Cesium.Model.fromGltfAsync({
@@ -618,6 +619,7 @@ try {
618
619
console.log(`Failed to load model. ${error}`);
619
620
}
620
621
```
622
+
621
623
- `I3SDataProvider` construction parameter `options.url`, `I3SDataProvider.ready`, and `I3SDataProvider.readyPromise` have been removed. Use `I3SDataProvider.fromUrl` instead.
622
624
- `TimeDynamicPointCloud.readyPromise` was removed. Use `TimeDynamicPointCloud.frameFailed` to track any errors.
623
625
- `VoxelProvider.ready` and `VoxelProvider.readyPromise` have been removed.
@@ -789,6 +791,7 @@ try {
789
791
- `Cesium3DTileset` constructor parameter `options.url`, `Cesium3DTileset.ready`, and `Cesium3DTileset.readyPromise` were deprecated in CesiumJS 1.104. They will be removed in 1.107. Use `Cesium3DTileset.fromUrl` instead.
790
792
- `createOsmBuildings` was deprecated in CesiumJS 1.104. It will be removed in 1.107. Use `createOsmBuildingsAsync` instead.
791
793
- `Model.fromGltf`, `Model.readyPromise`, and `Model.texturesLoadedPromise` were deprecated in CesiumJS 1.104. They will be removed in 1.107. Use `Model.fromGltfAsync`, `Model.readyEvent`, `Model.errorEvent`, and `Model.texturesReadyEvent` instead. For example:
794
+
792
795
```js
793
796
try {
794
797
const model = await Cesium.Model.fromGltfAsync({
@@ -802,6 +805,7 @@ try {
802
805
console.log(`Failed to load model. ${error}`);
803
806
}
804
807
```
808
+
805
809
- `I3SDataProvider` construction parameter `options.url`, `I3SDataProvider.ready`, and `I3SDataProvider.readyPromise` were deprecated in CesiumJS 1.104. They will be removed in 1.107. Use `I3SDataProvider.fromUrl` instead.
806
810
- `TimeDynamicPointCloud.readyPromise` was deprecated in CesiumJS 1.104. It will be removed in 1.107. Use `TimeDynamicPointCloud.frameFailed` to track any errors.
807
811
- `VoxelProvider.ready` and `VoxelProvider.readyPromise` were deprecated in CesiumJS 1.104. They will be removed in 1.107.
@@ -851,9 +855,11 @@ try {
851
855
#### Major Announcements :loudspeaker:
852
856
853
857
- CesiumJS now defaults to using a WebGL2 context for rendering. WebGL2 is widely supported on all platforms and this results in better feature support across devices, especially mobile.
858
+
854
859
- WebGL1 is supported. If WebGL2 is not available, CesiumJS will automatically fall back to WebGL1.
855
860
- In order to work in a WebGL2 context, any custom materials, custom primitives or custom shaders will need to be upgraded to use GLSL 300.
856
861
- Otherwise to request a WebGL 1 context, set `requestWebgl1` to `true` when providing `ContextOptions` as shown below:
862
+
857
863
```js
858
864
const viewer = new Viewer("cesiumContainer", {
859
865
contextOptions: {
@@ -880,9 +886,11 @@ try {
880
886
#### Major Announcements :loudspeaker:
881
887
882
888
- Starting with version 1.102, CesiumJS will default to using a WebGL2 context for rendering. WebGL2 is widely supported on all platforms and this change will result in better feature support across devices, especially mobile.
889
+
883
890
- WebGL1 will still be supported. If WebGL2 is not available, CesiumJS will automatically fall back to WebGL1.
884
891
- In order to work in a WebGL2 context, any custom materials, custom primitive or custom shaders will need to be upgraded to use GLSL 300.
885
892
- Otherwise to request a WebGL 1 context, set `requestWebgl1` to `true` when providing `ContextOptions` as shown below:
893
+
886
894
```js
887
895
const viewer = new Viewer("cesiumContainer", {
888
896
contextOptions: {
@@ -2259,12 +2267,15 @@ _This is an npm-only release to fix a publishing issue_.
2259
2267
##### Breaking Changes :mega:
2260
2268
2261
2269
- Clipping planes on tilesets now use the root tile's transform, or the root tile's bounding sphere if a transform is not defined. [#7034](https://github.com/CesiumGS/cesium/pull/7034)
2270
+
2262
2271
- This is to make clipping planes' coordinates always relative to the object they're attached to. So if you were positioning the clipping planes as in the example below, this is no longer necessary:
- This also fixes several issues with clipping planes not using the correct transform for tilesets with children.
2269
2280
2270
2281
##### Additions :tada:
@@ -2501,6 +2512,7 @@ _This is an npm-only release to fix a publishing issue_.
2501
2512
- `BingMapsImageryProvider` is no longer the default base imagery layer. (Bing imagery itself is still the default, however it is provided through Cesium ion)
2502
2513
- `BingMapsGeocoderService` is no longer the default geocoding service.
2503
2514
- If you wish to continue to use your own Bing API key for imagery and geocoding, you can go back to the old default behavior by constructing the Viewer as follows:
2515
+
2504
2516
```javascript
2505
2517
Cesium.BingMapsApi.defaultKey = "yourBingKey";
2506
2518
var viewer = new Cesium.Viewer("cesiumContainer", {
@@ -3364,11 +3376,13 @@ _This is an npm-only release to fix a publishing issue_.
3364
3376
- Added `VRButton` which is a simple, single-button widget that toggles VR mode. It is off by default. To enable the button, set the `vrButton` option to `Viewer` to `true`. Only Cardboard for mobile is supported. More VR devices will be supported when the WebVR API is more stable.
3365
3377
- Added `Scene.useWebVR` to switch the scene to use stereoscopic rendering.
3366
3378
- Cesium now honors `window.devicePixelRatio` on browsers that support the CSS `imageRendering` attribute. This greatly improves performance on mobile devices and high DPI displays by rendering at the browser-recommended resolution. This also reduces bandwidth usage and increases battery life in these cases. To enable the previous behavior, use the following code:
3379
+
3367
3380
```javascript
3368
3381
if (Cesium.FeatureDetection.supportsImageRenderingPixelated()) {
3369
3382
viewer.resolutionScale = window.devicePixelRatio;
3370
3383
}
3371
3384
```
3385
+
3372
3386
- `GroundPrimitive` now supports batching geometry for better performance.
3373
3387
- Improved compatibility with glTF KHR_binary_glTF and KHR_materials_common extensions
3374
3388
- Added `ImageryLayer.getViewableRectangle` to make it easy to get the effective bounds of an imagery layer.
@@ -4008,14 +4022,17 @@ _This is an npm-only release to fix a publishing issue_.
4008
4022
- `ImageryLayer` properties `alpha`, `brightness`, `contrast`, `hue`, `saturation`, and `gamma` may no longer be functions. If you need to change these values each frame, consider moving your logic to an event handler for `Scene.preRender`.
4009
4023
- Removed `closeTop` and `closeBottom` options from `RectangleGeometry`.
4010
4024
- CZML changes:
4025
+
4011
4026
- CZML is now versioned using the <major>.<minor> scheme. For example, any CZML 1.0 implementation will be able to load any 1.<minor> document (with graceful degradation). Major version number increases will be reserved for breaking changes. We fully expect these major version increases to happen, as CZML is still in development, but we wanted to give developers a stable target to work with.
4012
4027
- A `"1.0"` version string is required to be on the document packet, which is required to be the first packet in a CZML file. Previously the `document` packet was optional; it is now mandatory. The simplest document packet is:
4028
+
4013
4029
```
4014
4030
{
4015
4031
"id":"document",
4016
4032
"version":"1.0"
4017
4033
}
4018
4034
```
4035
+
4019
4036
- The `vertexPositions` property has been removed. There is now a `positions` property directly on objects that use it, currently `polyline`, `polygon`, and `wall`.
4020
4037
- `cone`, `pyramid`, and `vector` have been removed from the core CZML schema. They are now treated as extensions maintained by Analytical Graphics and have been renamed to `agi_conicSensor`, `agi_customPatternSensor`, and `agi_vector` respectively.
4021
4038
- The `orientation` property has been changed to match Cesium convention. To update existing CZML documents, conjugate the quaternion values.
0 commit comments