??????(Viewing volume) - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

??????(Viewing volume)

Description:

/ (Viewing volume) ( ... – PowerPoint PPT presentation

Number of Views:59
Avg rating:3.0/5.0
Slides: 17
Provided by: Super392
Category:

less

Transcript and Presenter's Notes

Title: ??????(Viewing volume)


1
??/????
2
???????
  • ????????
  • ??????(Viewing volume)
  • ??????????????????(?????????)

3
?????
  • 1.????
  • glOrtho()?gluOrtho2D()???
  • ????????????????
  • ??????????????????
  • ??????????????????????

4
glOrtho ????
  • void glOrtho(GLdouble left, GLdouble right,
    GLdouble bottom, GLdouble top, GLdouble near,
    GLdouble far)
  • ??
  • (left,bottom,-near)?(right,top,-near)?????????????
    ????
  • (left,bottom,-far)?(right,top,-far)??????????????

5
glOrtho
6
(No Transcript)
7
????
  • 2.????
  • glFrustum()?gluPerspective()
  • ??????????????????,???????????????????

8
gluPerspective
  • void gluPerspective
  • (GLdouble fovy, GLdouoble aspect, GLdouble near,
    GLdouble far)
  • ??
  • fovy????, ????0??180????
  • aspect?????,(double) w/h
  • near????,??????????????????
  • far????,??????????????????
  • ??near?far????????????????????,???????

9
gluPerspective
10
gluPerspective
11
glViewport
  • glViewport(GLint x, GLint y, GLsizei width,
    GLsizei height)
  • ?????????????
  • ??
  • x,y(x,y)???????????????
  • width?height?????????
  • ???(0,0,winWidth,winHeight)
  • ??winWidth?winHeight???????????,??????????,???????
    ??(???)?

12
(x,y)
(50,50)
(x,y)
13
width?height
14
????
15
gluLookAt
  • void gluLookAt(eyex,center,Up)
  • ?????????
  • ?? ?????????????
  • ??
  • Eyex ???????
  • Center???????????
  • Up????????????
  • (0,1,0) y , (1,0,0) x ,(0,0,1) z

16
??
  • Surface rendering
  • shadows
Write a Comment
User Comments (0)
About PowerShow.com