Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8548 in orxonox.OLD for branches/terrain/src/world_entities


Ignore:
Timestamp:
Jun 16, 2006, 11:35:49 PM (19 years ago)
Author:
ponder
Message:
  • Added multitexturing support to the terrain-class.
  • The lightmap gets screwed up and I don't know why…
Location:
branches/terrain/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/world_entities/camera.cc

    r8349 r8548  
    3434  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW5);
    3535
    36   this->setFovy(90);
     36  this->setFovy(60.0);
    3737  this->setAspectRatio(1.2f);
    38   this->setClipRegion( .1, 100.0f );
     38  this->setClipRegion( .1, 80.0f );
    3939
    4040  this->setViewMode(Camera::ViewNormal);
  • branches/terrain/src/world_entities/terrain_entity.cc

    r8328 r8548  
    140140void TerrainEntity::loadLightmap( const std::string& _lightFile )
    141141{
    142         terrain->setLightmap( _lightFile );
     142        Material *mat = new Material( "TERR_LM" );
     143        mat->setDiffuse( 1.0f, 1.0f, 1.0f );
     144        mat->setAmbient( 1.0f, 1.0f, 1.0f );
     145        mat->setDiffuseMap( _lightFile, GL_TEXTURE_2D, 0 );     
     146        mat->setDiffuseMap( std::string( "pictures/lehm.png" ), GL_TEXTURE_2D, 1 );     
     147        terrain->addMaterial( mat );
    143148}
    144149
Note: See TracChangeset for help on using the changeset viewer.