# can I change the b3dm model\`s material or texture after it\`s already loaded?

**URL:** <https://community.cesium.com/t/can-i-change-the-b3dm-model-s-material-or-texture-after-it-s-already-loaded/7834>\
**Category:** CesiumJS\
**Created:** [December 21, 2018, 7:40am UTC](https://community.cesium.com/t/can-i-change-the-b3dm-model-s-material-or-texture-after-it-s-already-loaded/7834 "2018-12-21T07:40:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11129](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@11129](https://community.cesium.com/u/11129)\
**Post date:** [December 21, 2018, 7:40am UTC](https://community.cesium.com/t/can-i-change-the-b3dm-model-s-material-or-texture-after-it-s-already-loaded/7834/1 "2018-12-21T07:40:19Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**

**4. The Cesium version you’re using, your operating system and browser.**

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [December 21, 2018, 4:38pm UTC](https://community.cesium.com/t/can-i-change-the-b3dm-model-s-material-or-texture-after-it-s-already-loaded/7834/2 "2018-12-21T16:38:15Z")

</div>

This has been a requested feature for a while but no one’s gotten around to it yet:

> <https://github.com/CesiumGS/cesium/issues/2387>
>
> Is there a way of changing the material linked to a primitive in a ModelMesh created from a glTF model?
> The goal...

To get the Model object from a 3D Tiles, the Sandcastle here has an example of going through the children, to extract the Model from the tileset:

> <https://github.com/CesiumGS/cesium/issues/7139#issuecomment-447920237>
>
> Add option to clamp 3D Tileset features relative to ground at runtime, similar to https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=Geometry%20Height%20Reference.html

If you do end up working on this, it would definitely be incredible to contribute it back to CesiumJS! The contributing guide is a good place to start there:

> <https://github.com/CesiumGS/cesium/blob/master/CONTRIBUTING.md>

---

<div class="post-metadata">

**Author:** ![11129](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@11129](https://community.cesium.com/u/11129)\
**Post date:** [December 23, 2018, 2:04pm UTC](https://community.cesium.com/t/can-i-change-the-b3dm-model-s-material-or-texture-after-it-s-already-loaded/7834/3 "2018-12-23T14:04:29Z")

</div>

thank you.

在 2018年12月22日星期六 UTC+8上午12:38:15，Omar Shehata写道：
