Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2005, 12:05:46 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: now Textures are maped as they should
before this textures where switched upside-down, now this is done in the corresponding model's textureCoordinate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/model.cc

    r4112 r4357  
    489489   If a vertexTextureCoordinate line is found,
    490490   this function will inject it into the vertexTexture-Array
     491
     492   !! WARNING THIS IS DIFFERNT FROM addVervexTexture(float, float); because it changes the second entry to 1-v !!
    491493*/
    492494bool Model::addVertexTexture (const char* vTextureString)
     
    497499  PRINTF(5)("found vertex-Texture %f, %f\n", &subbuffer1, &subbuffer2);
    498500  this->vTexture->addEntry(subbuffer1);
    499   this->vTexture->addEntry(subbuffer2);
     501  this->vTexture->addEntry(1 - subbuffer2);
    500502  this->texCoordCount++;
    501503  return true;
Note: See TracChangeset for help on using the changeset viewer.