Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of ~archive/MD2Model


Ignore:
Timestamp:
Nov 27, 2007, 11:29:40 PM (17 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • ~archive/MD2Model

    v1 v2  
    11= MD2Model =
     2[[ArchivePage]]
     3
    24''Maintainer: Patrick Boenzli''[[br]]
    35[[br]]
     
    1113  fread(buffer, size, length, stream);
    1214}}}
    13 An MD2Model stores the model animation in "KeyFrames", these are just the models in certain movment states. Like a cartoon, if you look at these KeyFrames very fast, the movement flows. Technicaly spoken, KeyFrames are only a collection of vertices. MD2 doesn't only display KeyFrames, it also interpolates between them, so there seems to be a smooth movmement; the faster the computation (computer), the smoother the animation gets. Again technicaly, the {{{MD2Model::interpolate()}}} function does interpolate between all the vertices of the two KeyFrames, using the equation {{{x = p1 + t*(p1 - p2) if t = {0..1} }}} [[br]]
     15An MD2Model stores the model animation in "!KeyFrames", these are just the models in certain movment states. Like a cartoon, if you look at these !KeyFrames very fast, the movement flows. Technicaly spoken, !KeyFrames are only a collection of vertices. MD2 doesn't only display !KeyFrames, it also interpolates between them, so there seems to be a smooth movmement; the faster the computation (computer), the smoother the animation gets. Again technicaly, the {{{MD2Model::interpolate()}}} function does interpolate between all the vertices of the two !KeyFrames, using the equation {{{x = p1 + t*(p1 - p2) if t = {0..1} }}} [[br]]
    1416MD2 defines different sorts of animations, that have all been defined from the id software team: {{{ {STAND, RUN, JUMP, ... } }}}. The animations vary in animation speed (fps) and animation length. The animations (model) data is stored in the payload: [[br]]
    1517[[br]]