dont try to figure out duplicate vertices for the moment, as it's causing issues with texture coordinates (and might not be necessary since assimp should be doing this via the import processing parameters)

This commit is contained in:
gered 2011-04-27 22:10:02 -04:00
parent 835422a2c7
commit d2b67e6e7e

View file

@ -29,7 +29,11 @@ void CollectVerticesInMesh(
unsigned int matchingIndex = 0;
aiVector3D vertex = mesh->mVertices[i];
if (!FindVertex(vertex, verticesBucket, matchingIndex))
// TODO: this seems to not work quite so well... might have something to do with the
// fact that ASSIMP is already taking care of duplicate vertices and indexing as
// appropriate? the problem seems to be only with tex coords though....
//if (!FindVertex(vertex, verticesBucket, matchingIndex))
if (true)
{
// vertex isn't in the bucket already, add it, and then record mapping between the mesh vertex index and the bucket vertex index
verticesBucket.push_back(vertex);