【发布时间】:2018-06-05 06:10:02
【问题描述】:
【问题讨论】:
【问题讨论】:
我有时也想知道这一点..
所以我决定这次跳下兔子洞(在我下洞的时候写这篇文章)。
这是我发现的。
所以,在我看来,OBJLoader2 是一个性能更高的 OBJ 文件加载器。查看主要提交者的 github 页面会发现一个专门用于 OBJLoader2 类的存储库。
在作者github repository here 中有关于 OBJLoader2 类的文档@
【讨论】:
找到一些interesting comparisons by the creator here:
╔════════════════════════════════════╦═══════════╦════════════╗
║ Feature ║ OBJLoader ║ OBJLoader2 ║
╠════════════════════════════════════╬═══════════╬════════════╣
║Handle all face types ║ x ║ x ║
║Support for points and lines ║ x ║ x ║
║Negative face indices ║ x ║ x ║
║Support Ngons ║ x ║ x ║
║Flat/Smooth Multi-Materials ║ ║ x ║
║Indexed Rendering ║ ║ x ║
║Handle Face-Type change inside group║ ║ x ║
║Deactivate console logging ║ ║ x ║
║Load MTLs via MTLLoader if desired ║ ║ x ║
╚════════════════════════════════════╩═══════════╩════════════╝
【讨论】:
目前,主要区别在于 OBJLoader2 支持 Web Worker 进行异步加载。它为用户提供了syn和asyn之间的选择。
【讨论】: