question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Limiting Camera Tilting

See original GitHub issue

This issue stems from the following community forum post: https://community.cesium.com/t/how-to-limit-tilt/14459

There has been a significant history of community forum questions/complaints related to camera functionality in CesiumJS. Limiting the camera tilt can help prevent users from ending up “underground” or getting lost in the scene by moving the mouse rapidly to tilt the camera to view both extremes (+90 degrees, -90 degrees). Adding an additional function called limitTilt() to the Camera object may make sense, although other suggestions are welcome.

In offline discussion, both @lilleyse and @ebogo1 seem to support this feature as well. Here is a sandcastle demo that showcases how this feature might perform:

https://sandcastle.cesium.com/#c=lZRfb9sgFMW/CvKTI3l4Ux/rRJPSvlVb1Sp78guBmwQVA+KPq27qdx829upgb8keIsWXc373cgxuiUEth1cwaI0kvKItWO4b/KOv5XVG++etko5wCabOVre1bIPrKNQegim6saUgAffFQUBJA4akilgNkiiy1BBHT9+UaYg4H2FLjAv/iLzJx57aQMuVt4/KcseVvNpwxw3Q/3Ls9NXSJ348uX+qg36agVbW7TQjDjBh7L4F6R64dWHJ5Acv+0HzFfpVS4S6RnJMp48XgxBcW8UZPoJi4Dh99uZAKMQU886Ghvi7Xn1URaye5d2V4nixD1Pu0Sjmabeb2U5wWM4HKhvzLIbhOgxC3Y8fUD4Bbdbo02d8M+xmNtZiIyqUhDx92UXqjT3/INnkHV9i3n3Mn7oTqtdX4Ha6+NAnADOcjkuM/hQVZ65IekcgLIz5LVyBv5HTEzDzjpMu3ZIL0MkBmLlT7E5f5nldTPQp4elChtPQinPXkGEt31e3WZFV1r0J2EQ8Ql95o5VxyBuRY1w6aLQI19KWe09fwGFq7ThLVU6tFeMt4my98IFEVBBrw8rBC/HMf0Kdbaoy6GdWoQjj8vi9BSPIWyc7fdk8xCLGuCrD47LTKSX2xCTk3w

While this demo is not perfect, it should give readers an idea of what we are looking for.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ebogo1commented, Aug 16, 2021

@robmilton At this time it doesn’t seem like we’ll be able to get to this in the near future, but we have this and other Camera fixes in mind for when we get a chance to work on them.

1reaction
lilleysecommented, Jul 21, 2021

This would be a really welcome feature.

My thinking is that it would a property called minimumTiltAngle in ScreenSpaceCameraController. The implementation would be almost completely be in ScreenSpaceCameraController instead of Camera.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Limit Tilt - CesiumJS
I would like to be able to limit the tilt. Using a mouse we can easily ... Limiting the tilt with the Camera...
Read more >
Pan Tilt Limits for Camera Operators - YouTube
Setting Pan and Tilt Limits for Live Streaming SportsIn this video, we are going to review how to set Pan and Tilt Limits...
Read more >
How to turn off Pan or Tilt Limits on Esprit cameras
Position the cursor (>) beside Limit Stop. Press the Iris Open button to enter the Limit Stop menu. Move the cursor to Clear...
Read more >
How to limit movement angles in C# - camera-sdk.com
Firstly it is worth to mention a few cases when it is useful to limit the movement angles of the camera. After setting...
Read more >
Tilt (camera)
Tilting is a cinematographic technique in which the camera stays in a fixed position but rotates up/down in a vertical plane. ... Tilting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found