From a1bb02a141435bd47a95a47e9dbaa4e0fbf46e7b Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Wed, 27 Jun 2018 11:38:08 -0400 Subject: [PATCH 1/4] Update CHANGES.md --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 04cd837bf343..b0976d96ab31 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,7 @@ Change Log ### 1.47 - 2018-07-02 ##### 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. [#6632](https://github.com/AnalyticalGraphicsInc/cesium/pull/6632) +* 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, apply a +X to +Z rotation `[0,0,1,0,0,1,0,0,-1,0,0,0,0,0,0,1]` to the root node of the glTF. [#6632](https://github.com/AnalyticalGraphicsInc/cesium/pull/6632) * Dropped support for directory URLs when loading tilesets to match the updated [3D Tiles spec](https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/272). [#6502](https://github.com/AnalyticalGraphicsInc/cesium/issues/6502) * KML and GeoJSON now use `PolylineGraphics` instead of `CorridorGraphics` for polylines on terrain. [#6706](https://github.com/AnalyticalGraphicsInc/cesium/pull/6706) From 17419b5300c249559d280157ff005d60748e2632 Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Wed, 27 Jun 2018 12:06:52 -0400 Subject: [PATCH 2/4] Update wording --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index b0976d96ab31..20f6edf162f7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,7 @@ Change Log ### 1.47 - 2018-07-02 ##### 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, apply a +X to +Z rotation `[0,0,1,0,0,1,0,0,-1,0,0,0,0,0,0,1]` to the root node of the glTF. [#6632](https://github.com/AnalyticalGraphicsInc/cesium/pull/6632) +* 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, apply a +X to +Z rotation in the glTF file. The can be done by setting the `matrix` of the root node to `[0,0,1,0,0,1,0,0,-1,0,0,0,0,0,0,1]`. [#6632](https://github.com/AnalyticalGraphicsInc/cesium/pull/6632) * Dropped support for directory URLs when loading tilesets to match the updated [3D Tiles spec](https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/272). [#6502](https://github.com/AnalyticalGraphicsInc/cesium/issues/6502) * KML and GeoJSON now use `PolylineGraphics` instead of `CorridorGraphics` for polylines on terrain. [#6706](https://github.com/AnalyticalGraphicsInc/cesium/pull/6706) From 6c4ecdb9afcdf7fe71c863b5195e074263abfa29 Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Fri, 29 Jun 2018 14:47:07 -0400 Subject: [PATCH 3/4] More updates --- CHANGES.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 20f6edf162f7..d9659de8a02d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,9 @@ Change Log ### 1.47 - 2018-07-02 ##### 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, apply a +X to +Z rotation in the glTF file. The can be done by setting the `matrix` of the root node to `[0,0,1,0,0,1,0,0,-1,0,0,0,0,0,0,1]`. [#6632](https://github.com/AnalyticalGraphicsInc/cesium/pull/6632) +* 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 rotation about the Y-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](https://github.com/AnalyticalGraphicsInc/cesium/pull/6738) for more details. * Dropped support for directory URLs when loading tilesets to match the updated [3D Tiles spec](https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/272). [#6502](https://github.com/AnalyticalGraphicsInc/cesium/issues/6502) * KML and GeoJSON now use `PolylineGraphics` instead of `CorridorGraphics` for polylines on terrain. [#6706](https://github.com/AnalyticalGraphicsInc/cesium/pull/6706) From 4461e2efd15776053fa30f06e32da6af817c39a8 Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Sun, 1 Jul 2018 21:59:30 -0400 Subject: [PATCH 4/4] Update CHANGES.md --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d9659de8a02d..9c6c1563a187 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,7 +5,7 @@ Change Log ##### 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 rotation about the Y-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]`. + * 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](https://github.com/AnalyticalGraphicsInc/cesium/pull/6738) for more details. * Dropped support for directory URLs when loading tilesets to match the updated [3D Tiles spec](https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/272). [#6502](https://github.com/AnalyticalGraphicsInc/cesium/issues/6502) * KML and GeoJSON now use `PolylineGraphics` instead of `CorridorGraphics` for polylines on terrain. [#6706](https://github.com/AnalyticalGraphicsInc/cesium/pull/6706)