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

Consider creating a "relative to 3D Tiles" height reference #8606

Closed
OmarShehata opened this issue Feb 11, 2020 · 2 comments
Closed

Consider creating a "relative to 3D Tiles" height reference #8606

OmarShehata opened this issue Feb 11, 2020 · 2 comments

Comments

@OmarShehata
Copy link
Contributor

Right now your options for a height reference are absolute, relative to ground or clamp to ground.

Since 3D Tiles are often "the ground" in many applications (such as photogrammetry of cities), it can be useful to be able to position things relative to this ground. It is already possible to clamp entities to 3D Tiles as shown by this Sandcastle:

https://sandcastle.cesium.com/index.html?src=Clamp%20to%203D%20Tiles.html

But this is done in a postRender call that continually adjusts the height. It would be nice if this were a built-in height reference that can be used from the Entity API/with CZMLs.

My use case for this is placing labels on buildings in a photogrammetry 3D Tileset. To do this currently with CZML I need to manually specify the height for each label depending on where it is to make sure it's visible.

@lilleyse
Copy link
Contributor

lilleyse commented Apr 20, 2020

I'm a little worried that scene.clampToGround won't scale super well. Terrain keeps triangle data in CPU memory, wonder if we need to do the same for 3D Tiles at some point. And then optimize ray/triangle intersection tests.

@ggetz
Copy link
Contributor

ggetz commented Sep 22, 2023

I believe this is a duplicate of #7044. Closing to consolidate.

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

3 participants