OBJFileLoader
OBJFileLoader copied to clipboard
Coordinate system problem
I had a little problem with opengl lighting (this happens when swapyz = True), the problem was on the X axis since the object lighting was "inverted" on that axis. I think the problem is in line 60 and 65:
v = v[0], v[2], v[1]
When "swapyz" is true, the Y and Z axes are changed, and a new coordinate system is obtained which does not comply with the opengl right-handed system, to solve it, only the X axis must be inverted:
v = -v[0], v[2], v[1]