# Rotate b3dm file

**URL:** <https://community.cesium.com/t/rotate-b3dm-file/4915>\
**Category:** CesiumJS\
**Created:** [December 13, 2016, 1:02pm UTC](https://community.cesium.com/t/rotate-b3dm-file/4915 "2016-12-13T13:02:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ohad\_Sadan\_Stock](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@Ohad\_Sadan\_Stock](https://community.cesium.com/u/Ohad_Sadan_Stock)\
**Post date:** [December 13, 2016, 1:02pm UTC](https://community.cesium.com/t/rotate-b3dm-file/4915/1 "2016-12-13T13:02:23Z")

</div>

Is there is a way to rotate the b3dm file in the browser after it was loaded ?  
My problem is that converting the .dea files into gltf and then to b3dm makes the the models look a bit “clumsy” and

I need to fix their rotation a little bit . I want to find a way to measure the x,y,z needed rotation degrees . In the browser so I can play with the rotation of a single b3dm file

and then append the correct transform matrix to the tile.transform

(something like [http://webglfundamentals.org/webgl/lessons/webgl-3d-orthographic.html](http://webglfundamentals.org/webgl/lessons/webgl-3d-orthographic.html))

---

<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:** [December 14, 2016, 12:30am UTC](https://community.cesium.com/t/rotate-b3dm-file/4915/2 "2016-12-14T00:30:24Z")

</div>

You can try setting a rotation matrix to the tileset.modelMatrix property, but this may not work as expected if you already have a tile transform or the model is already defined in WGS84 coordinates.

If you are trying to position a model that is originally y-up and is defined in local-coordinates, you can probably use a tile.transform like this to position it correctly on the Earth surface.

```auto
Transforms.headingPitchRollToFixedFrame(Cartesian3.fromRadians(longitude, latitude, height), 0.0, 0.0, 0.0);

```

```auto

```
