摘要
针对基于多窗口和多视口的传统后视镜仿真方法的不足,为了实现离屏渲染,提高后视镜仿真部件的绘制效率,应用OpenGL的P-Buffer技术,先对虚拟场景中的三维物体进行视图、模型、透视等一系列变换,在P-Buffer中完成后视镜场景的绘制并生成二维图像,然后将其作为动态纹理再映射到后视镜模型上.该方法不仅对后视镜的位置和形状没有任何限制,而且减少了系统中各部件之间的通信量,提高了场景刷新速度,对CPU的占用也没有过多增加.
For the deficiencies of the traditional rearview mirror simulation methods based on multi-windows and multi-views, the P-Buffer technique of OpenGL was adopted to realize the off-screen rendering and improve the protracting efficiency of the rearview mirror simulation part. A series of transformation such as view, model and perspective was performed for three-dimensional objects in the virtual scene. The protraction of the rearview mirror scene was finished in the P-Buffer, and the two-dimensional image was generated. Then, the two-dimensional image was mapped to the rearview mirror model as the dynamic texture. The present method has no limitation to the position and shape of rearview mirror, reduces the communication among every part of the system, improves the scene refreshing speed and exhibits no much additive use for CPU.
出处
《沈阳工业大学学报》
EI
CAS
2009年第2期221-224,229,共5页
Journal of Shenyang University of Technology
基金
辽宁省教育厅A类攻关计划资助项目(2004D094)
关键词
后视镜
像素缓存
纹理映射
驾驶仿真系统
帧缓存
rearview mirror
P-Buffer
texture mapping
driving simulation system
frame buffer