Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6881 for code/branches/lod


Ignore:
Timestamp:
May 10, 2010, 4:00:52 PM (15 years ago)
Author:
kolibri7
Message:

*lodLevel is a float now
*gametype_underattack.oxw includes the lodlevel template now

Location:
code/branches/lod
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lod/data/levels/gametype_underattack.oxw

    r6877 r6881  
    44  include("underattackhud.oxo")
    55  include("templates/spaceship_assff.oxt")
     6  include("templates/lodinformation.oxt")
    67?>
    78
     
    1112 gametype     = UnderAttack
    1213>
     14  <templates>
     15    <Template link=lodtemplate_default />
     16  </templates>
    1317
    14   <lodinformation>
    15     <MeshLodInformation mesh=Carrier.mesh lodQuality=1 />
    16   </lodinformation>
    17  
    1818  <Scene
    1919   ambientlight = "0.5, 0.5, 0.5"
  • code/branches/lod/data/levels/templates/lodinformation.oxt

    r6786 r6881  
    22  <Level>
    33        <lodinformation>
    4           <MeshLodInformation mesh=ast1.mesh lodQuality=1 />
     4          <MeshLodInformation mesh=Carrier.mesh lodQuality=2.4 />
    55        </lodinformation>
    66  </Level>
  • code/branches/lod/src/orxonox/graphics/MeshLodInformation.cc

    r6877 r6881  
    6262    }
    6363       
    64         void MeshLodInformation::setLodLevel(unsigned int lodLevel)
     64        void MeshLodInformation::setLodLevel(float lodLevel)
    6565        {
    66                 lodLevel_=lodLevel;
     66        if(lodLevel>=0)
     67                    lodLevel_=lodLevel;
    6768        }
    68         int MeshLodInformation::getLodLevel()
     69        float MeshLodInformation::getLodLevel()
    6970        {
    7071                return lodLevel_;
  • code/branches/lod/src/orxonox/graphics/MeshLodInformation.h

    r6838 r6881  
    4141    {
    4242                private:
    43                         void setLodLevel(unsigned int lodLevel);
     43                        void setLodLevel(float lodLevel);
    4444                        void setMeshSource(std::string meshSource);
    4545                        std::string getMeshSource();
    4646                        std::string meshSource_;
    47                         int lodLevel_;
     47                        float lodLevel_;
    4848               
    4949        public:
     
    5151            virtual ~MeshLodInformation();
    5252           
    53                         int getLodLevel();
     53                        float getLodLevel();
    5454            std::string getMeshName();
    5555
Note: See TracChangeset for help on using the changeset viewer.