Changeset 4998 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Aug 13, 2005, 7:19:51 PM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/camera.cc
r4997 r4998 142 142 case VIEW_FRONT: 143 143 this->toFovy = 120.0; 144 this->softReparent("Player"); 145 this->target->softReparent("Player"); 146 this->setRelCoorSoft(4, 0, 0); 147 this->target->setRelCoorSoft(10,0,0); 144 // this->softReparent("Player"); 145 // this->target->softReparent("Player"); 146 // this->setRelCoorSoft(4, 0, 0); 147 // this->target->setRelCoorSoft(10,0,0); 148 this->target->setRelDirSoft(Quaternion(M_PI/4.0, Vector(0,1,0))); 148 149 break; 149 150 case VIEW_LEFT: -
orxonox/trunk/src/world_entities/player.cc
r4997 r4998 222 222 glMatrixMode(GL_MODELVIEW); 223 223 glPushMatrix(); 224 float matrix[4][4];225 226 224 /* translate */ 227 225 glTranslatef (this->getAbsCoor ().x, … … 229 227 this->getAbsCoor ().z); 230 228 /* rotate */ 231 this->getAbsDir ().matrix (matrix); 232 glMultMatrixf((float*)matrix); 233 229 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 230 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 234 231 this->model->draw(); 235 232 glPopMatrix(); -
orxonox/trunk/src/world_entities/skybox.cc
r4836 r4998 167 167 this->size = size; 168 168 } 169 170 /**171 * draws the SkyBox172 */173 void SkyBox::draw()174 {175 glPushMatrix();176 glMatrixMode(GL_MODELVIEW);177 Vector r = this->getAbsCoor();178 glTranslatef(r.x, r.y, r.z);179 180 this->model->draw();181 182 glPopMatrix();183 }184 185 169 186 170 /** -
orxonox/trunk/src/world_entities/skybox.h
r4836 r4998 34 34 35 35 void setSize(float size); 36 /** \briefassumes jpg as input-format */36 /** assumes jpg as input-format */ 37 37 void setTexture(const char* name) { setTextureAndType (name, "jpg"); }; 38 38 … … 40 40 void setTextures(const char* top, const char* bottom, const char* left, 41 41 const char* right, const char* front, const char* back); 42 43 virtual void draw();44 42 45 43 private: -
orxonox/trunk/src/world_entities/terrain.cc
r4924 r4998 106 106 glMatrixMode(GL_MODELVIEW); 107 107 glPushMatrix(); 108 float matrix[4][4];109 108 110 109 /* translate */ … … 113 112 this->getAbsCoor ().z); 114 113 /* rotate */ 115 this->getAbsDir ().matrix (matrix);116 gl MultMatrixf((float*)matrix);114 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 115 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 117 116 118 117 if (this->objectList) -
orxonox/trunk/src/world_entities/world_entity.cc
r4885 r4998 179 179 glMatrixMode(GL_MODELVIEW); 180 180 glPushMatrix(); 181 float matrix[4][4];182 183 181 /* translate */ 184 182 glTranslatef (this->getAbsCoor ().x, … … 186 184 this->getAbsCoor ().z); 187 185 /* rotate */ 188 this->getAbsDir ().matrix (matrix);189 gl MultMatrixf((float*)matrix);186 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 187 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 190 188 191 189 if (this->obbTree)
Note: See TracChangeset
for help on using the changeset viewer.