Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4237 in orxonox.OLD for orxonox/branches/md2_loader/src/lib


Ignore:
Timestamp:
May 20, 2005, 2:12:35 AM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: fixed texture coordinate problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc

    r4236 r4237  
    724724
    725725  /* draw the triangles */
    726   /* \todo: take int i out of while loop */
    727726  while( int i = *(pCommands++)) /* strange looking while loop for maximum performance */
    728727    {
     
    744743
    745744          glNormal3fv(anorms[this->pLightNormals[pCommands[2]]]);
    746           glTexCoord2f( ((float *)pCommands)[0], ((float *)pCommands)[1] );
     745          glTexCoord2f( ((float *)pCommands)[0], 1.0-((float *)pCommands)[1] );
     746          //printf("pCommands %f, %f\n", ((float *)pCommands)[0], ((float *)pCommands)[1]);
    747747          glVertex3fv(verticesList[pCommands[2]]);
    748748
Note: See TracChangeset for help on using the changeset viewer.