Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 3:54:49 PM (20 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/world_entities/environment.cc

    r3605 r3746  
    3030Environment::Environment () : WorldEntity()
    3131{
    32   this->model = new OBJModel("../data/models/fighter.obj");
     32  this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL);
     33  //  this->model = new OBJModel("../data/models/fighter.obj");
    3334}
    3435
     
    5455        string = grabParameter( root, "model");
    5556        if( string != NULL)
    56                 this->model = new OBJModel( string);
     57        this->model = (Model*) ResourceManager::getInstance()->load( string, RP_LEVEL);
    5758        else
    5859        {
    5960                PRINTF0("Environment is missing a proper 'model'\n");
    60                 this->model = new OBJModel( "../data/models/reaplow.obj");
     61        this->model = (Model*) ResourceManager::getInstance()->load( "cube", RP_LEVEL);
    6162        }
    6263        if( this->model == NULL)
Note: See TracChangeset for help on using the changeset viewer.