摘要
研究基于OpenGL图形库的3D编程技术在Visual C++6.0 MFC单文档环境中仿真3D天空,其核心技术是利用球型方程、平面方程、三角函数等几何原理建立各种3D天空模型,运用分形插值算法、纹理映射技术映射具有真实感的天空。实践表明,该方法可以仿真出理想的动态3D天空,渲染速度快,真实感强,并有一定交互能力。
This article studies 3D programming techniques based on OpenGL's graphics library in VC+ + 6.0 MFC single text environment to simulate sky in 3D scene. The Key techniques are using sphere equation,plane equation, trigonometric function and so on to generate the sky model, using fractal algorithm and texture mapping to simulate the real sky. Practice shows that this method can simulate real 3D sky,and it can render in short times,have idea effect,and have interactive abilities.
出处
《现代电子技术》
2007年第24期82-84,共3页
Modern Electronics Technique