- Timestamp:
- Jan 24, 2007, 7:44:44 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/blackscreen.cc
r10348 r10352 96 96 glPushAttrib(GL_ENABLE_BIT); 97 97 glDisable(GL_LIGHTING); 98 glEnable(GL_BLEND); // Turn Blending On 99 100 glMatrixMode(GL_MODELVIEW); 98 101 glPushMatrix(); 99 glEnable(GL_BLEND); // Turn Blending On 102 /* translate */ 103 glTranslatef (this->getAbsCoor ().x, 104 this->getAbsCoor ().y, 105 this->getAbsCoor ().z); 106 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 107 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 100 108 101 109 this->material->setTransparency(i); -
branches/camera/src/world_entities/camera.cc
r10348 r10352 64 64 void Camera::lookAt(PNode* target) 65 65 { 66 this->target->setParent (target);66 this->target->setParentSoft(target,0.2); 67 67 } 68 68 … … 313 313 void CameraTarget::detach() 314 314 { 315 masta->setParent (target);316 masta->getTargetNode()->setParent (target);315 masta->setParentSoft(target); 316 masta->getTargetNode()->setParentSoft(target); 317 317 } 318 318 … … 325 325 void CameraTarget::atach(PNode* object) 326 326 { 327 masta->setParent (object);328 masta->getTargetNode()->setParent (object);327 masta->setParentSoft(object); 328 masta->getTargetNode()->setParentSoft(object); 329 329 } 330 330 … … 348 348 if (fabs(translateTo.len() - (target->getAbsCoor()).len()) >= 11 ) 349 349 { 350 350 printf("translate\n"); 351 351 Vector tmpVec= iterate(dt, &translateTo, &(masta->getAbsCoor())); 352 glLoadIdentity(); 353 target->shiftCoor(speed*tmpVec.x, speed*tmpVec.y, speed*tmpVec.z); 354 352 target->shiftCoor(speed*tmpVec.x, speed*tmpVec.y, speed*tmpVec.z); 355 353 } 356 354 } … … 370 368 { 371 369 Vector tmpVec=Vector(x,y,z); 370 if( this->getParent()) 371 this->getParent()->setRelCoor(this->getParent()->getRelCoor()); 372 372 translateNow(&tmpVec); 373 373 } -
branches/camera/src/world_entities/test_entity.cc
r10348 r10352 80 80 { 81 81 CM= State::getCameraman(); 82 CM->changeCurrTarget( " BlackScreen", "fadeToBlack");82 CM->changeCurrTarget( "WorldEntity", "Ebene"); 83 83 } 84 84 … … 88 88 CM->createCam(); 89 89 CM->setCam(1); 90 CM->moveCurrCam( 0, 0, 100);90 CM->moveCurrCam(100, 0, 200); 91 91 } 92 92
Note: See TracChangeset
for help on using the changeset viewer.