Is there a way to adjust the orientation of the CesiumGeoreference vs. just the position? Trying to set the rotation from the Transform creates lots of issues.
Setting the rotation on the Transform is the normal way to do it. What issues are you running into?
If I hit the refresh tileset button, the issue seems to get fixed. But obviously I don’t want to reload the whole tileset every time I rotate the Georeference.
Hi @A_D,
Can I confirm what version of Cesium for Unity are you using? I can’t reproduce this on the most recent release (1.0.0).
That should be what I’m running. On Unity 2022.1.0f1. I downloaded the samples package from git yesterday. I’ll try a fresh download and see if I can reproduce.
Ok, so yeah, fresh download running on 2021.3.7f1 this time and I can still produce the issue.
Here are my steps:
- Run the CesiumWorld scene
- Select the CesiumGeoreference GameObject and set the rotation to something like 45
- Fly around the scene (flying backwards towards space is easiest) and notice the tiles are doing what I posted in the picture
Ah, you mean setting the rotation of the CesiumGeoreference
at runtime, not in edit mode. Yes, I can reproduce the issue. Thank you for your report.
I wrote up something on Github so we can keep track of the bug: Changing a `CesiumGeoreference`'s transform at runtime causes tile displacement. · Issue #275 · CesiumGS/cesium-unity · GitHub
Great, thank you! Is a new version of the plugin coming anytime soon?
We release on a monthly cycle, so the next version of Cesium for Unity won’t be out until May. I’ll try to bump this bug and see if we can get a fix for it in the next release. Whenever it happens, I’ll be sure to bump this thread!
It looks like this didn’t get fixed in the May (1.1.0) release. Any update on when this will be addressed? Thanks!
Hi @A_D,
We just merged a fix for this to main
and plan on shipping it as a patch release: Only recompute the ECEF transformation if a GlobeAnchor's _local_ transformation changes by kring · Pull Request #302 · CesiumGS/cesium-unity · GitHub.
Hi @A_D,
To update, we just released Cesium for Unity v1.2.0, which contains the aforementioned fix. Feel free to try it out and let us know how it goes!