Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3566 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Mar 15, 2005, 11:22:51 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: updated the terrain class to more functionality
view goes farther 2000 instead of 250
model gets deleted by world_entity instead of childs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3565 r3566  
    6969  cn->reset();
    7070
    71   //delete this->localCamera;
    7271  delete this->nullParent;
    7372  delete this->entities;
    74   //delete this->skySphere;
    75 
    76   //delete this->trackManager;
     73
     74  delete this->trackManager;
     75
    7776
    7877  /*
     
    173172      this->glmis->step();
    174173
    175       /*
    176         tmpCurve->addNode(Vector(10,  -1,  -1));
    177         tmpCurve->addNode(Vector(10,  -2,   2));
    178         tmpCurve->addNode(Vector(10,   3,   3));
    179         tmpCurve->addNode(Vector(10,   4,  -4), 0);
    180         tmpCurve->addNode(Vector(10,  -1,  -1));
    181         tmpCurve->addNode(Vector(10,  -2,   2));
    182         tmpCurve->addNode(Vector(10,   3,   3));
    183         tmpCurve->addNode(Vector(10,   4,  -4), 0);
    184         tmpCurve->debug();
    185       */
    186174      switch(this->debugWorldNr)
    187175        {
     
    306294  glEndList();
    307295
    308   terrain = new Terrain(TERRAIN_DAVE);
     296  terrain = new Terrain("nGround.obj");
     297  terrain->setRelCoor(&Vector(0,-10,0));
    309298  this->spawn(terrain);
    310299  // LIGHT initialisation
     
    334323  cn->enable(true);
    335324
    336   //glMap1f (GL_MAP1_VERTEX_3, 0.0, 1.0, 3, 4, &ctrlpoints[0][0]);
    337   //glEnable (GL_MAP1_VERTEX_3);
    338  
    339   //theNurb = gluNewNurbsRenderer ();
    340   //gluNurbsProperty (theNurb, GLU_NURBS_MODE, GLU_NURBS_TESSELLATOR);
    341   //gluNurbsProperty (theNurb, GLU_NURBS_VERTEX, vertexCallback );
    342 
    343325}
    344326
     
    387369ErrorMessage World::destroy()
    388370{
    389   delete trackManager;
     371
    390372}
    391373
Note: See TracChangeset for help on using the changeset viewer.