使用開放街圖於混合實境展示應用 - 黃敏郎

歡迎來到 https://hackmd.io/c/COSCUP2018 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

請從這裡開始

What is MR

  • 虛擬實境 Virtual Reality , VR
  • 擴增實徑 Augmented Reality , AR
  • 混合實境 Mixed Reality , MR

虛擬物件與真實環境融合

  • Camera 方位角、俯仰角(陀螺儀)
  • GPS
  • OSM XML
  • Gyroscope

OSM XML

  • nodes 點
  • ways 線段
  • relations 關係

OSM XML Example

  • CRS : WGS84 / ESPG 4326

  • node

    • 建議不同屬性有不同 Tag 以方便開發
  • ways

  • relation

Parsing OSM XML by Sloan Kelly

Unity

Why use

  • 一次開發跨平台發布
  • 支援 VR AR
  • 豐富第三方支援

OSM data -> Unity

  • Mercator Translation
  • Axis Translation

座標投影 (球面 -> 平面)

  • EPSG 4326
  • EPSG 3857

Unity 中使用 OSM Mercator projection

Axis Translation of Geospartial Data

map(x,y) -> (y,z)

Map -> Unity

  • Mercator Translation
  • Axis Translation
  • Control Main Camera in unity using Gryoscope
  • Camera Render Depth

Control Main Camera in unity using Gryoscope

Camera Render Depth

  • Camera , 內容 , Render Depth
    • UICamera , APP 界面 , 2
    • Main Cam , OSM Data , 1
    • BAckGround Cam , 手機影像 , 0

問題與挑戰

  • OSM 編碼格式 -> OSM 資料標準
  • 2D -> 3D(山區道路落差大)
  • 手持裝置 GPS 及陀螺儀精度
  • 同步定位技術?

挖坑

簡報檔下載位置

tags: COSCUP2018 gis
Select a repo