摘要
基于OpenGL棱镜展开的模拟实现是利用OpenGL的三维图形的旋转功能编程实现的,具有棱镜旋转、棱镜展开及棱镜参数显示等功能。棱镜旋转通过方向键可以观察到棱镜的各个方位;棱镜展开通过数字键和定时器可以动态展示每次展开的过程;棱镜参数的显示通过加载纹理来显示棱镜的口径、光轴及结构参数。通过编程模拟实现的棱镜展开过程,具有生动形象的动态图形演示效果,这可以更好地加深学生对反射棱镜成像的理解。
The simulation of the prism based on OpenGL was realized by the rotation function of the OpenGL's 3D graphics.It has the function of prism rotation, unfolding of Prism and the display of prism parameters.Prism rotation can be observed in all directions through the direction key; Unfolding of Prism can dynamically display each of the process through the digital keys and timer; the display of the prism parameters can display the diameter of D, optical axis L and structural parameters K through the loading of the texture. The simulation of the unfolding of prism's process through the Programming has a vividly dynamic graphics demonstration effect, which can better enhance students' understanding of the reflection prism imaging.
出处
《电子技术(上海)》
2015年第12期23-26,共4页
Electronic Technology
基金
曲阜师范大学科研基金项目(XJ201204)
国家自然科学基金面上项目(61374004)