Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 15, 2009, 12:48:03 AM (16 years ago)
Author:
rgrieder
Message:

Windows version compiling and running so far (msvc and mingw).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/src/orxonox/objects/worldentities/Planet.cc

    r2662 r2667  
    7474        if(activeCamera)
    7575        {
    76             Real distance = this->getPosition().distance( activeCamera->getWorldPosition() );
     76            float distance = this->getPosition().distance( activeCamera->getWorldPosition() );
    7777            //             COUT(2) << distance << std::endl;
    78             Real planetRadius = this->getScale();
     78            float planetRadius = this->getScale();
    7979
    80             Real newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);
    81             Real tempTest = newScale*(1+Real(this->atmosphereSize)/Real(this->imageSize));
     80            float newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);
     81            float tempTest = newScale*(1+float(this->atmosphereSize)/float(this->imageSize));
    8282            newScale = tempTest;
    8383
     
    9090    void Planet::init()
    9191    {
    92         Real scaleFactor = this->getScale();
     92        float scaleFactor = this->getScale();
    9393
    9494        this->distList.push_back(10.0*scaleFactor);
     
    103103        this->distList.push_back(55.0*scaleFactor);
    104104
    105         Real reductionValue = 0.2;
     105        float reductionValue = 0.2;
    106106
    107107        this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue);
Note: See TracChangeset for help on using the changeset viewer.