Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4801 in orxonox.OLD for orxonox/trunk/src/lib/graphics


Ignore:
Timestamp:
Jul 6, 2005, 4:02:22 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the missing triangles are fixed now, as you can see, there are no vertex normals used yet. This is the next working topic. What realy bothers me: the frame rate is exactly the same as if we would use glLists.

File:
1 edited

Legend:

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

    r4800 r4801  
    933933        this->triangles[index].indexToVertices[1] = (unsigned int)tmpElem->vertexNumber * 3;
    934934        this->triangles[index].indexToTexCoor[1] = (unsigned int)tmpElem->texCoordNumber * 3;
     935        tmpElem = tmpElem->next;
     936
     937        this->triangles[index].indexToVertices[2] = (unsigned int)tmpElem->vertexNumber * 3;
     938        this->triangles[index].indexToTexCoor[2] = (unsigned int)tmpElem->texCoordNumber * 3;
     939
     940        this->triangles[index + 1].indexToVertices[2] = (unsigned int)tmpElem->vertexNumber * 3;
     941        this->triangles[index + 1].indexToTexCoor[2] = (unsigned int)tmpElem->texCoordNumber * 3;
     942        tmpElem = tmpElem->next;
    935943
    936944        this->triangles[index + 1].indexToVertices[1] = (unsigned int)tmpElem->vertexNumber * 3;
    937945        this->triangles[index + 1].indexToTexCoor[1] = (unsigned int)tmpElem->texCoordNumber * 3;
    938         tmpElem = tmpElem->next;
    939 
    940         this->triangles[index].indexToVertices[2] = (unsigned int)tmpElem->vertexNumber * 3;
    941         this->triangles[index].indexToTexCoor[2] = (unsigned int)tmpElem->texCoordNumber * 3;
    942         tmpElem = tmpElem->next;
    943 
    944         this->triangles[index + 1].indexToVertices[2] = (unsigned int)tmpElem->vertexNumber * 3;
    945         this->triangles[index + 1].indexToTexCoor[2] = (unsigned int)tmpElem->texCoordNumber * 3;
    946946
    947947        index += 2;
Note: See TracChangeset for help on using the changeset viewer.