# CESIUM OriginShiftComponent - Callback needed for Volumetric Clouds

**URL:** <https://community.cesium.com/t/cesium-originshiftcomponent-callback-needed-for-volumetric-clouds/28613>\
**Category:** Cesium for Unreal\
**Created:** [December 8, 2023, 3:51pm UTC](https://community.cesium.com/t/cesium-originshiftcomponent-callback-needed-for-volumetric-clouds/28613 "2023-12-08T15:51:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lildreas](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/lildreas/32/21421_2.png) [@Lildreas](https://community.cesium.com/u/Lildreas)\
**Post date:** [December 8, 2023, 3:51pm UTC](https://community.cesium.com/t/cesium-originshiftcomponent-callback-needed-for-volumetric-clouds/28613/1 "2023-12-08T15:51:40Z")

</div>

Hi,

we are succesfully using the OriginShiftComponent with “Change Cesium Georeference” for our full-globe flight simulator, it’s a great feature!

But when using origin shift with volumetric clouds (or Ultra Dynamic Sky), with every rebasing the clouds jump.

This can be solved by feeding the changed actor position into the cloud material via MPC. But I still get a one-frame-cloud jitter, because I don’t have a callback from the CESIUM Origin Shift, so my update to the clouds shader is one frame too late.

Solution: It would be awesome to get an Blueprint Callback Event node that activates directly after the origin shift happened.

Thanks & best  
Andreas

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [December 11, 2023, 2:30am UTC](https://community.cesium.com/t/cesium-originshiftcomponent-callback-needed-for-volumetric-clouds/28613/2 "2023-12-11T02:30:01Z")

</div>

You should be able to subscribe to the change in the `CesiumGeoreference` origin itself. See the `OnGeoreferenceUpdated` event on `ACesiumGeoreference`.

---

<div class="post-metadata">

**Author:** ![Lildreas](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/lildreas/32/21421_2.png) [@Lildreas](https://community.cesium.com/u/Lildreas)\
**Post date:** [December 12, 2023, 10:46am UTC](https://community.cesium.com/t/cesium-originshiftcomponent-callback-needed-for-volumetric-clouds/28613/3 "2023-12-12T10:46:14Z")

</div>

Thanks @Kevin_Ring ,  
will look into this!  
Best  
Andreas

---

<div class="post-metadata">

**Author:** ![Lildreas](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/lildreas/32/21421_2.png) [@Lildreas](https://community.cesium.com/u/Lildreas)\
**Post date:** [December 12, 2023, 1:02pm UTC](https://community.cesium.com/t/cesium-originshiftcomponent-callback-needed-for-volumetric-clouds/28613/4 "2023-12-12T13:02:30Z")

</div>

Hi @Kevin_Ring,

works like a charm, just adding the Blueprint implementation for others who might need this, too:

 ![EventOnGeoreferenceUpdated](https://global.discourse-cdn.com/cesium/original/3X/a/c/acb181f6484865697e55ff8bfa1e9087939527d3.jpeg)

I placed this in the Level Blueprint, but you can add it wherever you want.

Best  
Andreas

---

<div class="post-metadata">

**Author:** ![salbeal09](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/salbeal09/32/8581_2.png) [@salbeal09](https://community.cesium.com/u/salbeal09)\
**Post date:** [February 27, 2025, 5:23pm UTC](https://community.cesium.com/t/cesium-originshiftcomponent-callback-needed-for-volumetric-clouds/28613/5 "2025-02-27T17:23:12Z")

</div>

I guess this is to add the offset afterwards to absolute world position nodes by means of material parameter collections, right? If that is the case, did you find any precision loss problems after some time running? Does the offset grow indefinitely and cause precision loss? Is there a way to avoid this?
