GLUPERSPECTIVE(3G) | GLUPERSPECTIVE(3G) |
̾??¶
gluPerspective - Ʃ???ͱƹ????????ꤹ??
????¶
void gluPerspective( GLdouble fovy,
GLdouble aspect, GLdouble zNear, GLdouble zFar )
??????¶
????¶
gluPerspective ?ϡ??????ѿ???(viewing frustum)??????ɺ?ɸ?? ???Ф??ƻ??ꤹ?롣 means ????Ū?ˤϡ?gluPerspective ?ǻ??ꤹ?륢???ڥ??????ϡ? ???????б??????ӥ塼?ݡ??ȤΥ????ڥ???????Ʊ???ˤʤ??٤??Ǥ??롣 ?㤨?? "aspect" ~=~ 2.0 ?Τ褦???????????Ƥ??????硢 ???????????????ϼ??Τ褦?ˤʤ?:
????¶
?ǥץ??Хåե??????٤ϡ?zNear ?????? zFar ?˻??ꤷ?? ?ͤαƶ????????롣 zNear ???Ф??? zFar ????Ψ???礭???ۤɡ? ?ߤ??˶ᤤ???̤??ǥץ??Хåե??????̤????ݤθ?Ψ?ϰ????ʤäƤ????? ?⤷
?ʤ??С? bits of depth buffer precision are lost. ?ǥץ??Хåե??????٤Ϥ??????? ?ӥåȼ??????롣 approaches infinity as zNear approaches 0, zNear ?? 0 ?˶??դ??Ƥ????? ??̵?????˶??դ??Ƥ??????ᡢ zNear ?? 0 ?????ꤷ?ƤϤʤ??ʤ???
??Ϣ????¶
glFrustum, glLoadIdentity, glMultMatrix, gluOrtho2D