OBJFileLoader icon indicating copy to clipboard operation
OBJFileLoader copied to clipboard

Coordinate system problem

Open on-y137 opened this issue 4 years ago • 0 comments

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]

on-y137 avatar Jan 26 '21 01:01 on-y137