摘要
树木是构建虚拟场景不可或缺的元素.针对传统的树木分形生成算法耗时长,计算复杂、不适合在构建实时动态的场景中使用的缺点,提出了一种通过构建树木的枝干模型,采用递归算法和OpenGL纹理映射的方法来渲染具有真实感的三维树木,并且可以利用各种成熟的诸如光照等技术做进一步的处理以适应各种需要.同时,为了从任意角度观察模型,通过构建OpenGL摄像机类,实现了三维树木不同视角下的三维漫游.试验结果表明,所述的原理方法稳定可行,所实现的效果符合三维可视化的要求.
Trees are an indispensable element of building a virtual scene.Traditional trees fractal generation algorithm is time-consuming,the computational complexity is not suitable for use to build real-time dynamic scene shortcomings,proposing by constructing the model of the branches of trees,using the recursive algorithm and OpenGL texture mapping rendering realistic 3D trees.And use a variety of mature such as light for further processing to adapt to a variety of needs.At the same time,in order to observe the model from any angle,3D roaming is realized from the different perspectives of the three-dimensional trees by building the OpenGL camera class.The results showed that the principle of the method is stable and the requirements of 3D visualization is achieved.
出处
《辽宁师范大学学报(自然科学版)》
CAS
2012年第4期482-487,共6页
Journal of Liaoning Normal University:Natural Science Edition
关键词
三维树
静态模拟
递归
纹理映射
显示列表
three-dimensional tree
static simulation
recursive
OpenGL texture mapping
display list