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

Cannot clamp small models to terrain #210

Closed
OmarShehata opened this issue Aug 19, 2019 · 2 comments
Closed

Cannot clamp small models to terrain #210

OmarShehata opened this issue Aug 19, 2019 · 2 comments

Comments

@OmarShehata
Copy link

This came up with the ion getting started tutorial: CesiumGS/cesium#8084

If you try to tile AGI_HQ.kmz with Cesium World Terrain as a terrain reference, it'll come out on the ellipsoid (so the same height regardless of whether or not you pick terrain). This seems to affect only small models, and was introduced in the 2019-08-07 change log.

@fnicollet
Copy link

Hello,

I am also having the same issue with a CityGML file (not sure it's considered as "small" or not, it is 200Mb zipped with textures). Selecting the "Clamp to terrain" option with "Cesium World Terrain" during upload seem to have no effect on the visualisation, the model is still "floating" in the air:
image

The only difference seems to be that on the clamped asset, Cesium Ion loads the world terrain as well.

Clamped asset ID: 69219
Not-Clamped asset ID: 69109

The CityGML dataset can be downloaded here:
https://download.data.grandlyon.com/files/grandlyon/localisation/bati3d/LYON_6EME_2009.zip
Then uploading one of the GML from that zip file, for instance "LYON_6EME_BATI_REMARQUABLE_2009.gml"

Thanks,
Fabien

@OmarShehata
Copy link
Author

The original issue has been fixed. I think the issue with the CityGML above is that it's not using one of the tags that Cesium ion clamps to ground:

When terrain clamping is enabled, CityGML will adjust the height of the following object types:
CityFurniture
GroundSurface
Track
Road
Railway
Square
ReliefFeature
LandUse
TransportationObject

From: https://cesium.com/docs/tutorials/uploading/.

Note that we're migrating the issues in this repository to consolidate questions, Cesium ion feature requests, and bug reports on the Cesium community forum, that way there'll be one place to search for answers.

For any follow up questions, please open a new topic in the community forum!

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

No branches or pull requests

2 participants