错误的three.js loadOBJMTL装载机?装载机、错误、js、three

由网友(南河之梦)分享简介:似乎有在OBJMTL装载机three.js的错误。我有一个OBJ / MTL / JPEG一套是给一些负载错误的文件。他们是这样的:There appears to be a bug in the OBJMTL loader for three.js. I have an obj/mtl/jpeg set of f...

似乎有在OBJMTL装载机three.js的错误。我有一个OBJ / MTL / JPEG一套是给一些负载错误的文件。他们是这样的:

There appears to be a bug in the OBJMTL loader for three.js. I have an obj/mtl/jpeg set of files that are giving some load errors. They look like this:

THREE.OBJMTLLoader:未处理的行4033/5601/6659OBJMTLLoader.js:347

"THREE.OBJMTLLoader: Unhandled line 4033/5601/6659" OBJMTLLoader.js:347

该问题的行似乎有一个延续。它结束了反斜线和4033/5601/6659是下一行(这是装载机似乎有什么要抱怨)。对此有何评论?

The offending line appears to have a continuation. It ends with a backslash and the "4033/5601/6659" is on the next line (which is what the loader appears to be complaining about). Any comment on this?

推荐答案

OBJMTLLoader 不处理续行。您必须手动删除反斜杠并连接所有的线路。

OBJMTLLoader does not handle continuation lines. You will have to manually remove the backslashes and concatenate the lines.

顺便说一下,该文件中的更长的线路时,就会发生面具有更然后三个顶点。 three.js只支持三角形面。 (three.js用于支持四边形,但该功能已被删除。)

By the way, the longer lines in the file can occur when faces have more then three vertices. three.js only supports triangular faces. (three.js used to support quads, but that feature has been removed.)

three.js r.67

three.js r.67

阅读全文

相关推荐

最新文章