opengl_qt_linghting_blending

所属分类:OpenGL
开发工具:C/C++
文件大小:2138KB
下载次数:204
上传日期:2012-08-25 15:17:17
上 传 者tornadomeet
说明:  本次实验主要是学习下opengl中光照的使用方法,opengl中的光照分为环境光,漫射光,镜面光,反射光4种,这里主要是学习环境光和漫射光的设置,同时对比下opengl中支持的几种纹理滤波方式的效果,另外也可以加入色彩融合效果。这次实验是将一个木箱纹理贴到一个立方体上,然后我们在空间屏幕正外方设置了一个光源,可以用键盘的L键来控制该光源的开启和关闭;用F键来旋转程序中用到的3种滤波方式,按下F键后,依次切换该3种方式;用PageUp键来使物体离观察者越来越远,相反,用PageDown来使物体离我们越来越近;使用向上光标键加快物体旋转的速度,向下光标键减小物体旋转的速度。   开发环境:windows+QtCreator2.5.1+Qt4.8.2
(The experiment is mainly the use of light in learning under opengl, opengl light into the ambient light, diffuse light, specular light, reflected light, learning environment light and diffuse light settings while contrast under opengl in support of several on the effect of texture filtering, addition can also add color fusion effect. This experiment is a wooden texture to a cube, and then we have a light source is set in space screen positive outward, L key can use the keyboard to control the opening and closing of the light source with the F key rotation procedures used three kinds of filtering the way, press the F key, followed by switching the 3 ways PageUp key to make objects farther and farther away from the observer, on the contrary, PageDown to make objects closer and closer using the accelerating the speed of rotation of the object, the up cursor key down cursor keys to reduce the speed of rotation of the objects. Development Environment: windows+QtCreator2.5.1+Qt4.8.2)

文件列表:
OpenGL_Qt学习笔记之_06(纹理滤波、光照和色彩融合).pdf (702577, 2012-08-25)
opengl_qt_nehe_06 (0, 2012-08-25)
opengl_qt_nehe_06\Makefile (7288, 2012-08-25)
opengl_qt_nehe_06\Makefile.Debug (6949, 2012-08-25)
opengl_qt_nehe_06\Makefile.Release (6972, 2012-08-25)
opengl_qt_nehe_06\cat.jpg (15644, 2012-08-25)
opengl_qt_nehe_06\crate.bmp (66614, 2004-10-06)
opengl_qt_nehe_06\debug (0, 2012-08-25)
opengl_qt_nehe_06\debug\glwidget.obj (187706, 2012-08-25)
opengl_qt_nehe_06\debug\main.obj (152930, 2012-08-25)
opengl_qt_nehe_06\debug\moc_glwidget.cpp (2404, 2012-08-25)
opengl_qt_nehe_06\debug\moc_glwidget.obj (156149, 2012-08-25)
opengl_qt_nehe_06\debug\opengl_qt_nehe_06.exe (49664, 2012-08-25)
opengl_qt_nehe_06\debug\opengl_qt_nehe_06.ilk (673944, 2012-08-25)
opengl_qt_nehe_06\debug\opengl_qt_nehe_06.intermediate.manifest (638, 2012-08-25)
opengl_qt_nehe_06\debug\opengl_qt_nehe_06.pdb (2419712, 2012-08-25)
opengl_qt_nehe_06\glwidget.cpp (9628, 2012-08-25)
opengl_qt_nehe_06\glwidget.h (792, 2012-08-25)
opengl_qt_nehe_06\glwidget.ui (447, 2012-08-24)
opengl_qt_nehe_06\main.cpp (297, 2012-08-24)
opengl_qt_nehe_06\opengl_qt_nehe_06.pro (128, 2012-08-25)
opengl_qt_nehe_06\opengl_qt_nehe_06.pro.user (20859, 2012-08-25)
opengl_qt_nehe_06\release (0, 2012-08-25)
opengl_qt_nehe_06\ui_glwidget.h (1310, 2012-08-25)
opengl_qt_nehe_06\vc100.pdb (1953792, 2012-08-25)

近期下载者

相关文件


收藏者