Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10090 in orxonox.OLD for branches/mount_points


Ignore:
Timestamp:
Dec 18, 2006, 12:13:47 PM (18 years ago)
Author:
patrick
Message:

mount points found but not yet parsed

Location:
branches/mount_points/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/obj/objModel.cc

    r10070 r10090  
    4444
    4545  this->finalize();
     46
     47  this->extractMountPoints();
    4648}
    4749
  • branches/mount_points/src/lib/graphics/importer/oif/resource_oif.cc

    r10059 r10090  
    3333  else
    3434  {
    35     PRINTF(0)("NOT FOUND OIF: %s\n", fileName.c_str());
     35    PRINTF(4)("NOT FOUND OIF: %s\n", fileName.c_str());
    3636//     std::string modelFileName = this->Resource::locateFile(modelName);
    3737//     //std::string skinFileName = this->Resource::locateFile(skinName);
  • branches/mount_points/src/lib/graphics/importer/static_model.cc

    r10089 r10090  
    105105  for( ; groupPtr != NULL; groupPtr = groupPtr->next)
    106106  {
     107    //PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str());
     108
    107109    // get the name of this group and check if it's a mout point identifier
    108110    std::string groupName = groupPtr->name;
    109111    if( groupName.find("MP.", 0) != std::string::npos)
    110     {}
     112    {
     113      PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str());
     114
     115    }
    111116  }
    112117}
  • branches/mount_points/src/lib/graphics/importer/static_model_data.cc

    r10089 r10090  
    368368bool StaticModelData::addGroup(const std::string& groupString)
    369369{
    370   PRINTF(0)("Read Group: %s.\n", groupString.c_str());
     370  PRINTF(4)("Read Group: %s.\n", groupString.c_str());
    371371  if (this->groupCount != 0 && this->currentGroup->faceCount > 0)
    372372  {
  • branches/mount_points/src/world_entities/npcs/npc_test.cc

    r9869 r10090  
    3939  this->registerObject(this, NPC2::_objectList);
    4040
    41   if ((float)rand()/RAND_MAX > .5f)
    42     this->loadModel("models/ships/bolido.obj", 6);
    43   else
    44     this->loadModel("models/ships/gobblin.obj", 6);
     41//   if ((float)rand()/RAND_MAX > .5f)
     42//     this->loadModel("models/ships/bolido.obj", 6);
     43//   else
     44//     this->loadModel("models/ships/gobblin.obj", 6);
    4545
    4646
     
    8484 * Just override this function with whatever you want to be drawn.
    8585 */
    86 void NPC2::draw() const
    87 {
    88   glMatrixMode(GL_MODELVIEW);
    89   glPushMatrix();
    90   float matrix[4][4];
    91 
    92   /* translate */
    93   glTranslatef (this->getAbsCoor ().x,
    94                 this->getAbsCoor ().y,
    95                 this->getAbsCoor ().z);
    96   /* rotate */
    97   this->getAbsDir ().matrix (matrix);
    98   glMultMatrixf((float*)matrix);
    99 
    100 //   if (this->shader != NULL && this->shader != Shader::getActiveShader())
    101 //     shader->activateShader();
    102 
    103   this->getModel()->draw();
    104 //   shader->deactivateShader();
    105 
    106 
    107 /*  if (this->model)
    108     this->model->draw();*/
    109   glPopMatrix();
    110 }
     86// void NPC2::draw() const
     87// {
     88//   glMatrixMode(GL_MODELVIEW);
     89//   glPushMatrix();
     90//   float matrix[4][4];
     91//
     92//   /* translate */
     93//   glTranslatef (this->getAbsCoor ().x,
     94//                 this->getAbsCoor ().y,
     95//                 this->getAbsCoor ().z);
     96//   /* rotate */
     97//   this->getAbsDir ().matrix (matrix);
     98//   glMultMatrixf((float*)matrix);
     99//
     100// //   if (this->shader != NULL && this->shader != Shader::getActiveShader())
     101// //     shader->activateShader();
     102//
     103//   if( this->getModel())
     104//     this->getModel()->draw();
     105// //   shader->deactivateShader();
     106//
     107//
     108// /*  if (this->model)
     109//     this->model->draw();*/
     110//   glPopMatrix();
     111// }
    111112
    112113
  • branches/mount_points/src/world_entities/npcs/npc_test.h

    r9869 r10090  
    2222
    2323  virtual void tick(float dt);
    24   virtual void draw() const;
     24//   virtual void draw() const;
    2525
    2626 private:
  • branches/mount_points/src/world_entities/world_entity.cc

    r10059 r10090  
    271271void WorldEntity::loadObjectInformationFile(const std::string& fileName)
    272272{
    273   PRINTF(0)("loading the oif File: %s\n", fileName.c_str());
     273  PRINTF(4)("loading the oif File: %s\n", fileName.c_str());
    274274
    275275  this->oiFile = new ObjectInformationFile(fileName);
Note: See TracChangeset for help on using the changeset viewer.