Skip to content

Commit

Permalink
[texturing] (WIP) change bump mapping parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Zorroche committed Aug 16, 2021
1 parent f6956c0 commit e4454b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/aliceVision/mesh/Texturing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ std::string EUnwrapMethod_enumToString(EUnwrapMethod method);



struct NormalsParams
struct BumpMappingParams
{
imageIO::EImageFileType normalMapFileType;
imageIO::EImageFileType heightMapFileType;

std::string heightMapUsage = "displacement";
std::string bumpType = "normal";
};

struct TexturingParams
Expand Down
8 changes: 4 additions & 4 deletions src/software/pipeline/main_texturing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int aliceVision_main(int argc, char* argv[])
std::string unwrapMethod = mesh::EUnwrapMethod_enumToString(mesh::EUnwrapMethod::Basic);
std::string visibilityRemappingMethod = mesh::EVisibilityRemappingMethod_enumToString(texParams.visibilityRemappingMethod);

mesh::NormalsParams normalsParams;
mesh::BumpMappingParams bumpMappingParams;

po::options_description allParams("AliceVision texturing");

Expand Down Expand Up @@ -89,11 +89,11 @@ int aliceVision_main(int argc, char* argv[])
"output mesh file type")
("outputTextureFileType", po::value<imageIO::EImageFileType>(&texParams.textureFileType)->default_value(imageIO::EImageFileType::NONE),
imageIO::EImageFileType_informations().c_str())
("outputNormalMapFileType", po::value<imageIO::EImageFileType>(&normalsParams.normalMapFileType)->default_value(imageIO::EImageFileType::NONE),
("bumpMappingFormat", po::value<imageIO::EImageFileType>(&bumpMappingParams.normalMapFileType)->default_value(imageIO::EImageFileType::NONE),
imageIO::EImageFileType_informations().c_str())
("outputHeightMapFileType", po::value<imageIO::EImageFileType>(&normalsParams.heightMapFileType)->default_value(imageIO::EImageFileType::NONE),
("displacementMappingFormat", po::value<imageIO::EImageFileType>(&bumpMappingParams.heightMapFileType)->default_value(imageIO::EImageFileType::NONE),
imageIO::EImageFileType_informations().c_str())
("heightMapUsage", po::value<std::string>(&normalsParams.heightMapUsage)->default_value(normalsParams.heightMapUsage),
("bumpType", po::value<std::string>(&bumpMappingParams.bumpType)->default_value(bumpMappingParams.bumpType),
"Use HeightMap for displacement or bump mapping")
("unwrapMethod", po::value<std::string>(&unwrapMethod)->default_value(unwrapMethod),
"Method to unwrap input mesh if it does not have UV coordinates.\n"
Expand Down

0 comments on commit e4454b5

Please sign in to comment.