Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6764 in orxonox.OLD


Ignore:
Timestamp:
Jan 26, 2006, 11:08:20 AM (18 years ago)
Author:
bensch
Message:

trunk: better lighting

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/light.cc

    r6763 r6764  
    222222  glEnable (GL_LIGHTING);
    223223  glEnable ( GL_COLOR_MATERIAL ) ;
    224   glColorMaterial ( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE ) ;
     224  glColorMaterial ( GL_FRONT, GL_DIFFUSE ) ;
    225225
    226226  this->setAmbientColor(.3, .3, .3);
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6760 r6764  
    214214  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
    215215
    216   this->burstEmitter = new ParticleEmitter(Vector(-1,0,0), 1, 200, 0.0);
     216  this->burstEmitter = new ParticleEmitter(Vector(1,0,0), .01, 200, 0.0);
    217217  this->burstEmitter->setParent(this);
     218  this->burstEmitter->setRelCoor(-1, .5, 0);
    218219  this->burstEmitter->setName("SpaceShip_Burst_emitter");
    219220
     
    338339  velocity = (velocity.getNormalized())*travelSpeed;
    339340  this->burstEmitter->setEmissionRate(travelSpeed);
     341  this->burstEmitter->setEmissionVelocity(travelSpeed*.5, travelSpeed *.1);
    340342
    341343  //orient the spaceship in direction of the mouse
Note: See TracChangeset for help on using the changeset viewer.