Pcjoko / saitoobjloader

Automatically exported from code.google.com/p/saitoobjloader
0 stars 0 forks source link

Texture Coordinates Bug Found #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load an obj file with texture coordinates

What is the expected output? What do you see instead?

Texture coordinates are equal to the vertex coordinates.

What version of the product are you using? On what operating system?

020

Please provide any additional information below.

Please replace the following 3 lines in OBJModel.java in line 177

PVector[] vs = vertices.toArray(new PVector[vertices.size()]);
PVector[] tVs = vertices.toArray(new PVector[textureVertices.size()]);
PVector[] nVs = vertices.toArray(new PVector[normalVertices.size()]);

with the lines

PVector[] vs = vertices.toArray(new PVector[vertices.size()]);
PVector[] tVs = textureVertices.toArray(new PVector[textureVertices.size()]);
PVector[] nVs = normalVertices.toArray(new PVector[normalVertices.size()]);

to fix the bug. Thanks for your work.

Original issue reported on code.google.com by heidr...@enervision.de on 17 Aug 2010 at 5:04

GoogleCodeExporter commented 8 years ago
Only in opengl mode of coures... but otherwise tiling is not available. A 
warning concerning the missing tiling should be noted somewhere in the readme 
or on project website.

Original comment by heidr...@enervision.de on 17 Aug 2010 at 5:15

GoogleCodeExporter commented 8 years ago
Thanks for the report. I'm uploading the fix now

Original comment by mattdit...@gmail.com on 17 Aug 2010 at 9:42