# how to change gltf default orientation

**URL:** <https://community.cesium.com/t/how-to-change-gltf-default-orientation/6911>\
**Category:** CesiumJS\
**Created:** [May 13, 2018, 1:26am UTC](https://community.cesium.com/t/how-to-change-gltf-default-orientation/6911 "2018-05-13T01:26:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![medusatisfy](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@medusatisfy](https://community.cesium.com/u/medusatisfy)\
**Post date:** [May 13, 2018, 1:26am UTC](https://community.cesium.com/t/how-to-change-gltf-default-orientation/6911/1 "2018-05-13T01:26:24Z")

</div>

I use VelocityOrientationProperty to change the orientation of my model(gltf) entity when it is flying. I find that my model orientation is 90 degrees from its velocity orientation. But in cesium flying demo(Cesium\_Air.gltf), the orientation is correct.  
I also find that if i add my gltf without VelocityOrientationProperty, it faces north. But the Cesium\_Air.gltf faces east by default. How to change the default orientation of gltf?

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [May 15, 2018, 9:36pm UTC](https://community.cesium.com/t/how-to-change-gltf-default-orientation/6911/2 "2018-05-15T21:36:39Z")

</div>

Hi there,

You could try to modify the glTF itself so the correct axis is forward, or you could try setting the model’s [nodeTransformations](https://cesiumjs.org/Cesium/Build/Documentation/ModelGraphics.html?classFilter=modelgr#nodeTransformations) to rotate it.

Thanks,

Gabby

---

<div class="post-metadata">

**Author:** ![Rob](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/rob/32/5906_2.png) [@Rob](https://community.cesium.com/u/Rob)\
**Post date:** [August 28, 2018, 2:02pm UTC](https://community.cesium.com/t/how-to-change-gltf-default-orientation/6911/3 "2018-08-28T14:02:06Z")

</div>

Hi Gabby,

In the post above you stated “you could try to modify the glTF itself so the correct axis is forward, or you could try setting the model’s [nodeTransformations](https://cesiumjs.org/Cesium/Build/Documentation/ModelGraphics.html?classFilter=modelgr#nodeTransformations) to rotate it”. Could you elaborate? I have a set of models that were provided to me in .OBJ format. I’ve used the online converter to convert them to glTF v2 format. But they are not oriented as expected. These same models (in .OBJ format) are used in an application built on top of WorldWind, and we’d really like to be able to use the exact same models in Cesium.

If there is something I can do to modify the glTF files or if I could understand how to “set the model’s nodeTransformations to rotate it” that would be great! Could you provide a quick example of each?

Thanks,

Rob
