Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hello i read your augument.py #1

Open
JeonHyeongJunKW opened this issue Mar 24, 2021 · 0 comments
Open

hello i read your augument.py #1

JeonHyeongJunKW opened this issue Mar 24, 2021 · 0 comments

Comments

@JeonHyeongJunKW
Copy link

I'm trying to understand your code as much as possible. But there's something I don't understand. This is it.

matrix = np.identity(4)
matrix[0:3, 0:3] = rotMat
matrix[0:3, 3:4] = tvecs
newMat = np.identity(4)
newMat[1][1] = -1
newMat[2][2] = -1
matrix = np.dot(newMat, matrix)
matrix = matrix.T
glLoadMatrixf(matrix)
drawAxis(1.0)

This code is thought to form a model view matrix according to the position and orientation of the chessboard. However, I don't understand the contents of the code well from the 4th line. Also, I don't understand why the depth value was reversed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant