Changeset 3519 in orxonox.OLD for orxonox/branches/trackManager
- Timestamp:
- Mar 12, 2005, 1:26:46 PM (20 years ago)
- Location:
- orxonox/branches/trackManager/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/trackManager/src/Makefile.in
r3500 r3519 315 315 esac; \ 316 316 done; \ 317 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/Makefile'; \317 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ 318 318 cd $(top_srcdir) && \ 319 $(AUTOMAKE) -- gnusrc/Makefile319 $(AUTOMAKE) --foreign src/Makefile 320 320 .PRECIOUS: Makefile 321 321 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/trackManager/src/defs/debug.h
r3498 r3519 46 46 #define PRINTF1 \ 47 47 if (verbose >= ERR) \ 48 printf(" %s:%d::ERROR:", __FILE__, __LINE__) && printf48 printf("ERROR::%s:%d:", __FILE__, __LINE__) && printf 49 49 #else 50 50 #define PRINTF1 if (NO) … … 54 54 #define PRINTF2 \ 55 55 if (verbose >= WARN) \ 56 printf(" %s:%d::WARNING:", __FILE__, __LINE__) && printf56 printf("WARNING::%s:%d:", __FILE__, __LINE__) && printf 57 57 58 58 #else … … 63 63 #define PRINTF3 \ 64 64 if (verbose >= INFO) \ 65 printf(" %s:%d::INFO:", __FILE__, __LINE__) && printf65 printf("INFO::%s:%d:", __FILE__, __LINE__) && printf 66 66 #else 67 67 #define PRINTF3 if (NO) … … 71 71 #define PRINTF4 \ 72 72 if (verbose >= DEBUGING) \ 73 printf(" %s:%d::DEBUG:", __FILE__, __LINE__) && printf73 printf("DEBUG::%s:%d:", __FILE__, __LINE__) && printf 74 74 #else 75 75 #define PRINTF4 if (NO) -
orxonox/branches/trackManager/src/lib/Makefile.in
r3498 r3519 181 181 esac; \ 182 182 done; \ 183 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/Makefile'; \183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/Makefile'; \ 184 184 cd $(top_srcdir) && \ 185 $(AUTOMAKE) -- gnusrc/lib/Makefile185 $(AUTOMAKE) --foreign src/lib/Makefile 186 186 .PRECIOUS: Makefile 187 187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/trackManager/src/lib/coord/p_node.cc
r3498 r3519 304 304 void PNode::setParent (PNode* parent) 305 305 { 306 this->parent = parent;306 parent->addChild(this); 307 307 } 308 308 -
orxonox/branches/trackManager/src/lib/graphics/Makefile.in
r3498 r3519 175 175 esac; \ 176 176 done; \ 177 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/graphics/Makefile'; \177 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/graphics/Makefile'; \ 178 178 cd $(top_srcdir) && \ 179 $(AUTOMAKE) -- gnusrc/lib/graphics/Makefile179 $(AUTOMAKE) --foreign src/lib/graphics/Makefile 180 180 .PRECIOUS: Makefile 181 181 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/trackManager/src/lib/graphics/importer/Makefile.in
r3498 r3519 215 215 esac; \ 216 216 done; \ 217 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/graphics/importer/Makefile'; \217 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/graphics/importer/Makefile'; \ 218 218 cd $(top_srcdir) && \ 219 $(AUTOMAKE) -- gnusrc/lib/graphics/importer/Makefile219 $(AUTOMAKE) --foreign src/lib/graphics/importer/Makefile 220 220 .PRECIOUS: Makefile 221 221 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/trackManager/src/lib/gui/Makefile.in
r3498 r3519 177 177 esac; \ 178 178 done; \ 179 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/gui/Makefile'; \179 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/gui/Makefile'; \ 180 180 cd $(top_srcdir) && \ 181 $(AUTOMAKE) -- gnusrc/lib/gui/Makefile181 $(AUTOMAKE) --foreign src/lib/gui/Makefile 182 182 .PRECIOUS: Makefile 183 183 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/trackManager/src/lib/gui/console/Makefile.in
r3498 r3519 203 203 esac; \ 204 204 done; \ 205 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/gui/console/Makefile'; \205 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/gui/console/Makefile'; \ 206 206 cd $(top_srcdir) && \ 207 $(AUTOMAKE) -- gnusrc/lib/gui/console/Makefile207 $(AUTOMAKE) --foreign src/lib/gui/console/Makefile 208 208 .PRECIOUS: Makefile 209 209 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/trackManager/src/lib/gui/gui/Makefile.in
r3498 r3519 236 236 esac; \ 237 237 done; \ 238 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/gui/gui/Makefile'; \238 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/gui/gui/Makefile'; \ 239 239 cd $(top_srcdir) && \ 240 $(AUTOMAKE) -- gnusrc/lib/gui/gui/Makefile240 $(AUTOMAKE) --foreign src/lib/gui/gui/Makefile 241 241 .PRECIOUS: Makefile 242 242 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/branches/trackManager/src/story_entities/world.cc
r3518 r3519 73 73 this->localCamera->destroy(); 74 74 this->nullParent->destroy(); 75 delete this->skySphere;75 //delete this->skySphere; 76 76 77 77 //delete this->trackManager; … … 116 116 trackManager->addPoint(Vector(30,0,5)); 117 117 trackManager->addPoint(Vector(40,0,5)); 118 trackManager->setDuration( 20);118 trackManager->setDuration(4); 119 119 int fork11, fork12, fork13; 120 120 trackManager->fork(3, &fork11, &fork12, &fork13); … … 123 123 trackManager->addPoint(Vector(100, 0, -15)); 124 124 trackManager->addPoint(Vector(300, 0, -15)); 125 trackManager->setDuration( 4);125 trackManager->setDuration(10); 126 126 trackManager->workOn(fork12); 127 127 trackManager->addPoint(Vector(70, 0, 0)); … … 191 191 this->localCamera->bind (myPlayer); 192 192 //this->localPlayer->addChild (this->localCamera); 193 /*monitor progress*/ 194 this->glmis->step(); 193 195 194 196 // Create SkySphere 195 197 skySphere = new Skysphere("../data/pictures/sky-replace.jpg"); 198 this->localPlayer->addChild(this->skySphere); 196 199 197 200 /*monitor progress*/ … … 240 243 // Create SkySphere 241 244 skySphere = new Skysphere("../data/pictures/sky-replace.jpg"); 245 this->localPlayer->addChild(this->skySphere); 242 246 243 247 break; … … 731 735 entity = entities->nextElement(); 732 736 } 733 skySphere->updatePosition(localCamera->absCoordinate);737 //skySphere->updatePosition(localCamera->absCoordinate); 734 738 735 739 /* update tick the rest */ -
orxonox/branches/trackManager/src/world_entities/skysphere.cc
r3498 r3519 41 41 } 42 42 43 43 44 /** 44 45 \brief Constructs a SkySphere and takes fileName as a map. … … 49 50 initialize(fileName); 50 51 } 52 51 53 52 54 /** … … 59 61 free(sphereObj); 60 62 } 63 61 64 62 65 /** … … 79 82 80 83 /** 81 \brief sets the Radius of the Sphere.82 \param radius The Radius of The Sphere83 */84 void Skysphere::setRadius(float radius)85 {86 this->sphereRadius = radius;87 }88 89 90 /**91 84 \brief Defines which texture should be loaded onto the skysphere. 92 85 \param fileName The filename of the Texture … … 95 88 { 96 89 this->skyMaterial->setDiffuseMap(fileName); 97 }98 99 100 /**101 \brief updates the position of the Skysphere102 \param sphereCenter The coordinate of the Center of the Sphere103 104 This is normally done in the update-phase of world, so the Skysphere is always centered at the Camera.105 */106 void Skysphere::updatePosition(Vector sphereCenter)107 {108 this->sphereCenter = sphereCenter;109 90 } 110 91 … … 120 101 skyMaterial->select(); 121 102 glPushMatrix(); 122 glTranslatef(this->sphereCenter.x,this->sphereCenter.y,this->sphereCenter.z); 123 124 glRotatef(-30, 1, 0, 0); 125 glRotatef(95.0f, 0.0f, 0.0f, 1.0f); 126 glRotatef(-250.0f, 0.0, 1.0f, 0.0f); 103 glTranslatef(this->absCoordinate.x, 104 this->absCoordinate.y, 105 this->absCoordinate.z); 106 107 //glRotatef(-30, 1, 0, 0); 108 //glRotatef(95.0f, 0.0f, 0.0f, 1.0f); 109 //glRotatef(-250.0f, 0.0, 1.0f, 0.0f); 127 110 128 111 gluSphere(sphereObj, sphereRadius, 20, 20); … … 130 113 glDisable(GL_TEXTURE_2D); 131 114 } 115 116 117 /** 118 \brief sets the Radius of the Sphere. 119 \param radius The Radius of The Sphere 120 */ 121 void Skysphere::setRadius(float radius) 122 { 123 this->sphereRadius = radius; 124 } -
orxonox/branches/trackManager/src/world_entities/skysphere.h
r3498 r3519 15 15 /* INCLUDES */ 16 16 #include "p_node.h" 17 #include "world_entity.h" 17 18 18 19 /* FORWARD DEFINITION */ … … 21 22 22 23 //! A Class to handle a SkySphere 23 class Skysphere : public PNode24 class Skysphere : public WorldEntity 24 25 { 25 26 … … 32 33 void setTexture(char* fileName); 33 34 34 void updatePosition(Vector sphereCenter); 35 void draw(); 35 virtual void draw(); 36 36 37 37 private: 38 38 GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere. 39 39 Material *skyMaterial; //!< A Material for the SkySphere. 40 Vector sphereCenter; //!< Center of the SkySphere.41 40 float sphereRadius; //!< Radius of the SkySphere. This should match the frustum maximum range. 42 43 41 44 42 void initialize(char* fileName); 45 43 };
Note: See TracChangeset
for help on using the changeset viewer.