From d2b67e6e7ed95aff94caf0cc55e70b2a61edb043 Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 27 Apr 2011 22:10:02 -0400 Subject: [PATCH] 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) --- AssimpToMesh/src/assimputils/assimpgeometry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AssimpToMesh/src/assimputils/assimpgeometry.cpp b/AssimpToMesh/src/assimputils/assimpgeometry.cpp index 1d8efbf..835a912 100644 --- a/AssimpToMesh/src/assimputils/assimpgeometry.cpp +++ b/AssimpToMesh/src/assimputils/assimpgeometry.cpp @@ -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);