Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2010, 11:34:44 AM (14 years ago)
Author:
scheusso
Message:

level pointer for the baseobject

File:
1 edited

Legend:

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

    r6794 r6828  
    2929#include "Model.h"
    3030
    31 #include <OgreEntity.h>
     31#include <OGRE/OgreEntity.h>
    3232
    3333#include "core/CoreIncludes.h"
     
    9292                    &&this->lodLevel_!=0)
    9393                {
    94                                         Vector3 scale3d = this->getScale3D();
     94                    Vector3 scale3d = this->getScale3D();
    9595                    float scaleFactor = scale3d.x;
    96                                         if(scale3d.y>scaleFactor)
    97                                                 scaleFactor = scale3d.y;
    98                                         if(scale3d.z>scaleFactor)
    99                                                 scaleFactor = scale3d.z;
    100                                                
     96                    if(scale3d.y>scaleFactor)
     97                        scaleFactor = scale3d.y;
     98                    if(scale3d.z>scaleFactor)
     99                        scaleFactor = scale3d.z;
     100
    101101                    COUT(0) << this->meshSrc_<< " lodLevel_: " << this->lodLevel_ <<" scale: "<< scaleFactor << std::endl;
    102                     //Für Asteroiden perfekt
     102                    //Fuer Asteroiden perfekt
    103103
    104104#if OGRE_VERSION >= 0x010700
     
    108108#endif
    109109
    110                                         float factor = scaleFactor;
    111                                         COUT(0)<<"scaleFactor:"<<scaleFactor<<std::endl;
     110                    float factor = scaleFactor;
     111                    COUT(0)<<"scaleFactor:"<<scaleFactor<<std::endl;
    112112
    113113                    distList.push_back(70.0f*factor);
Note: See TracChangeset for help on using the changeset viewer.