'Perspective'에 해당되는 글 1건

  1. 2011.05.01 직교좌표계와 원근좌표계 전환하기
Programming/openGL2011. 5. 1. 11:40
Orthogonal 과 Perspective 를 오가는 방법은 blender나 3dmax에서는 참쉬운데..
openGL 에서는 어떻게 구현하나 검색을 하다보니
glOrthoglFrustm을 바꾸어 주기만 하면 간단하게 해결된다는 글을 발견!
실험을 해보았지만 depth의 문제인지 마음처럼 효과가 나타나지는 않는듯.. ㅠ.ㅠ

[링크 : http://stackoverflow.com/questions/5765309/converting-orthogonal-camera-to-perspective-opengl]
[링크 : http://www.songho.ca/opengl/gl_transform.html]

void glOrtho( GLdouble   left,  GLdouble   right,  GLdouble   bottom,  GLdouble   top,
GLdouble   nearVal,  GLdouble   farVal);
void glFrustum( GLdouble   left,  GLdouble   right,  GLdouble   bottom,  GLdouble   top,
  GLdouble   nearVal,  GLdouble   farVal); 

[링크 : http://www.opengl.org/sdk/docs/man/xhtml/glFrustum.xml 

'Programming > openGL' 카테고리의 다른 글

openGL 좌표계  (0) 2011.05.06
openGL - DoF  (2) 2011.05.03
glutReshapeWindow() 는 크기 변화가 없으면 안그려 OTL  (2) 2011.04.24
glViewport  (0) 2011.04.05
glFrustum - 절두체  (6) 2011.03.30
Posted by 구차니