在使用UE5.3.2的Cusium For Unreal插件时,使用瓦片高程数据并获取某个位置的最高精度的地形高度数据
English translation:
How to obtain the highest-precision terrain height for a tile when using tile elevation data
When using the Cusium For Unreal plugin for UE5.3.2, how to use tile elevation data and obtain the highest-precision terrain height for a specific location?
You can do that using the SampleHeightMostDetailed Blueprint function.
我将摄像机移动到目标位置后,SampleHeightMostDetailed函数的返回值和当前摄像机高度值相差很大,函数返回值为-0.213,摄像机高度值为-280534
English translation:
After I move the camera to the target position, the return value of the SampleHeightMostDetailed function is very different from the current camera height value. The function return value is -0.213, and the camera height value is -280534
How are you moving the camera? A very common error is to flip longitude and latitude. Longitude is first, latitude is second. You’ll also need to convert the longitude/latitude/height to Unreal coordinates. How are you doing that?
我忘记使用Transform Longitude Latitude Height Position To Unreal函数转换了,但是转换以后再传入SampleHeightMostDetailed函数后没有给我返回任何数据,我检查了转换后的Vector数值和我使用UE的LineTrace函数返回的命中位置是基本一致的
English translation:
I forgot to use the Transform Longitude Latitude Height Position To Unreal function to convert, but after the conversion, I passed it to the SampleHeightMostDetailed function and it did not return any data to me. I checked that the converted Vector value is basically the same as the hit position returned by the LineTrace function of UE
What I mean is, you need to convert the output of SampleHeightMostDetailed to Unreal coordinates. The function expects the input to be expressed in longitude/latitude/height.
ok, i’ll try again