在汽车驾驶仿真系统设计问题的研究中,针对汽车驾驶仿真系统的视景显示与驾驶操纵滞后脱节的现象,提出一种采用纹理映射技术的后视镜实现方法。由车辆运动模型得到车辆在任意时刻下的位置坐标。采用四边形条连接各个顶点形成后视镜面。根据后视镜与车身相对位置的不变性,通过矩阵变换和坐标变换计算构成后视镜面的顶点数组。定义一个指向后视镜的指针并封装为R函数,通过实时替换纹理提高了渲染场景的绘制效率和仿真系统的实时性。采用Vega Prime建立汽车模拟驾驶视景仿真并进行虚拟驾驶试验。模拟驾驶仪的仿真结果表明,后视镜具有良好的视觉效果,并能达到视景仿真的要求。
Due to the phenomenon of delay and lag between driving manipulation and scene display ior car driving simulation system, an approach of rear mirror realization based on dynamic texture mapping is proposed. The car po- sition coordinate at given time is calculated by vehicle motion model. Quadrangular strip is chosen to join each vertex together to form the mirror geometrical surface. According to the relative position invariance between the mirror and vehicle body, matrix and coordinate transformation are used to calculate vertex arrays to form the surface of the mir- ror. A pointer to represent the mirror is defined, which is integrated as R function. Textures are real - time replaced, which improves the drawing efficiency of the system and scene rendering. Visual simulation of car driving is set up with Vega Prime and virtual driving test is conducted. The simulation results on driving simulation device show that the mirror has good visual effect and that is able to meet the requirement of visual simulation.