# gltf scale factor and georeference

**URL:** <https://community.cesium.com/t/gltf-scale-factor-and-georeference/938>\
**Category:** CesiumJS\
**Created:** [January 17, 2014, 4:04pm UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938 "2014-01-17T16:04:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umberto\_Di\_Staso](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@Umberto\_Di\_Staso](https://community.cesium.com/u/Umberto_Di_Staso)\
**Post date:** [January 17, 2014, 4:04pm UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938/1 "2014-01-17T16:04:32Z")

</div>

Hi all!

I'm testing the glTf functionalities in Cesium: i'm trying to import a 3D model of a city, converted from COLLADA to glTF using the official conversion tool brovided in the glTf branch.

The converter works well and the 3D model is visualized in Cesium with very good performances, but there are some issues:

1) scale factor: what is the scale factor that I have to use in Cesium for 3D models?  
2) there is any way to georeference the glTF 3D model?

---

<div class="post-metadata">

**Author:** ![Umberto\_Di\_Staso](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@Umberto\_Di\_Staso](https://community.cesium.com/u/Umberto_Di_Staso)\
**Post date:** [January 17, 2014, 4:08pm UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938/2 "2014-01-17T16:08:16Z")

</div>

Additional information:

-the COLLADA 3D model of the city was created starting from a CityGML file and converted by FME

If someone wants some screenshot let me now...

Umberto

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [January 20, 2014, 4:30pm UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938/3 "2014-01-20T16:30:30Z")

</div>

Umberto,

We’re happy to see a screenshot, thanks.

glTF will have everything in meters ([#23](https://github.com/KhronosGroup/glTF/issues/23)) but that is not implemented in the converter yet. I’ll followup with Fabrice (the main converter developer) about that. Right now, it will have the same units as the COLLADA file. Scale just multiples this, e.g., 2.0 is twice the size and 0.5 is half the size.

glTF will not have geolocation in the 1.0 spec. However, there will be a geolocation extension that Cesium will implement. The schema is still TBA, but it will be simple longitude, latitude, and height like COLLADA. In the meantime, you can reference a glTF asset from a CZML file to define its location. Here’s an [example CZML file](https://github.com/AnalyticalGraphicsInc/cesium/blob/gltf/Apps/CesiumViewer2/Gallery/model/modelDemo.czml).

Patrick

---

<div class="post-metadata">

**Author:** ![Umberto\_Di\_Staso](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@Umberto\_Di\_Staso](https://community.cesium.com/u/Umberto_Di_Staso)\
**Post date:** [January 23, 2014, 8:09am UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938/4 "2014-01-23T08:09:14Z")

</div>

Hi Patrick

Here the screenshot of the glTF model created by the use of a cityGML-LOD2 (with roofs) of an Italian city

Hope to hear news about the geolocation 🙂

 ![Schermata 2014-01-23 alle 09.06.01.png](https://global.discourse-cdn.com/cesium/original/2X/4/4917ac06605032e06afada07eec0e751a085bff2.png)

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [January 23, 2014, 2:32pm UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938/5 "2014-01-23T14:32:13Z")

</div>

Cool. Thanks for sharing. How many buildings is that?

Patrick

 ![Schermata 2014-01-23 alle 09.06.01.png](https://global.discourse-cdn.com/cesium/original/2X/4/4917ac06605032e06afada07eec0e751a085bff2.png)

---

<div class="post-metadata">

**Author:** ![Umberto\_Di\_Staso](https://avatars.discourse-cdn.com/v4/letter/u/9d8465/32.png) [@Umberto\_Di\_Staso](https://community.cesium.com/u/Umberto_Di_Staso)\
**Post date:** [January 23, 2014, 3:46pm UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938/6 "2014-01-23T15:46:43Z")

</div>

The entire city is composed by (more or less) 10k buildings

the performances are incredible good!!!

 ![Schermata 2014-01-23 alle 09.06.01.png](https://global.discourse-cdn.com/cesium/original/2X/4/4917ac06605032e06afada07eec0e751a085bff2.png)

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [January 23, 2014, 4:23pm UTC](https://community.cesium.com/t/gltf-scale-factor-and-georeference/938/7 "2014-01-23T16:23:19Z")

</div>

Great - thanks for the info!

Patrick

 ![Schermata 2014-01-23 alle 09.06.01.png](https://global.discourse-cdn.com/cesium/original/2X/4/4917ac06605032e06afada07eec0e751a085bff2.png)
