# 2D Sprite and 3D Models

**URL:** <https://community.cesium.com/t/2d-sprite-and-3d-models/14925>\
**Category:** CesiumJS\
**Created:** [August 20, 2021, 3:24pm UTC](https://community.cesium.com/t/2d-sprite-and-3d-models/14925 "2021-08-20T15:24:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clay2639](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/clay2639/32/3458_2.png) [@clay2639](https://community.cesium.com/u/clay2639)\
**Post date:** [August 20, 2021, 3:24pm UTC](https://community.cesium.com/t/2d-sprite-and-3d-models/14925/1 "2021-08-20T15:24:40Z")

</div>

I would like to be able to interchange 2D sprites and 3D models in Cesium. The dataset is loaded via .czml. In this scenario, the 2D sprites are defined under the billboard property. Should the 3D model be defined under the model property? And could these two be interchanged after uploading the file into Cesium?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [August 23, 2021, 3:33pm UTC](https://community.cesium.com/t/2d-sprite-and-3d-models/14925/2 "2021-08-23T15:33:12Z")

</div>

@clay2639

I would recommend defining the 3D model under the model property. We see that both `Model` and `Billboard` have the member `show`. I recommend using this member to swap between your 2D sprite and your 3D model.

[https://cesium.com/learn/cesiumjs/ref-doc/Billboard.html?classFilter=billboa](https://cesium.com/learn/cesiumjs/ref-doc/Billboard.html?classFilter=billboa)

[https://cesium.com/learn/cesiumjs/ref-doc/Model.html?classFilter=model](https://cesium.com/learn/cesiumjs/ref-doc/Model.html?classFilter=model)

This can be done after uploading the files to Cesium ion. Just set `show: false` on the 2D model and `show: true` on the 3D model (and vice versa). You will also need to ensure that the models are in the same location. Let me know if you have any other questions or concerns.

-Sam
