文件名称:OpenGL-three-teapot-three-light
- 所属分类:
- OpenGL
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 68kb
- 下载次数:
- 0次
- 提 供 者:
- 雷*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 绘制带有光照效果的场景;
2. 场景包含 3 个茶壶,通过键盘 123 可以分别选中三个茶壶,然后用鼠标对每个茶壶 进行分别的旋转;
3. 使用点光源,点光源为白色,以白色的球体表示;
4. 使用 3 个不同的点光源
i. 光源 1 的坐标设置在世界坐标系中,并围绕着三个茶壶的中心进行圆周运动;
ii. 光源 2 的坐标 设置在观察坐标系,不发生变化;
iii. 光源 3 的坐标设置在茶壶 1 的物体坐标系中,当茶壶 1 被选中进行旋转时,光 源 3 要跟随茶壶 1 做相同的旋转;-he 1 draw with light effects
2 scene contains 3 teapot, through the keyboard 123 can be respectively selected three teapot, then using the mouse to rotate each teapot separately
3 using a point light source, light source is white, with white sphere representation
4 using 3 different point light source
I light source 1 coordinate setting in the world coordinate system, and around three teapot center circular motion
II light source 2 coordinate setting during the observation coordinate system, not to change
III light source 3 coordinate setting in the teapot 1 object coordinate system, when the teapot 1 was selected rotates, light source 3 to follow the teapot 1 do the same rotation
2. 场景包含 3 个茶壶,通过键盘 123 可以分别选中三个茶壶,然后用鼠标对每个茶壶 进行分别的旋转;
3. 使用点光源,点光源为白色,以白色的球体表示;
4. 使用 3 个不同的点光源
i. 光源 1 的坐标设置在世界坐标系中,并围绕着三个茶壶的中心进行圆周运动;
ii. 光源 2 的坐标 设置在观察坐标系,不发生变化;
iii. 光源 3 的坐标设置在茶壶 1 的物体坐标系中,当茶壶 1 被选中进行旋转时,光 源 3 要跟随茶壶 1 做相同的旋转;-he 1 draw with light effects
2 scene contains 3 teapot, through the keyboard 123 can be respectively selected three teapot, then using the mouse to rotate each teapot separately
3 using a point light source, light source is white, with white sphere representation
4 using 3 different point light source
I light source 1 coordinate setting in the world coordinate system, and around three teapot center circular motion
II light source 2 coordinate setting during the observation coordinate system, not to change
III light source 3 coordinate setting in the teapot 1 object coordinate system, when the teapot 1 was selected rotates, light source 3 to follow the teapot 1 do the same rotation
(系统自动生成,下载前可以参看下载内容)
下载文件列表
OpenGL三茶壶三光源(光源绕着茶壶旋转)\GLUT32.DLL
......................................\OpenGL_App\OpenGL_App.cpp
......................................\..........\OpenGL_App.vcproj
......................................\..........\OpenGL_App.vcproj.LEI-EBC55AA8CD0.Administrator.user
......................................\..........\stdafx.cpp
......................................\..........\stdafx.h
......................................\OpenGL_App.sln
......................................\OpenGL_App.suo
......................................\Teapot_Release.exe
......................................\操作说明_ReadMe.txt
......................................\OpenGL_App
OpenGL三茶壶三光源(光源绕着茶壶旋转)
......................................\OpenGL_App\OpenGL_App.cpp
......................................\..........\OpenGL_App.vcproj
......................................\..........\OpenGL_App.vcproj.LEI-EBC55AA8CD0.Administrator.user
......................................\..........\stdafx.cpp
......................................\..........\stdafx.h
......................................\OpenGL_App.sln
......................................\OpenGL_App.suo
......................................\Teapot_Release.exe
......................................\操作说明_ReadMe.txt
......................................\OpenGL_App
OpenGL三茶壶三光源(光源绕着茶壶旋转)