changed 4 years ago
Published Linked with GitHub

TDAL 模型使用示範


一、glb/glTF 簡介


1-1 什麼是 glb/glTF


glTF 全名為 GL Transmission Format,
是由 Khronos 所推出的新 3D 模型儲存格式,
以容易讀取與解析的 JSON 格式作為主體,
希望能讓開發者輕鬆、高效的存取 3D 模型。


glTF is the "JPEG of 3D"

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 →


glTF 格式的三種儲存形式

  • gltf + .bin + texture
  • gltf only
  • glb

Note:glTF 格式實際上有三種儲存形式,分別是.gltf + .bin + texture
由 JSON 格式的 .gltf、二進位格式的 .bin 與紋理圖片 texture 組合而成,
並在 .gltf 裡使用 url 去指向 .bin & texture。
.gltf only
將全部資訊都儲存在 .gltf 中,
原本 .bin 與 texture 的部分會轉成 base64 存放於 .gltf。
.glb
將全部資訊轉換成二進位格式儲存在 .glb。


選用 glTF 的理由

  • 開放原始碼
  • JSON 描述式
  • 支援 PBR 材質規範
  • 支援動態物件
  • 生態系統完整


glTF 生態系統


支援 glTF 格式的企業


應用範圍




End

Select a repo