-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Make it trivial to relocate a Cesium3DTileset #6394
Comments
My first instinct was to invert the existing |
Thanks @likangning93, the above was the code I had on hand; but I agree your idea is probably better. Do you have a snippet of your approach? |
Ah wait... I think I came up with that idea because I didn't realize the root transform is different from the tileset model matrix. Couldn't we just clear that tileset root transform and then use |
Maybe something as simple as this, but with actual HPR:
I guess the one worrisome thing here is direct access of the private |
Since this was posted, we now have We could however change the sandbox to provide more examples of transforming 3D Tilesets. I already expounded a little bit. |
This is a common request from a lot of users, I wouldn't consider it API bloat. I think tileset.position property in ECF makes complete sense even if it just a getter/setter wrapper around the model matrix. If there are too many edge cases that make the hard to do for all tilesets, then we probably need to figure how next steps for improving 3D Tiles (or our implementation) to remove those cases. |
So I was looking around and noticed there is no way to only set the rotation component of the There is this function: but it requires you set the transformation component. @lilleyse @likangning93 what do you think? |
@ProjectBarks |
@hpinkos it sets the components to zero. If you pass in a result matrix you don't want it to change your translation components. You could get the translation ( A |
Ah, that makes sense. In that case, I think it would be find to add a |
|
Right now, you need to jump through a bunch of hoops to relocate an already geolocated tileset. We should be able to turn this into a one-liner, something like
tileset.setPositionHeadingPitchRoll
Here's an example of what I had to do today to move a tileset. Do we have an easier way that I'm already missing? CC @lilleyse @likangning93
The text was updated successfully, but these errors were encountered: