Skip to content

Coordinate system problem #2

@on-y137

Description

@on-y137

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions