# Cesium 3d drone viewer help

**URL:** <https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873>\
**Category:** CesiumJS\
**Created:** [October 20, 2022, 8:43am UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873 "2022-10-20T08:43:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yunuss006](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/yunuss006/32/3476_2.png) [@yunuss006](https://community.cesium.com/u/yunuss006)\
**Post date:** [October 20, 2022, 8:43am UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/1 "2022-10-20T08:43:44Z")

</div>

hello everyone, I connected cesium.ion maps with a 3d model program I used.(thanks to @Jacky ) I have a 3d model of a construction site created with a drone. I connected this model with cesium in the same way, but some areas are under the cesium maps and are not visible because they are excavated. As a solution to this, I need to lift the model 20 meters into the air. But I don’t know how to do it. Your help is very important to me, thank you in advance.  
The code I created is below. How should I add a plugin for the solution? (java scprit)

// Construct the viewer with just what we need for this base application  
Cesium.Ion.defaultAccessToken = “myaccestoken” ,  
var viewer = new Cesium.Viewer(‘cesiumContainer’;  
timeline:true,  
animation:true,  
vrButton:true,  
sceneModePicker:true,  
infoBox:true,  
scene3DOnly:true,  
terrainProvider: Cesium.createWorldTerrain()  
});

// Add credit to Bentley  
viewer.scene.frameState.creditDisplay.addDefaultCredit(new Cesium.Credit(‘[![](https://community.cesium.com/t/cesium-ion-access-tokens/20691)](https://www.bentley.com/)Cesium 3D Tiles produced by Bentley ContextCapture’));

// Create tileset. Do not forget to reduce the default screen space error to 1  
var tileset = new Cesium.Cesium3DTileset({  
url: “…/Scene/Production\_5.json”,  
maximumScreenSpaceError : 1  
});

// Override behavior of home button  
viewer.homeButton.viewModel.command.beforeExecute.addEventListener(function(commandInfo) {  
// Fly to tileset  
viewer.flyTo(tileset);

```auto
// Tell the home button not to do anything
commandInfo.cancel = true;

```

});

// Add tileset to viewer and set initial camera position  
viewer.scene.primitives.add(tileset);  
viewer.zoomTo(tileset);

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [October 21, 2022, 8:15pm UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/2 "2022-10-21T20:15:08Z")

</div>

You can go with [multiplyByPoint](https://cesium.com/learn/cesiumjs/ref-doc/Matrix4.html#.multiplyByPoint) to increase height. I’ve already replied on another similar [post](https://community.cesium.com/t/how-to-change-height-of-3dmodels/18799/6) about it.

Check this another sandcastle [example](https://sandcastle.cesium.com/#c=hVVtb9s2EP4rhD7JhUfLlmxJzQvWJmkbIG2D2OswTPvASOeYC0UaJGXHHfzfdxRlO4kzzJBhk3d87rm756hSSWPJisMaNDkjEtbkAgxvavqj3QuLoGzXF0paxiXoIuiTfwpJiAWtcedWqxWvQL/fHSw1MAu/Ky2qmXcJe/1CbnsnhSzbcKYECRjNh6Xtcm8shSofD8Z2icZCCrAEpOV2c+IXS2W45coxWIJutz1ExSybqkaXgKaaGxerI3fxsxaXezMVilWhS6YIKB1MWb0U4MyDC4H/Z+qzVo2saImniqCQLoWO1yGGoayqwqOYPWoXIMN5I0tHkjzz6PkC+mSQ28FC2z2OmA9gP26ukVzgmX/l4nGmm/KxCBwLcpQ94nhAurOcdEXflcVyAQbrduYbQJea1+i46jJwoM/673/iy5k/FbaUCWm02Hf6Wsk7MJ74HLP+YNAROSdRNpm4nhOy7fmq7etWsho0o+joBOZRKzCWS+Y4v39BgWmL/5iMQx98OBpOkiimWZaMx9lklI373vBLksaTeJzSJI/j8TDOdwakMhzlOU2H40me5Unutj01pTkW7DjqF2AVlw+33JaLOyVEFzuhoywfjYYpImZRlkWTXeyIJmmeR2k0TNJxNMKns0zoKM3TLB+maZbE8TA+BAdZzTSTZq50va/nV2Y1f0ro9eXVt9n17I/+voF8TkLftNIL8wvwh4WdNsulwhpVnaK6DlMusa9MtK27QYlD5Tp8tcJ8b7ixiKNDY7G6Dn1LQOCItABrLiu1pkygolB6swU35F6rtcHboVJgiFQ4vj4qeUGFel1uHdu95tsYYUeunWRqFqoR1QfJa7wkUIpWN9Dq2WtU3f8NpTUzdfVUiqZyHn96Wf/VenXKVcbeYQlRT0d5HQaui0vI88sCAV9Pjpu1H0w0EHqKZaM1Is54DX7UPEKb7u0B5o1+hDvo/lEivo8Oa/COfJ/P3SBOwaLuHwxxw0MWoIG8G3inV6N8uMB2GqkbYflSbD5ubhWXNuzMe1EZCszYb9inxW/I7xN/guqTxuELX+TR66T6f5+3pzLqE3xiGvX6/+HR8xXcdtoI+kERtDu7LyGnxm4EnO94/MrrVl140YR4J1vAOxmlYgb3ePmhtktjdl05HTw/elrxFeHV2RtvLNc7Y9Ayb4SY8p9QBOenA/Q/OupeCNiS7yvQgm2c22J4fuM3KaWnA1y+fdIqJe6ZfoX8Lw).

- Regards

---

<div class="post-metadata">

**Author:** ![yunuss006](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/yunuss006/32/3476_2.png) [@yunuss006](https://community.cesium.com/u/yunuss006)\
**Post date:** [October 27, 2022, 2:11pm UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/3 "2022-10-27T14:11:33Z")

</div>

Thank you for your help @Jacky . But I still can’t come to a conclusion. I’m new to coding. Can you help more?

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [October 27, 2022, 5:12pm UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/4 "2022-10-27T17:12:17Z")

</div>

You can check this [example](https://sandcastle.cesium.com/?src=3D%20Tiles%20Adjust%20Height.html)

---

<div class="post-metadata">

**Author:** ![yunuss006](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/yunuss006/32/3476_2.png) [@yunuss006](https://community.cesium.com/u/yunuss006)\
**Post date:** [October 31, 2022, 5:54am UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/5 "2022-10-31T05:54:08Z")

</div>

I used similar codes in the example you gave, unfortunately I couldn’t make it to the main @Jacky

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [October 31, 2022, 10:02am UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/6 "2022-10-31T10:02:26Z")

</div>

@yunuss006 you can use the logic given in that example and use it on your main code.

---

<div class="post-metadata">

**Author:** ![yunuss006](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/yunuss006/32/3476_2.png) [@yunuss006](https://community.cesium.com/u/yunuss006)\
**Post date:** [November 9, 2022, 7:16am UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/8 "2022-11-09T07:16:55Z")

</div>

Thanks for your @Jacky but I couldn’t reach the result

---

<div class="post-metadata">

**Author:** ![Jacky](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jacky/32/7686_2.png) [@Jacky](https://community.cesium.com/u/Jacky)\
**Post date:** [November 9, 2022, 5:12pm UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/9 "2022-11-09T17:12:48Z")

</div>

I would suggest you to alaborate your problem with the help of a sandcastle example.

- Regards

---

<div class="post-metadata">

**Author:** ![dihand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/dihand/32/6622_2.png) [@dihand](https://community.cesium.com/u/dihand)\
**Post date:** [November 10, 2022, 12:37pm UTC](https://community.cesium.com/t/cesium-3d-drone-viewer-help/20873/10 "2022-11-10T12:37:43Z")

</div>

Hello @yunuss006 You can:  
1 use ION and set the position of the model - including the height in a more convenient graphical way (very fast & simple solution)  
2 read the possibilities of Cesium for working with underground layers and how to configure them  
3 turn off the visibility of the tile in the desired region - for example by linking it to a button for convenience

All of these examples are in the sandbox - just search. Also, all these things are described in the documentation.  
Have a nice day.
