当前位置:网站首页>關聯GIS:條條道路通UE5城
關聯GIS:條條道路通UE5城
2022-06-27 08:02:00 【xosg】
Part1前言
本文介紹如何使用UE5的Georeferencing插件實現UE5與GIS坐標的關聯。

Part2坐標系介紹
這裏主要涉及以下幾個坐標系,如下圖
1、地理CRS坐標系
通過經緯度和海拔來錶示
緯度 = 相對於赤道的仰角距離,以度為單比特
經度 = 相對於本初子午線(格林威治)的方比特角,以度為單比特
海拔=相對於參考橢圓體的高度,以米為單比特
角度錶示為十進制度,即DMS(度分秒)。2、地心CRS坐標系 地心CRS使用笛卡爾坐標定義行星上任意點的比特置,其中原點比特於行星中心。
原點 = 地球中心 X 軸指向赤道/本初子午線(格林威治)交點。Z 軸與地球旋轉軸對齊。Y 軸與前兩個軸正交。
3、東北天坐標系
如上圖中的環境是綠色正方形
這裏約定 X軸 = Easting(東) = UE的X軸 Y軸 = Northing(北)= UE的Y軸取反 Z軸 = Up(天)= UE的Z軸

Part3建模要求
我們用3dmax建BIM模型的時候,需要確保需要保證模型X軸指向東、Y軸指向正北、Z軸指向天。之後再通過DataSmith導入UE5,此時模型才能與GIS坐標正確的關聯。
Part4插件使用
1創建GeoReferencingSystem
在關卡創建一個GeoReferencingSystem對象,路徑如下圖所示,如果找不到,請設置Show Engine Content
之後選擇Planet Shape為橢球形狀,即Round Planet。坐標系標准采用默認即可。
接下來,設置建模原點的經緯度和大地高。這裏需要取消上面Origin Location in Projected CRS才可以輸入。我們不采用投影坐標系的坐標。
2經緯度轉UE坐標
通過GeoGraphic to Engin 可以實現將經緯度轉成UE的坐標。藍圖使用方法如下:

其他坐標系的轉換,可以參考下圖實現。

3狀態欄工具
在/GeoReferencing/UI/UMG_GeoStatusBar中的示例 UMG控件在添加到視口之後,將顯示在各種CRS中的當前視圖比特置:投影、地理和ECEF。添加到視口方法如下:實時顯示效果如下:
4坐標檢查器輔助控件
有一個特殊的編輯器輔助控件比特於/GeoReferencing/UtilityWidgets/EUW_CoordinatesInspector 中。如果在編輯器內運行該控件,它將顯示一個面板,可以在其中控制視圖以及鼠標下方點的地理配准坐標。我們將這個對象放置到UE的場景中,即可知道當前場景的坐標信息。需要運行之後,才會顯示,效果如下:
Part5總結
本章主要介紹了如何使用Georeferencing插件實現經緯度轉成UE的坐標的步驟。
5關於IN VETA
IN VETA是一支由建模、美術、UE5組成的年輕團隊。

我們致力於三維數字孿生技術分享與研發。
歡迎與各界朋友一起探討技術與商務合作,一起推動數字孿生的發展。
边栏推荐
- Refer to | the computer cannot access the Internet after the hotspot is turned on in win11
- Speech signal processing - concept (II): amplitude spectrum (STFT spectrum), Mel spectrum [the deep learning of speech mainly uses amplitude spectrum and Mel spectrum] [extracted with librosa or torch
- Import and export database related tables from the win command line
- [11. two dimensional difference]
- Mobile security tools -jad
- L'introduction en bourse de Wild Wind Pharmaceutical a pris fin: Yu pinzeng, qui avait l'intention de lever 540 millions de RMB, a effectué un investissement P2P.
- LVGL GUI GUIDER移植代码到STM32
- 2022 love analysis · panoramic report of it operation and maintenance manufacturers
- Basic knowledge | JS Foundation
- JS find the number of all daffodils
猜你喜欢
2022 love analysis · panoramic report of it operation and maintenance manufacturers
js求所有水仙花数
05 观察者(Observer)模式
盲测调查显示女码农比男码农更优秀
JS output shape
[10. difference]
js中如何查看程序运行时间(计时器)
参考 | Win11 开启热点之后电脑不能上网
LVGL GUI GUIDER移植代码到STM32
[compilation principles] review outline of compilation principles of Shandong University
随机推荐
Cookie encryption 7 fidder analysis phase
Blind survey shows that female code farmers are better than male code farmers
lvgl使用demo及说明2
索引+sql练习优化
Construction of defense system for attack and defense exercises part II common strategies for responding to attacks
【批处理DOS-CMD命令-汇总和小结】-将文件夹映射成虚拟磁盘——subst
【每日一练】产品卡片动画效果的实现
闭包问题
ACM课程学期总结
基础知识 | js基础
移动安全工具-jad
L'introduction en bourse de Wild Wind Pharmaceutical a pris fin: Yu pinzeng, qui avait l'intention de lever 540 millions de RMB, a effectué un investissement P2P.
【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办
大厂工作十年,年薪40万突然被裁员,公司想抛弃你,一分情面都不会留
[batch dos-cmd command - summary and summary] - map folder to virtual disk - subst
Multi table associated query -- 07 -- hash join
Testing network connectivity with the blackbox exporter
How can I import data from Oracle into fastdfs?
No matter how good LCD and OLED display technologies are, they cannot replace this ancient display nixie tube
[paper reading] internally semi supervised methods