《高效学习OpenGL》之 投影变换 glFrustum(),gluPerspective(),glOrtho(),gluOrtho2D()
来源:互联网 发布:手机哼歌识曲的软件 编辑:程序博客网 时间:2024/05/01 06:55
投影变换的最终目的是定义一个视景体,视景体有两个用途,首先,视景体是决定一个物体是如何映射到屏幕的,
其次,视景体定义了哪些物体(或物体的一部分)被裁剪到最终的图像之外
1.透视投影
void glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
void APIENTRY gluPerspective ( GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar); //fovy:角度 aspect:纵横比 zNear:观测点与近侧裁剪截面的距离 zFar:与远侧裁剪截面的距离 gluPerspective(60.0, (GLfloat) w/(GLfloat) h, 1.0, 20.0);
2.正射投影
void APIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
void APIENTRY gluOrtho2D ( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top);
0 0
- 《高效学习OpenGL》之 投影变换 glFrustum(),gluPerspective(),glOrtho(),gluOrtho2D()
- glOrtho,gluOrtho2D,glFrustum,glViewport解析
- glFrustum(),glOrtho(),gluPerspective()的实例
- glOrtho,gluOrtho2D,glFrustum,glViewport解释说明
- glOrtho,glFrustum,gluPerspective的理解,很清楚
- OpenGL 入门纪录--2 .透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法
- OpenGL 入门纪录--透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法
- OpenGL中投影函数glOrtho()、glFrustum()以及gluPerspective()以及函数的用法
- OpenGL ES之glOrtho和glFrustum的区别
- OpenGl学习之gluPerspective
- opengl 投影 glOrtho gluPerspective gluLookAt
- gluOrtho2D glFrustum
- 透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法.
- 透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法
- 透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法.
- 透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法.
- 透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法.
- 透视函数glFrustum(), gluPerspective()函数用法和glOrtho()函数用法.
- 嵌入式Linux开发系列- CDT远程调
- Java学习第一期
- 学习笔记 (Linux下subversion服务端多版本库配置) [第五课-可忽略]
- 简明Python教程
- Ext js技术之不能关闭的窗口
- 《高效学习OpenGL》之 投影变换 glFrustum(),gluPerspective(),glOrtho(),gluOrtho2D()
- MapReduce高级编程——自定义InputFormat
- 服务好“最后一公里”,高效CDN架构经验
- mini210嵌入式环境搭建
- 绝对值排序
- Java面向对象——异常
- 发展发放萨公司公司打个电话的恢复经济国家概况
- Android Notification详解
- 致终将逝去的Windows XP