简体   繁体   English

如何使用 Autodesk forge 的 AR 工具包在 Unity3d 上加载大型模型(50mb 以上)

[英]How to load large models(Above 50mb) on Unity3d using AR toolkit from autodesk forge

Currently, I'm trying to load an IFC file using an AR toolkit from Autodesk forge.目前,我正在尝试使用 Autodesk forge 的 AR 工具包加载 IFC 文件。 Small files like 10-20MB are loading without any issues, But large files like Above 50 MB are not loading.像 10-20MB 这样的小文件正在加载,没有任何问题,但是像 50 MB 以上的大文件没有加载。 In the console, it is showing that it's loaded but in the scene, it's not loaded.在控制台中,它显示它已加载,但在场景中,它未加载。

For larger scenes, I recommend switching to a glTF pipeline, as a way of getting BIM models from Forge into Unity.对于更大的场景,我建议切换到 glTF 管道,作为将 BIM 模型从 Forge 导入 Unity 的一种方式。

  1. First, use https://github.com/petrbroz/forge-convert-utils command line tool, to pull your SVF file, and convert it a glTF file.首先,使用https://github.com/petrbroz/forge-convert-utils命令行工具,拉取您的 SVF 文件,并将其转换为 glTF 文件。

  2. Then, use glTFast to load that glTF file into Unity.然后,使用 glTFast 将该 glTF 文件加载到 Unity 中。 https://github.com/atteneder/glTFast https://github.com/atteneder/glTFast

  3. For extreme performance, use 'gltfpack' to compress and optimize your glTF's (2 draw calls, 6:1 compression ratio )... using gltf's new ext_MeshOpt extension.要获得极致性能,请使用“gltfpack”来压缩和优化您的 glTF(2 个绘制调用,6:1 压缩比)...使用 gltf 的新 ext_MeshOpt 扩展。 https://github.com/zeux/meshoptimizer/blob/master/gltf/README.md https://github.com/zeux/meshoptimizer/blob/master/gltf/README.md

I've seen pretty amazing results.我已经看到了非常惊人的结果。 (in the order of 40Million triangle scene's, with a simple progressive rendering technique) (以 4000 万个三角形场景的顺序,使用简单的渐进式渲染技术)

ext_MeshOpt reference: https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md ext_MeshOpt 参考: https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM