Hi,
i just have done a little fix in Broomstick OBJParser. it allowed me
to load a OBJ that was not working at all.
Index: src/away3d/loading/parsers/OBJParser.as
===================================================================
--- src/away3d/loading/parsers/OBJParser.as (revision 3126)
+++ src/away3d/loading/parsers/OBJParser.as (working copy)
@@ -344,7 +344,7 @@
vertexNormal =
_vertexNormals[face.normalIndices[vertexIndex]-1];
subGeometry.vertexNormalData.push(vertexNormal.x,
vertexNormal.y, vertexNormal.z);
}
- if (face.uvIndices.length > 0) {
+ if (face.uvIndices.length > vertexIndex) {
uv =
_uvs[face.uvIndices[vertexIndex]-1];
subGeometry.UVData.push(uv.u, uv.v);
}
best regards :)