Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6312 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Dec 27, 2005, 12:52:16 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: patch, so that the VertexArrayModel conversion works

@patrick, i hope this also works with your algorithms

File:
1 edited

Legend:

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

    r6162 r6312  
    875875        for( int j = 0; j < 3; ++j)
    876876        {
    877           this->pModelInfo.pTriangles[index].indexToVertices[j] = (unsigned int)tmpElem->vertexNumber * 3;
    878           this->pModelInfo.pTriangles[index].indexToNormals[j] = (unsigned int)tmpElem->normalNumber * 3;
    879           this->pModelInfo.pTriangles[index].indexToTexCoor[j] = (unsigned int)tmpElem->texCoordNumber * 3;
     877          this->pModelInfo.pTriangles[index].indexToVertices[j] = (unsigned int)tmpElem->vertexNumber /* * 3 */;
     878          this->pModelInfo.pTriangles[index].indexToNormals[j] = (unsigned int)tmpElem->normalNumber /* * 3 */;
     879          this->pModelInfo.pTriangles[index].indexToTexCoor[j] = (unsigned int)tmpElem->texCoordNumber /* * 3 */;
    880880          tmpElem = tmpElem->next;
    881881        }
Note: See TracChangeset for help on using the changeset viewer.