This may be my lack of fully understanding working with Cesium for Unreal and so I have a couple questions.
I have an Unreal cesium map. I have cesium and all that setup and it opens up at a football field in the suburbs of Denver Co…
I have mesh actor that I need to manipulate in the world that is set to 0,0,0. It sits right there on top of the cesium reference in the scene.
At runtime, I load up a file that has a new world coordinate in it. It will have longitude, latitude, and altitude. For this example, lets say I want to load a file that is at the Sydney Opera House (just a random location, I wanted something FAR away from the original location of Denver Colorado to test orientation on the other side of the globe.)
Internet search tells me that the Sydney Opera House is at
ALT : 13
At runtime, in C++ I am calling this function with the coordinates from the file, the values have already been converted to numerical data.
CesiumGeoreference->SetGeoreferenceOriginLongitudeLatitudeHeight( FVector( cesiumLng, cesiumLat, cesiumAlt ) );
What I’ve noticed is that when this starts, I always start at the proper long/lat, but my altitude is always under the cesium map/tile. I had to set the altitude all the way up to 26.5 in order for it to look like it’s sitting at ground level when it starts.
So, my question is, am I using the wrong function to set the cesium geo reference to this new location? And if so, what is a better, more accurate option and code base?
This actually has me wondering something… The values that I get out of this file are in meters. What is Cesium working with? Is the altitude value in Unreal units or something else?