Right now when the georeference changes my tiles go below { 0, 0, 0}. How can I get my SunSky to update the SkyAtmosphere to the correct location on Cesium origin change? Is there any component or something that might drive this? I would like to use the CesiumSunSky which does this out of box but they aren’t as cooperative on the C++ side of things because I would have to forward declare among other things.
@mtruesda What’s the issue with using CesiumSunSky? I think it’d be worth trying to resolve that instead of reimplementing the functionality yourself. However, if getting CesiumSunSky working with your use case isn’t an option, you can take a look at the code that updates the sun position in CesiumSunSky. The key here is the USunPositionFunctionLibrary::GetSunPosition method, which comes from the SunPosition plugin which I believe ships with Unreal.
I haven’t quite placed why but when I change the time of day using CesiumSunSky the resulting scene isn’t right. For example the sunrise is at 2AM and I’ve got the time of year and lat/lon plugged in correctly. It also was having weird behavior with my tiles at night where it was almost as if the Skylight recapture wasn’t happening
Can you point me to where the delegate is set up to to have that implementation you sent me run when the georeference changes?