Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8644 in orxonox.OLD


Ignore:
Timestamp:
Jun 20, 2006, 6:15:27 PM (18 years ago)
Author:
patrick
Message:

bsp: md3 model animation algorithm probably finished

Location:
branches/bsp_model/src/lib/graphics/importer/md3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc

    r8640 r8644  
    538538
    539539
     540  /**
     541   * visit the model
     542   */
     543  void MD3Model::visit(MD3Data* data)
     544  {
     545    if ( (data->filename.find("lower") == std::string::npos &&
     546          (data->animation->type == LEGS || data->animation->type == BOTH)) // this is the LEGS model and the animation is applicable
     547          ||
     548          (data->filename.find("upper") == std::string::npos &&
     549          (data->animation->type == TORSO || data->animation->type == BOTH)) // this is the TORSO model and the animation is applicable
     550          ||
     551          data->animation->type == ALL // the animation is allways applicable
     552       )
     553      this->doOp(data);
     554
     555    // visit children
     556    std::map<int, MD3Data*>::iterator it = data->sortedMap.begin();
     557    while( it != data->sortedMap.end())
     558    {
     559      this->visit(it->second);
     560      it++;
     561    }
     562  }
     563
    540564
    541565  /**
  • branches/bsp_model/src/lib/graphics/importer/md3/md3_model.h

    r8638 r8644  
    6666    float* interpolateTransformation(MD3Data* data, MD3Tag* currFrameTag, MD3Tag* nextFrameTag, float frac, int i);
    6767
     68    void visit(MD3Data* data);
    6869    void interpolate(MD3Data* data, MD3Animation* anim, int op, bool bInterpolate);
    6970    int next(MD3Data* data, int nr);
Note: See TracChangeset for help on using the changeset viewer.