文件名称:opengl_qt_linghting_blending
介绍说明--下载内容均来自于网络,请自行研究使用
本次实验主要是学习下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
开发环境: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
opengl_qt_nehe_06
.................\Makefile
.................\Makefile.Debug
.................\Makefile.Release
.................\cat.jpg
.................\crate.bmp
.................\debug
.................\.....\glwidget.obj
.................\.....\main.obj
.................\.....\moc_glwidget.cpp
.................\.....\moc_glwidget.obj
.................\.....\opengl_qt_nehe_06.exe
.................\.....\opengl_qt_nehe_06.ilk
.................\.....\opengl_qt_nehe_06.intermediate.manifest
.................\.....\opengl_qt_nehe_06.pdb
.................\glwidget.cpp
.................\glwidget.h
.................\glwidget.ui
.................\main.cpp
.................\opengl_qt_nehe_06.pro
.................\opengl_qt_nehe_06.pro.user
.................\release
.................\ui_glwidget.h
.................\vc100.pdb
opengl_qt_nehe_06
.................\Makefile
.................\Makefile.Debug
.................\Makefile.Release
.................\cat.jpg
.................\crate.bmp
.................\debug
.................\.....\glwidget.obj
.................\.....\main.obj
.................\.....\moc_glwidget.cpp
.................\.....\moc_glwidget.obj
.................\.....\opengl_qt_nehe_06.exe
.................\.....\opengl_qt_nehe_06.ilk
.................\.....\opengl_qt_nehe_06.intermediate.manifest
.................\.....\opengl_qt_nehe_06.pdb
.................\glwidget.cpp
.................\glwidget.h
.................\glwidget.ui
.................\main.cpp
.................\opengl_qt_nehe_06.pro
.................\opengl_qt_nehe_06.pro.user
.................\release
.................\ui_glwidget.h
.................\vc100.pdb