Can you provide me the obj file that you used please.   

Fabrice

On Apr 8, 2011, at 17:59, tex <[email protected]> wrote:

> 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 :)

Reply via email to