Changeset 8344 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer
- Timestamp:
- Jun 13, 2006, 4:42:11 PM (19 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/Makefile.am
r8343 r8344 5 5 6 6 libORXimporter_a_SOURCES = model.cc \ 7 md_model_structure.cc \ 7 8 vertex_array_model.cc \ 8 9 grid.cc \ … … 26 27 md3/md3_animation.cc \ 27 28 md3/md3_bone_frame.cc \ 28 md3/md3_mesh.cc 29 md3/md3_mesh.cc \ 30 md3/md3_data.cc 29 31 30 32 … … 35 37 noinst_HEADERS = \ 36 38 model.h \ 39 md_model_structure.cc \ 37 40 tc.h \ 38 41 vertex_array_model.h \ … … 59 62 md3/md3_animation.h \ 60 63 md3/md3_bone_frame.h \ 61 md3/md3_mesh.h 64 md3/md3_mesh.h \ 65 md3/md3_data.h 62 66 -
branches/bsp_model/src/lib/graphics/importer/md2Model.h
r7221 r8344 23 23 #include "model.h" 24 24 #include "material.h" 25 26 #include "md_model_structure.h" 25 27 26 28 //! These are the needed defines for the max values when loading .MD2 files … … 64 66 int offsetEnd; //!< The end of the file offset 65 67 }; 66 67 68 //! compressed vertex data: char insetead of float, the value will be expanded by the scale value. only for loading69 typedef struct70 {71 unsigned char v[3]; //!< the vector of the vertex72 unsigned char lightNormalIndex; //!< the index of the light normal73 } sVertex;74 75 76 //! compressed texture offset data: coords scaled by the texture size. Only for loading77 typedef struct78 {79 short s; //!< the s,t coordinates of a texture80 short t; //!< the s,t coordinates of a texture81 } sTexCoor;82 83 84 //! holds tha informations about a md2 frame85 typedef struct86 {87 sVec3D scale; //!< scales values of the model88 sVec3D translate; //!< translates the model89 char name[16]; //!< frame name: something like "run32"90 sVertex pVertices[1]; //!< first vertex of thes frame91 } sFrame;92 93 94 //! holds the information about a triangle95 typedef struct96 {97 unsigned short indexToVertices[3]; //!< index to the verteces of the triangle98 unsigned short indexToTexCoor[3]; //!< index to the texture coordinates99 } sTriangle;100 101 102 103 //! the command list of the md2 model, very md2 specific104 typedef struct105 {106 float s; //!< texture coordinate 1107 float t; //!< texture coordinate 2108 int vertexIndex; //!< index of the vertex in the vertex list109 } glCommandVertex;110 111 112 //! a md2 animation definition113 typedef struct114 {115 int firstFrame; //!< first frame of the animation116 int lastFrame; //!< last frame of the animation117 int fps; //!< speed: number of frames per second118 int bStoppable; //!< 1 if the animation is stoppable 0 else119 } sAnim;120 121 122 //! animation state definition123 typedef struct124 {125 int startFrame; //!< the start frame of an animation126 int endFrame; //!< last frame of the animation127 int fps; //!< fps of the animaion (speed)128 129 float localTime; //!< the local time130 float lastTime; //!< last time stamp131 float interpolationState; //!< the state of the animation [0..1]132 133 int type; //!< animation type134 135 int currentFrame; //!< the current frame136 int nextFrame; //!< the next frame in the list137 int numPlays; //!< the number of times, this has been played in series138 139 int animPlaybackMode; //!< the playback mode140 } sAnimState;141 68 142 69
Note: See TracChangeset
for help on using the changeset viewer.