Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shaking occurs when the camera is near an object. #11657

Open
syzdev opened this issue Nov 29, 2023 · 4 comments
Open

Shaking occurs when the camera is near an object. #11657

syzdev opened this issue Nov 29, 2023 · 4 comments

Comments

@syzdev
Copy link
Contributor

syzdev commented Nov 29, 2023

When the camera approaches the lines, it is evident that the lines are shaking.

  1. CZML Path: Zoom the camera to the nearest position.
    GIF2

  2. Clamp to 3D Tiles: Move the camera in a very close position.
    GIF3

  3. CZML Point: Zoom the camera to the nearest position.
    GIF1

Sandcastle example: CZML PathClamp to 3D TilesCZML Point

Browser: The latest version of Chrome

Operating System: Windows 11

@syzdev
Copy link
Contributor Author

syzdev commented Nov 29, 2023

CC #4049

@syzdev
Copy link
Contributor Author

syzdev commented Dec 1, 2023

Hi @ggetz , I'm not sure if this is the same issue as #9417 .The difference is that I'm not using an Apple device. Has this been discussed in the past?

@ggetz
Copy link
Contributor

ggetz commented Dec 1, 2023

Hi @syzdev, thanks for the report! This is similar to #9417 as the shaking is likely coming from precision issues. But since you are replicating on Windows, the source of the issue is likely different.

I'm able to reproduce a slight jitter when zoomed in very close.

Would you be able to let us know your use case for zooming in very close?

@ggetz ggetz added the needs feedback On hold until additional info is supplied label Dec 1, 2023
@syzdev
Copy link
Contributor Author

syzdev commented Dec 4, 2023

@ggetz

My use case is very similar to Multi-part CZML, where I need to use viewer.trackedEntity to track objects along a path. In the official example, the model is often enlarged, but in reality, the model is very small, such as for a person or a car. Therefore, many times it is necessary to zoom the camera to the nearest position, which leads to shaking problems.

Here is also a simple example to describe my use case: Path roaming.
s

Regarding the precision issues, I have checked the code: translateRelativeToEye.glsl#L8EncodedCartesian3.js#L9AutomaticUniforms.js#L1225AutomaticUniforms.js#L1246, According to the techniques described in the code comments, it should be possible to represent centimeter level accuracy, but I did not conduct further research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants