When the camera flies into the ground, it will automatically fly into the ground in a few seconds.

429 views
Skip to first unread message

zp20...@gmail.com

unread,
Dec 26, 2017, 5:19:02 AM12/26/17
to cesium-dev
Hi ,every
I set a camera to fly to the ground, after a few seconds after the camera will automatically fly into the ground, how do I solve this problem?thank you.

Gabby Getz

unread,
Dec 29, 2017, 10:39:48 AM12/29/17
to cesium-dev
Hi there,

There are two relevant camera issues currently open that this could be, either jumping after terrain is loaded in or the camera going underground while terrain is loading. Could you clarify for me which one you are seeing? 

Otherwise, please provide a code sample using Sandcastle so we can replicate the behavior.

Thanks!
Gabby

zp20...@gmail.com

unread,
Jan 1, 2018, 8:39:04 PM1/1/18
to cesium-dev
I just let the camera fly into the ground.
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(126.55341401765695, 43.79776424440843, -30),
orientation: {
heading : Cesium.Math.toRadians(7.0),
pitch : Cesium.Math.toRadians(0.0),
roll : 0
}
});
In a few seconds the camera will automatically fly back to the ground
在 2017年12月29日星期五 UTC+8下午11:39:48,Gabby Getz写道:

Gabby Getz

unread,
Jan 2, 2018, 3:48:30 PM1/2/18
to cesium-dev
I still not sure what the problem is. Can you provide more info? If you want it to be above the ground, make sure your height is positive. If you want it to happen instantly, you can optionally set duration to 0 in the camera.flyTo options.

zp20...@gmail.com

unread,
Jan 4, 2018, 3:44:35 AM1/4/18
to cesium-dev

This is my code:
<script>
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(126.55336776178318, 43.79731684974997, -115.401004826705325),
orientation: {
heading : Cesium.Math.toRadians(7.0), // 方向
pitch : Cesium.Math.toRadians(0.0),// 倾斜角度
roll : 0
}
});

</script>
I uploaded the video。I'll wait for your reply!
在 2018年1月3日星期三 UTC+8上午4:48:30,Gabby Getz写道:

zp20...@gmail.com

unread,
Jan 4, 2018, 3:52:59 AM1/4/18
to cesium-dev

When the camera flies to the underground, Wait a few seconds,The camera will go back to the surface automatically,I want the camera to be constant in the underground。


在 2018年1月3日星期三 UTC+8上午4:48:30,Gabby Getz写道:
I still not sure what the problem is. Can you provide more info? If you want it to be above the ground, make sure your height is positive. If you want it to happen instantly, you can optionally set duration to 0 in the camera.flyTo options.

Gabby Getz

unread,
Jan 4, 2018, 2:42:47 PM1/4/18
to cesium-dev
I understand, thank you for clarifying!

Unfortunately Cesium currently does nor support an underground camera. Someone also request underground camera controls in this thread, but this will probably ultimately fall under the umbrella of subsurface support, which is one of our highest priorities right now, so keep an eye on that GitHub issue.

Thanks,
Gabby

zp20...@gmail.com

unread,
Jan 5, 2018, 4:19:00 AM1/5/18
to cesium-dev
Hi Gabby!
I'm using Cesium 1.4.1,I created the character model of gltf,When I destroy the model,I found that cesium would make a mistake,But when I use version 3.8 there was no such problem.I feel very confused.need your help!

在 2018年1月5日星期五 UTC+8上午3:42:47,Gabby Getz写道:
Reply all
Reply to author
Forward
0 new messages