Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2005, 9:37:46 PM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_model: debugging the md2 file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h

    r4213 r4224  
    22    \file md2Model.h
    33    \brief Definition of an MD2 Model, a model format invented by ID Software.
    4        
    5         We are deeply thankfull for all the wunderfull things id software made for us gamers!
    6 
    7         The md2 file format is structured in a very simple way: it contains animations which are made out of
    8         frames (so called keyframes). Each frame is a complete draweable model in a specific position.
    9         A frame is a collection of vertex and its compagnions (normals, texture coordinates).
    10        
    11         A typical model has about 200 frames, the maximum frame count is fixed by MD2_MAX_FRAMES to currently
    12         512 frames. The maximal vetices count is set to 2048 verteces, not enough?
    13         You just have to change the MD2_MAX_* values if it doesn't fit your purposes...
    14 
    15         Surface Culling is fully implemented in md2 models: quake2 uses front face culling.
     4   
     5    We are deeply thankfull for all the wunderfull things id software made for us gamers!
     6   
     7    The md2 file format is structured in a very simple way: it contains animations which are made out of
     8    frames (so called keyframes). Each frame is a complete draweable model in a specific position.
     9    A frame is a collection of vertex and its compagnions (normals, texture coordinates).
     10   
     11    A typical model has about 200 frames, the maximum frame count is fixed by MD2_MAX_FRAMES to currently
     12    512 frames. The maximal vetices count is set to 2048 verteces, not enough?
     13    You just have to change the MD2_MAX_* values if it doesn't fit your purposes...
     14   
     15    Surface Culling is fully implemented in md2 models: quake2 uses front face culling.
    1616*/
    1717
     
    187187  void drawFrame(int frame);
    188188  void draw();
     189  void draw2();
    189190 
    190191  void setAnim(int type);
     
    209210  int numFrames;
    210211  int numVertices;
     212  int numTriangles;
    211213  int numGLCommands;
    212214
     
    219221  sAnimState animationState;
    220222  float scaleFactor;
     223  //tMd2Header* header;
    221224};
    222225
Note: See TracChangeset for help on using the changeset viewer.