# glb sideways

**URL:** <https://community.cesium.com/t/glb-sideways/6076>\
**Category:** CesiumJS\
**Created:** [September 22, 2017, 4:19pm UTC](https://community.cesium.com/t/glb-sideways/6076 "2017-09-22T16:19:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_James\_Liguori](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Robert\_James\_Liguori](https://community.cesium.com/u/Robert_James_Liguori)\
**Post date:** [September 22, 2017, 4:19pm UTC](https://community.cesium.com/t/glb-sideways/6076/1 "2017-09-22T16:19:26Z")

</div>

I'm using a glb... but it's coming up 90 degrees to the left ?!? how may I  
adjust it 90 degrees to the right?

Thanks,  
Robert

---

<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:** [September 25, 2017, 8:34pm UTC](https://community.cesium.com/t/glb-sideways/6076/2 "2017-09-25T20:34:16Z")

</div>

Hey Robert,

Load a gltf model with [Model.fromGltf](https://cesiumjs.org/Cesium/Build/Documentation/Model.html#.fromGltf), and if the rotation is still a problem, try specifying the [rotation matrix](https://en.wikipedia.org/wiki/Rotation_matrix#In_three_dimensions) in the optional modelMatrix option.

Thanks!

Gabby

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [September 25, 2017, 11:51pm UTC](https://community.cesium.com/t/glb-sideways/6076/3 "2017-09-25T23:51:55Z")

</div>

It’s possible your model is Z-Up while Cesium expects models to be Y-Up. In addition to Gabby’s suggestion, Model.fromGltf has an undocumented option to specify the up-axis when creating it, just pass in upAxis : Cesium.Axis.Z as one of the options.
