摘要
该文提出一种基于索引的三维引擎数据结构的内核。这种数据结构以模型为构造单元,能快速地建立三维顶点坐标数组,并分别将同一模型单元的顶点坐标组织成适合OpenGL高速渲染的三角形列表或三角形条(TriangleStrips)。该数据结构易于扩展,可以容纳纹理坐标、法向量和模型变换矩阵,可以添加、变换和删除模型,具有很大的灵活性;同时,它在容纳海量数据时,也能够提高OpenGL渲染速度。
This article proposes a data structure of a3D engine based on rapid indices.Taking a model for a construction unit,this data structure can construct a3D vertex coordinates array rapidly and arrange those vertices in sequence of triangle strips or triangle fans that can be rendered rapidly by OpenGL.This data structure is easy to extend.It can hold texture coordinates,normal coordinates of vertices and model matrix,and models can be added to it,deleted from it or transform by model matrix,so it is flexible.This data structure also improves the render speed of OpenGL when it holds a large amount of data.
出处
《计算机工程与应用》
CSCD
北大核心
2004年第13期119-122,共4页
Computer Engineering and Applications
基金
中国科学院知识创新工程领域前沿项目(编号:CXNIGLAS-A02-012)资助