mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-15 01:43:25 +00:00
Switch output y and z coordinates.
This commit is contained in:
parent
3ae21d2eca
commit
a0aab7807d
4 changed files with 20 additions and 7 deletions
|
|
@ -21,12 +21,21 @@ file(GLOB mmp_extractor_src "mmp_extractor/*")
|
||||||
add_executable(mmp_extractor ${mmp_extractor_src})
|
add_executable(mmp_extractor ${mmp_extractor_src})
|
||||||
target_link_libraries(mmp_extractor common)
|
target_link_libraries(mmp_extractor common)
|
||||||
|
|
||||||
file(GLOB mod_converter_src "mod_converter/*")
|
if (DEFINED FBX_SDK_ROOT)
|
||||||
add_executable(mod_converter ${mod_converter_src})
|
file(GLOB mod_converter_src "mod_converter/*")
|
||||||
target_link_libraries(mod_converter
|
add_executable(mod_converter ${mod_converter_src})
|
||||||
common
|
target_link_libraries(mod_converter
|
||||||
pvt.cppan.demo.eigen
|
common
|
||||||
)
|
#pvt.cppan.demo.eigen
|
||||||
|
debug "${FBX_SDK_ROOT}/lib/vs2015/x86/debug/libfbxsdk.lib"
|
||||||
|
optimized "${FBX_SDK_ROOT}/lib/vs2015/x86/release/libfbxsdk.lib"
|
||||||
|
)
|
||||||
|
target_include_directories(mod_converter
|
||||||
|
PUBLIC "${FBX_SDK_ROOT}/include"
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
message(STATUS "provide fbx sdk path to build mod converter")
|
||||||
|
endif()
|
||||||
|
|
||||||
file(GLOB mpj_loader_src "mpj_loader/*")
|
file(GLOB mpj_loader_src "mpj_loader/*")
|
||||||
add_executable(mpj_loader ${mpj_loader_src})
|
add_executable(mpj_loader ${mpj_loader_src})
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ void convert_model(string fn)
|
||||||
|
|
||||||
// write all
|
// write all
|
||||||
m.print(filename);
|
m.print(filename);
|
||||||
|
m.printFbx(filename);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// write obj and mtl
|
// write obj and mtl
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@
|
||||||
|
|
||||||
#include <buffer.h>
|
#include <buffer.h>
|
||||||
|
|
||||||
|
#include <fbxsdk.h>
|
||||||
|
|
||||||
//#include <Eigen/Core>
|
//#include <Eigen/Core>
|
||||||
//#include <Eigen/Dense>
|
//#include <Eigen/Dense>
|
||||||
|
|
||||||
|
|
@ -324,7 +326,7 @@ std::string block::printObj(int group_offset, bool rotate_x_90) const
|
||||||
x += "/" + x + "/" + x;
|
x += "/" + x + "/" + x;
|
||||||
y += "/" + y + "/" + y;
|
y += "/" + y + "/" + y;
|
||||||
z += "/" + z + "/" + z;
|
z += "/" + z + "/" + z;
|
||||||
s += "f " + x + " " + y + " " + z + "\n";
|
s += "f " + x + " " + z + " " + y + "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -249,4 +249,5 @@ struct model
|
||||||
|
|
||||||
void load(const buffer &b);
|
void load(const buffer &b);
|
||||||
void print(const std::string &fn);
|
void print(const std::string &fn);
|
||||||
|
void printFbx(const std::string &fn);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue