Changeset 4620 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jun 13, 2005, 11:06:30 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r4608 r4620 64 64 65 65 #define DEBUG_MODULE_IMPORTER 0 66 #define DEBUG_MODULE_TRACK_MANAGER 566 #define DEBUG_MODULE_TRACK_MANAGER 2 67 67 #define DEBUG_MODULE_GARBAGE_COLLECTOR 0 68 68 #define DEBUG_MODULE_OBJECT_MANAGER 0 -
orxonox/trunk/src/story_entities/world.cc
r4610 r4620 457 457 localCamera->lookAt(tn); 458 458 localCamera->setParentMode(PNODE_MOVEMENT); 459 localCamera->setClipRegion(1, 10000.0); 460 this->sky->setSize(10000.0); 459 461 this->localPlayer->setParentMode(PNODE_ALL); 460 462 Vector* cameraOffset = new Vector (0, 5, -10); … … 639 641 640 642 // Create SkySphere 641 this->sky = new Skysphere("pictures/sky-replace.jpg");642 this->sky->setName("SkySphere");643 this->spawn(this->sky);643 // this->sky = new Skysphere("pictures/sky-replace.jpg"); 644 // this->sky->setName("SkySphere"); 645 // this->spawn(this->sky); 644 646 this->localCamera->addChild(this->sky); 645 647 this->sky->setParentMode(PNODE_MOVEMENT); -
orxonox/trunk/src/story_entities/world.h
r4558 r4620 27 27 class PilotNode; 28 28 class EventHandler; 29 class SkyBox; 29 30 30 31 //! The game world Interface … … 120 121 ParticleEngine* particleEngine; //!< The ParticleEngine of the World. 121 122 Camera* localCamera; //!< The current Camera 122 WorldEntity* sky;//!< The Environmental Heaven of orxonox \todo insert this to environment insted123 SkyBox* sky; //!< The Environmental Heaven of orxonox \todo insert this to environment insted 123 124 LightManager* lightMan; //!< The Lights of the Level 124 125 Terrain* terrain; //!< The Terrain of the World. -
orxonox/trunk/src/world_entities/skybox.cc
r4597 r4620 68 68 { 69 69 this->setClassID(CL_SKYBOX, "SkyBox"); 70 71 this->size = 1900.0; 70 72 71 73 this->skyModel = NULL; … … 84 86 void SkyBox::postInit(void) 85 87 { 86 this->setSize(1900.0);87 88 this->rebuild(); 88 89 } … … 161 162 { 162 163 this->size = size; 164 this->rebuild(); 163 165 } 164 166 -
orxonox/trunk/src/world_entities/skybox.h
r4597 r4620 34 34 void setSize(float size); 35 35 /** \brief assumes jpg as input-format */ 36 void setTexture(const char* name) { setTextureAndType (name, "jpg"); };36 void setTexture(const char* name) { setTextureAndType (name, "jpg"); }; 37 37 void setTextureAndType(const char* name, const char* extension); 38 38 void setTextures(const char* top, const char* bottom, const char* left, const char* right, const char* front, const char* back);
Note: See TracChangeset
for help on using the changeset viewer.