Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8353 in orxonox.OLD for branches/bsp_model/src/world_entities


Ignore:
Timestamp:
Jun 14, 2006, 1:07:17 AM (18 years ago)
Author:
patrick
Message:

bsp: worldentities now are able to load md3 models. but md3 models are not yet implemented:D coming soon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/world_entities/world_entity.cc

    r8346 r8353  
    2222#include "model.h"
    2323#include "md2/md2Model.h"
     24#include "md3/md3_model.h"
     25
    2426#include "util/loading/resource_manager.h"
    2527#include "util/loading/load_param.h"
     
    199201        this->buildObbTree(obbTreeDepth);
    200202    }
     203    else if(fileName.find(".md3") != std::string::npos)
     204    {
     205      PRINTF(4)("fetching MD3 file: %s\n", fileName.c_str());
     206      Model* m = new md3::MD3Model(fileName, this->scaling);
     207      this->setModel(m, 0);
     208
     209//       if( m != NULL)
     210//         this->buildObbTree(obbTreeDepth);
     211    }
    201212  }
    202213  else
Note: See TracChangeset for help on using the changeset viewer.