cesium-procedural-foliage icon indicating copy to clipboard operation
cesium-procedural-foliage copied to clipboard

Missing or moved members in Cesium for Unreal Plugin

Open everynameisunavalable opened this issue 1 year ago • 3 comments

This is an old repo and I don't expect it to change. I wanted to leave a note here for anyone who might be trying this with the newest unreal engine (5+) and cesium for unreal plugin.

You will find that the transform member functions no longer exist in the CesiumGeoreference object. They appear to have been moved to a Geotransforms object. This is to include the TransformLongitudeLatitudeHeightToUe() member.

I have yet to determine if the reference to the ACesiumGeoreference in the FoliageCaptureActor can just be replaced with a reference to AGeotransforms object.

I have also yet to determine what replaces InaccurateComputeEastNorthUpToUnreal(). Unless someone else responds with an answer, I'll try to remember to post if I find an answer.

everynameisunavalable avatar Jan 24 '24 12:01 everynameisunavalable

Addendum to the comments. No, you cannot just replace Georeference with an instance of Geotransforms. The apparent renamed members in Geotransforms also take a different number of parameters.

everynameisunavalable avatar Jan 24 '24 13:01 everynameisunavalable

I have it compiling with the new Unreal 5.3.2 and the newest Cesium for Unreal Plugin (5.3.0).

The short answer is you need to add a few #includes now and a number of transform functions have changed names BUT still exist in GeoReference.

I have only gotten it to build and haven't tried it out yet, though given it is just some includes and member function name changes, I have high expectation it should work.

everynameisunavalable avatar Feb 04 '24 15:02 everynameisunavalable

hey can you list the includes you used thx

ElianDochev avatar May 03 '24 20:05 ElianDochev