Skip to content

Commit

Permalink
[texturing] flip uv when exporting mesh
Browse files Browse the repository at this point in the history
Allow to see textures inside Meshroom Viewer3D, but we still have the lighting / normal issue with black gradient on the surface
  • Loading branch information
Thomas-Zorroche committed Aug 17, 2021
1 parent bb837c3 commit 6a5c4f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aliceVision/mesh/Texturing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#include <assimp/Exporter.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>

#include <map>
#include <set>
Expand Down Expand Up @@ -1143,7 +1144,7 @@ void Texturing::saveAs(const bfs::path& dir, const std::string& basename,
}

Assimp::Exporter exporter;
exporter.Export(&scene, formatId, filename);
exporter.Export(&scene, formatId, filename, aiPostProcessSteps::aiProcess_FlipUVs);

ALICEVISION_LOG_INFO("Save mesh to " << filetypeStr << " done.");
}
Expand Down

0 comments on commit 6a5c4f5

Please sign in to comment.