MD2 file format
(Quake 2′s models)
Written by David Henry, 19th December of 2004
(本文由头发抽筋翻译,转载请保留原作者的链接版权信息和本文的连接)
http://tfc.duke.free.fr/coding/md2-specs-en.html 原文地址
http://codeand.me/archives/133 本文地址
Introduction
介绍
The MD2 model file format was introduced by id Software when releasing Quake 2 in November 1997. It’s a file format quite simple to use and understand. MD2 models’ characteristics are these:
MD2模型文件格式是在id software 于1997年11月发布Quake 2时推广出来的。它一个使用简单和易于理解的文件格式。MD2模型的特征包括如下这些:
· Model’s geometric data (triangles);
模型的几何数据(三角形带);
· Frame-by-frame animations;
逐帧的动画;
· Structured data for drawing the model using GL_TRIANGLE_FAN and GL_TRIANGLE_STRIP primitives (called “OpenGL commands”).
为绘制模型组织的数据是用GL_TRIANGLE_FAN 和 GL_TRIANGLE_STRIP图元组成的。
Model’s texture is in a separate file. One MD2 model can have only one texture at the same time.
模型的纹理是隔离出来的,不包含在MD2文件内部。一个MD2模型在同一个时刻只能有一种纹理。
MD2 model file’s extension is “md2”. A MD2 file is a binary file divided in two part: the header dans the data. The header contains all information needed to use and manipulate the data.
MD2模型文件的扩展名是“.md2″. 一个MD2文件是一个二进制文件,它分成两个部分:头部(the header)和 数据(data)部分。头部(the header)包含了全部需要使用和操作的数据。
