CesiumGS / CesiumGS/cesium

Unable to zoom in after setting the relative height of vertical exaggeration

Open
#11,974 3 comments 0 reactions 0 assignees View on GitHub
category - camera type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

### What happened?

This issue comes from https://github.com/CesiumGS/cesium/issues/11936 , I think this is another issue, so I created a new one. If the model is in the air, the reference height can be set to the center of the model, but the camera cannot zoom in.

[sandcastle](https://sandcastle.cesium.com/#c=tVRda9swFP0rl+yhKSROWjrYMjeMlsIK2zo2tqe8yNaNIyJLRpLzsZH/vivLju2s7QpjDwHdz3Pu8c1NtbIONgK3aOAaFG7hFq0o8+hH5RsuBmll32rlmFBoFoMR/FooAKGW+kbvZrBk0uLIuyxKTJ3Q6l5xkTKnTS+6Ylxv7QycKYPHiRwlNe1mMSVy5nu0zsP5u4VaqLTi+gtsigrhQHQD707QOz5pjpKCFUncsSxDUzesKqMNGkfs5F0nVkEblGRs8AOKbOWeS//ay/QUKxLLUlXjQ1lw5rBbMTwPhJ7uSZQ/l3lCmh+niLr0vQjwYk5tN18FrTJRf0of9Z0Pnn/96ddKp2tdusgZlq5bOj4v6Oy0lgnzG8N1WuaoXJShu5Ponzf7e057U+csBr7stDMrCrm/EbQmKrMtwqjp7GuW2sAw4CmWIy1cO0WtplhCR60Vsw9b9cXoguTZD33ReZ0IcMIgOAE874fEotmwRGKXSVV+TLNlYlMjEhz++W3DlzlUIg5Gg9i6vcS5970XeaGNg9LIYRRNHOYFiY92kpTpGl2UWht2G+BVo2nNNyHpM6NLxWdgsoQNry5H0Pym0ZsAClAw7kWcwVWxq12JNhzN2DAuStsGDidAQhWla+CajRozKTL6q+SCc4l9jLHTxQwujziNO9HO6byNnAJFK2REqIFa0ikZb+v/WKIlb4riSaNczMUGBL9+5PpAKpm1FFmWUn4TP3ExmMcTyu+VSc08tQcaS7I9pXiIeHUx/xgCURTFEzI96GntcXFDkfOLMQ/UY5dovp83WxE7c3x7i8+7axFPyNEPtxbZQX+3L5BADVMZjUK6K7Iu/Ivt6PWaXtZhQc9pNPV+2j42TuivQ64NkyVdz+6ZGEHl/F5t6QzOKpSzepjHsR3unIchMWvEv2D0uvXGJMM8I09zoyAcn39QaHwxnU6PKr0NRi3UEyr1D9//0unkvL5EKXoe14re9b6FxfwN)

![GIF1](https://github.com/CesiumGS/cesium/assets/25605081/4ef052fb-c4e8-4a59-b71c-ae2a6de0500b)

### Reproduction steps

1.Exaggeration -> 5
2.Relative Height -> 9000
3.Mouse wheel -> zoom in
...

### Sandcastle example

[sandcastle](https://sandcastle.cesium.com/#c=tVRda9swFP0rl+yhKSROWjrYMjeMlsIK2zo2tqe8yNaNIyJLRpLzsZH/vivLju2s7QpjDwHdz3Pu8c1NtbIONgK3aOAaFG7hFq0o8+hH5RsuBmll32rlmFBoFoMR/FooAKGW+kbvZrBk0uLIuyxKTJ3Q6l5xkTKnTS+6Ylxv7QycKYPHiRwlNe1mMSVy5nu0zsP5u4VaqLTi+gtsigrhQHQD707QOz5pjpKCFUncsSxDUzesKqMNGkfs5F0nVkEblGRs8AOKbOWeS//ay/QUKxLLUlXjQ1lw5rBbMTwPhJ7uSZQ/l3lCmh+niLr0vQjwYk5tN18FrTJRf0of9Z0Pnn/96ddKp2tdusgZlq5bOj4v6Oy0lgnzG8N1WuaoXJShu5Ponzf7e057U+csBr7stDMrCrm/EbQmKrMtwqjp7GuW2sAw4CmWIy1cO0WtplhCR60Vsw9b9cXoguTZD33ReZ0IcMIgOAE874fEotmwRGKXSVV+TLNlYlMjEhz++W3DlzlUIg5Gg9i6vcS5970XeaGNg9LIYRRNHOYFiY92kpTpGl2UWht2G+BVo2nNNyHpM6NLxWdgsoQNry5H0Pym0ZsAClAw7kWcwVWxq12JNhzN2DAuStsGDidAQhWla+CajRozKTL6q+SCc4l9jLHTxQwujziNO9HO6byNnAJFK2REqIFa0ikZb+v/WKIlb4riSaNczMUGBL9+5PpAKpm1FFmWUn4TP3ExmMcTyu+VSc08tQcaS7I9pXiIeHUx/xgCURTFEzI96GntcXFDkfOLMQ/UY5dovp83WxE7c3x7i8+7axFPyNEPtxbZQX+3L5BADVMZjUK6K7Iu/Ivt6PWaXtZhQc9pNPV+2j42TuivQ64NkyVdz+6ZGEHl/F5t6QzOKpSzepjHsR3unIchMWvEv2D0uvXGJMM8I09zoyAcn39QaHwxnU6PKr0NRi3UEyr1D9//0unkvL5EKXoe14re9b6FxfwN)

### Environment

Browser: Google Chrome Version 124.0.6367.119 (Official Build) (64-bit)
CesiumJS Version: 1.117
Operating System: Windows 11 22H2

Contributor guide

Open the contributing guide

Research direction

Open the linked Sandcastle example and reproduce the issue with Exaggeration set to 5 and Relative Height set to 9000, then inspect the camera and vertical-exaggeration behavior involved. Compare zoom-in behavior when the model is in the air with the reference height centered on the model. Done means mouse-wheel zooming works in the reported configuration without breaking the existing reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.