这两个类ObjLoader和ObjLoader2之间的主要区别是什么?
在哪种情况下我们应该使用一个或另一个?
为什么有两个班?一个比另一个更稳定或更有效吗?
当我阅读文档时,对我来说并不是很清楚.
我有时也想知道这一点.
所以我决定这次跳下兔子洞(当我走下洞时写下这篇文章).
这是我发现的.
所以,在我看来,OBJLoader2是一个更高性能的OBJ文件加载器.看一下主提交者的github页面会显示一个专门用于OBJLoader2类的存储库.
这里有作者github存储库中的OBJLoader2类的文档
???????????????????????????????????????????????????????????????
? 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 ?
???????????????????????????????????????????????????????????????
Run Code Online (Sandbox Code Playgroud)