«gestures» 태그된 질문

1
gluLookAt는 어떻게 작동합니까?
내 이해에서 gluLookAt( eye_x, eye_y, eye_z, center_x, center_y, center_z, up_x, up_y, up_z ); 다음과 같습니다. glRotatef(B, 0.0, 0.0, 1.0); glRotatef(A, wx, wy, wz); glTranslatef(-eye_x, -eye_y, -eye_z); 그러나 ModelView행렬을 인쇄 할 때 호출이 glTranslatef()제대로 작동하지 않는 것 같습니다. 다음은 코드 스 니펫입니다. #include <stdlib.h> #include <stdio.h> #include <GL/glut.h> #include <iomanip> #include …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.