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

Anchor point for multiple 3d assets #58

Open
N-partiicle opened this issue May 23, 2022 · 6 comments
Open

Anchor point for multiple 3d assets #58

N-partiicle opened this issue May 23, 2022 · 6 comments

Comments

@N-partiicle
Copy link

Hi - is there any way we could have a specified 0,0,0 for multiple geometry?

@shehzan10
Copy link
Member

Hi @N-partiicle - The uploads to Cesium ion are per scene, so the global origin is used as the origin for all the assets.

When using multiple objects, there is no way to specify each origin individually as this option is limited by the Cesium ion API and the tiling pipelines which process the data.

If you have multiple geometries in a scene, the best option would be to export those into separate scenes and set them at local origins before uploading.

Cesium ion does provide a way for you to geolocate the assets. That way you can reposition the assets once uploaded, if needed, individually. If the assets are uploaded as a group, you can relocate the group, but not the individual assets.

@N-partiicle
Copy link
Author

N-partiicle commented May 25, 2022 via email

@shehzan10
Copy link
Member

@N-partiicle The origin representation is the other way around - Cesium doesn't transform the models within a scene and change the origin in any way, but rather the origin of the model is where the longitude / latitude / height point to. So if you were using the Cesium ion tools to adjust the location, that location points to the origin of the 3D model.

@N-partiicle
Copy link
Author

N-partiicle commented May 26, 2022 via email

@shehzan10
Copy link
Member

I'm not completely sure about the model's latitude-longitude not pointing to the origin of the model, but I digress. If you know the offset between the Latitude-Longitude and the origin, and that offset varies, there is currently no way to provide that information directly to Cesium ion. The only information ion can ingest is where the origin should be positioned using lat/lon.

If the offset is known, the there are two possibilities to consider:

  1. You can apply the offset manually within 3ds Max before uploading it to ion. Either via a script, or what you are currently doing manually.
  2. This plugin is open source. You are free to modify the plugin under the Apache 2.0 license to be able to include an offset process before the upload.

@N-partiicle
Copy link
Author

N-partiicle commented May 28, 2022 via email

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