天天看點

GLtf讀寫庫的初步研究1.背景2.簡要總結3.小記

1.背景

最近需要寫gltf,預研了下相關的庫,不得不說還是比較多的,畢竟GLtf的目标:“3D領域的JPEG”已經被行業比較廣泛的接受和參與建設了;

2.簡要總結

1、 KhronosGroup/glTF-CSharp-Loader

https://github.com/KhronosGroup/glTF-CSharp-Loader

備注:竟然是根據gltf specification schema檔案生成代碼....

和我們的XX需求場景一樣

2、微軟的glTF-SDK

https://github.com/Microsoft/glTF-SDK

https://blog.csdn.net/niuge8905/article/details/108521916

備注:

可能編譯不過的問題:error C2440: '': cannot convert from 'initializer list' to 'Microsoft::glTF::rapidjson::SchemaDocument'

無法從“initializer list”轉換為“Microsoft::glTF::rapidjson::SchemaDocument”

解決辦法:https://github.com/microsoft/glTF-SDK/issues/71

3、BIM輕量化之路(二)-revit導出GLTF

https://blog.csdn.net/nihaozhe/article/details/108752926

4、利用gltfloader.dll或者SharpGLTF生成gltf、glb資料

https://blog.csdn.net/niuge8905/article/details/105969006

5、官網:https://www.khronos.org/gltf/

備注:

在[glTF Tools Tools, applications and libraries for working with glTF can be found in the glTF Project Explorer.]中可以找到很多實用項目

http://github.khronos.org/glTF-Project-Explorer/

比如:https://github.com/KhronosGroup/glTF-CSharp-Loader

https://github.com/KhronosGroup/glTF/

https://github.com/Microsoft/glTF-SDK

https://github.com/Lugdunum3D/glTF2-loader/tree/dev

https://github.com/CesiumGS/obj2gltf

3.小記

後續會使用其中的部分庫,會繼續總結。

繼續閱讀