Changeset 3566 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Mar 15, 2005, 11:22:51 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/camera.cc
r3551 r3566 201 201 // TO DO: implement options for frustum generation 202 202 //glFrustum(-1.0, 1.0, -1.0, 1.0, 1.5, 250.0); 203 gluPerspective(60, 1.2f, 0.1, 2 50);203 gluPerspective(60, 1.2f, 0.1, 2000); 204 204 205 205 //Vector up(0,0,1); -
orxonox/trunk/src/story_entities/world.cc
r3565 r3566 69 69 cn->reset(); 70 70 71 //delete this->localCamera;72 71 delete this->nullParent; 73 72 delete this->entities; 74 //delete this->skySphere; 75 76 //delete this->trackManager; 73 74 delete this->trackManager; 75 77 76 78 77 /* … … 173 172 this->glmis->step(); 174 173 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 */186 174 switch(this->debugWorldNr) 187 175 { … … 306 294 glEndList(); 307 295 308 terrain = new Terrain(TERRAIN_DAVE); 296 terrain = new Terrain("nGround.obj"); 297 terrain->setRelCoor(&Vector(0,-10,0)); 309 298 this->spawn(terrain); 310 299 // LIGHT initialisation … … 334 323 cn->enable(true); 335 324 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 343 325 } 344 326 … … 387 369 ErrorMessage World::destroy() 388 370 { 389 delete trackManager; 371 390 372 } 391 373 -
orxonox/trunk/src/world_entities/environment.cc
r3526 r3566 36 36 Environment::~Environment () 37 37 { 38 delete this->model; 38 39 39 } 40 40 -
orxonox/trunk/src/world_entities/player.cc
r3544 r3566 37 37 Player::~Player () 38 38 { 39 delete this->model; 39 40 40 } 41 41 -
orxonox/trunk/src/world_entities/primitive.cc
r3544 r3566 36 36 Primitive::~Primitive () 37 37 { 38 delete this->model; 38 39 39 } 40 40 -
orxonox/trunk/src/world_entities/skysphere.cc
r3559 r3566 71 71 this->sphereObj = gluNewQuadric(); 72 72 gluQuadricTexture(this->sphereObj, GL_TRUE); 73 this->setRadius( 220.0);73 this->setRadius(1900.0); 74 74 75 75 this->skyMaterial = new Material("Sky"); -
orxonox/trunk/src/world_entities/terrain.cc
r3565 r3566 32 32 33 33 /** 34 \brief Constructor for loading a Terrain out of a file 35 \param fileName The file to load data from. 36 37 this either loads out of an OBJ-file, or loads a heightmap if no .obj-extension is found. 38 */ 39 Terrain::Terrain(char* fileName) 40 { 41 this->init(); 42 43 if (strstr(fileName, ".obj") || strstr(fileName, ".OBJ")) 44 { 45 this->model = (OBJModel*)new OBJModel(fileName); 46 } 47 else 48 { 49 // load the hightMap here. 50 } 51 } 52 53 /** 34 54 \brief a Constructor for the Debug-Worlds 35 55 … … 42 62 } 43 63 44 45 64 /** 46 65 \brief standard deconstructor … … 57 76 { 58 77 this->setClassName ("Terrain"); 78 59 79 this->objectList = 0; 60 80 } 81 61 82 62 83 … … 75 96 glMultMatrixf((float*)matrix); 76 97 77 glCallList(objectList); 98 if (objectList) 99 glCallList(objectList); 100 else if (model) 101 model->draw(); 78 102 // this->model->draw(); 79 103 glPopMatrix(); -
orxonox/trunk/src/world_entities/terrain.h
r3564 r3566 25 25 public: 26 26 Terrain(); 27 Terrain(char* fileName); 27 28 Terrain(DebugTerrain debugTerrain); 28 29 virtual ~Terrain(); … … 33 34 34 35 private: 35 36 36 int objectList; 37 37 }; -
orxonox/trunk/src/world_entities/world_entity.cc
r3564 r3566 48 48 { 49 49 // if( collisioncluster != NULL) delete collisioncluster; 50 50 delete this->model; 51 51 } 52 52 -
orxonox/trunk/src/world_entities/world_entity.h
r3564 r3566 9 9 #include "stdincl.h" 10 10 #include "p_node.h" 11 #include " model.h"11 #include "objModel.h" 12 12 13 13 //class CollisionCluster; 14 class OBJModel;15 14 16 15 //! Basic class from which all interactive stuff in the world is derived from
Note: See TracChangeset
for help on using the changeset viewer.