Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6794 for code/branches/lod


Ignore:
Timestamp:
Apr 26, 2010, 5:01:07 PM (14 years ago)
Author:
kolibri7
Message:

Trying to get the real scaleFactor, but it doesn't work yet…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lod/src/orxonox/graphics/Model.cc

    r6786 r6794  
    9292                    &&this->lodLevel_!=0)
    9393                {
    94                     float scaleFactor = this->getScale();
     94                                        Vector3 scale3d = this->getScale3D();
     95                    float scaleFactor = scale3d.x;
     96                                        if(scale3d.y>scaleFactor)
     97                                                scaleFactor = scale3d.y;
     98                                        if(scale3d.z>scaleFactor)
     99                                                scaleFactor = scale3d.z;
     100                                               
    95101                    COUT(0) << this->meshSrc_<< " lodLevel_: " << this->lodLevel_ <<" scale: "<< scaleFactor << std::endl;
    96102                    //Für Asteroiden perfekt
     
    102108#endif
    103109
    104                                         float factor = scaleFactor*scaleFactor*scaleFactor*scaleFactor;
     110                                        float factor = scaleFactor;
     111                                        COUT(0)<<"scaleFactor:"<<scaleFactor<<std::endl;
    105112
    106113                    distList.push_back(70.0f*factor);
     
    115122                    distList.push_back(330.0f*factor);
    116123
    117                     float reductionValue = 0.5f;
     124                    float reductionValue = 0.2f;
    118125
    119126                   
Note: See TracChangeset for help on using the changeset viewer.