Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8084 in orxonox.OLD


Ignore:
Timestamp:
Jun 1, 2006, 4:54:50 PM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: cloud hacking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.cc

    r8079 r8084  
    6363
    6464  gluQuadricTexture(this->sphereObj, GL_TRUE);
    65   this->setRadius(2000.0);
     65  gluQuadricOrientation(this->sphereObj, GLU_INSIDE);
     66
     67
     68  this->setRadius(1900.0);
    6669
    6770  mover = 0.0f;
    6871
    6972  // Initializing default values
    70   this->cloudSpeed = 2.0f;
     73  this->cloudSpeed = 1.0f;
    7174        this->cloudTexture = "pictures/sky/cloud1.jpg";
    7275}
     
    8790
    8891        this->cloudMaterial = new Material("Sky");
    89   // this->setTexture(this->cloudTexture);
    9092  this->cloudMaterial->setIllum(3);
    9193  this->cloudMaterial->setAmbient(1.0, 1.0, 1.0);
    92 
    9394  this->cloudMaterial->setDiffuseMap(this->cloudTexture);
    94 
    9595}
    9696
     
    105105                -Load a texture, for now from an existing image, a cloud texture
    106106                -Blend / Overlay this with a blue sky like in the tutorial
    107                 -Make a skybox or whatever....
    108107                -Animate it (for now move it along the sky)
    109108        */
     
    117116
    118117        // Sky movement
    119         glRotatef(mover, 1, 0, 0);
     118        glRotatef(mover, 0, 0, 1);
    120119
    121120  cloudMaterial->select();
Note: See TracChangeset for help on using the changeset viewer.