Temporary remove MTL support
This commit is contained in:
parent
4a955f3bbb
commit
b72b2eba71
@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* \file Model-Extractor.c
|
* @file Model-Extractor.c
|
||||||
* \date 25/07/2022
|
* @date 25/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief HOB model parser and export to Waveform OBJ format.
|
* @brief HOB model parser and export to Waveform OBJ format.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -105,7 +106,6 @@ static unsigned char checkInputArgs(T_PROG_OPTIONS* opt_ptr, int p_arg_nbr, char
|
|||||||
// Set default options
|
// Set default options
|
||||||
opt_ptr->raw = 0;
|
opt_ptr->raw = 0;
|
||||||
opt_ptr->output_dir = 1;
|
opt_ptr->output_dir = 1;
|
||||||
opt_ptr->export_mtl = 1;
|
|
||||||
|
|
||||||
if (p_arg_nbr > 1) {
|
if (p_arg_nbr > 1) {
|
||||||
for ( i = 1; i < p_arg_nbr; i++) {
|
for ( i = 1; i < p_arg_nbr; i++) {
|
||||||
@ -129,9 +129,9 @@ static unsigned char checkInputArgs(T_PROG_OPTIONS* opt_ptr, int p_arg_nbr, char
|
|||||||
} else if (strcmp(p_args[i], "-no-subdir") == 0) {
|
} else if (strcmp(p_args[i], "-no-subdir") == 0) {
|
||||||
opt_ptr->output_dir = 0;
|
opt_ptr->output_dir = 0;
|
||||||
printf("[OPTN] Export to current directory.\n");
|
printf("[OPTN] Export to current directory.\n");
|
||||||
} else if (strcmp(p_args[i], "-no-mtl") == 0) {
|
} else if (strcmp(p_args[i], "-mtl") == 0) {
|
||||||
opt_ptr->export_mtl = 0;
|
opt_ptr->export_mtl = 0;
|
||||||
printf("[OPTN] No materials datas.\n");
|
printf("[OPTN] Export materials datas.\n");
|
||||||
} else {
|
} else {
|
||||||
printf("[ERR] Unknown option: %s\n", p_args[i]);
|
printf("[ERR] Unknown option: %s\n", p_args[i]);
|
||||||
}
|
}
|
||||||
@ -179,7 +179,7 @@ static void dispHelp() {
|
|||||||
printf("Options:\n -h Print this message\n");
|
printf("Options:\n -h Print this message\n");
|
||||||
printf(" -v -vv Activate verbose console output\n");
|
printf(" -v -vv Activate verbose console output\n");
|
||||||
printf(" -no-subdir Export models inside current folder\n");
|
printf(" -no-subdir Export models inside current folder\n");
|
||||||
printf(" -no-mtl Disable materials datas export with model\n");
|
//printf(" -mtl Export materials datas with model\n");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Usage: RSE-Model_%s [options] <hob files...>\n", PRG_VERSION);
|
printf("Usage: RSE-Model_%s [options] <hob files...>\n", PRG_VERSION);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* \file obj_exporter.c
|
* @file obj_exporter.c
|
||||||
* \date 27/07/2022
|
* @date 27/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief Export datas to Waveform OBJ format.
|
* @brief Export datas to Waveform OBJ format.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -115,7 +116,7 @@ unsigned char exportOBJModel(T_RSPMODEL_OBJECT* hob_objects, const char *out_pat
|
|||||||
|
|
||||||
obj_delete(objConstruct);
|
obj_delete(objConstruct);
|
||||||
|
|
||||||
return NO_ERROR;
|
return RSPLIB_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mtlPathPatch(const char* out_file, const char* obj_name) {
|
static void mtlPathPatch(const char* out_file, const char* obj_name) {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* \file obj_exporter.h
|
* @file obj_exporter.h
|
||||||
* \date 27/07/2022
|
* @date 27/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief Export datas to Waveform OBJ format.
|
* @brief Export datas to Waveform OBJ format.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SRC_OBJ_EXPORTER_H_
|
#ifndef SRC_OBJ_EXPORTER_H_
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* \file options.h
|
* @file options.h
|
||||||
* \date 29/07/2022
|
* @date 29/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief Shared options structure definition and declaration.
|
* @brief Shared options structure definition and declaration.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OPTIONS_H_
|
#ifndef OPTIONS_H_
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* \file RSPModel_errordefs.h
|
* @file RSPModel_errordefs.h
|
||||||
* \date 26/07/2022
|
* @date 26/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief Errors type definition file. Used mostly by methods in this project.
|
* @brief Errors type definition file. Used mostly by methods in this project.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* \file hob_parser.c
|
* @file hob_parser.c
|
||||||
* \date 26/07/2022
|
* @date 26/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief Decode HOB file structure.
|
* @brief Decode HOB file structure.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* \file hob_parser.h
|
* @file hob_parser.h
|
||||||
* \date 26/07/2022
|
* @date 26/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief Decode HOB file structure.
|
* @brief Decode HOB file structure.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* \file hob_struct.h
|
* @file hob_struct.h
|
||||||
* \date 26/07/2022
|
* @date 26/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief HOB file mapping definition.
|
* @brief HOB file mapping definition.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* \file options.h
|
* @file options.h
|
||||||
* \date 29/07/2022
|
* @date 29/07/2022
|
||||||
* \author JackCarterSmith
|
* @author JackCarterSmith
|
||||||
* \copyright GPL-v3.0
|
* @copyright GPL-v3.0
|
||||||
* \brief Shared options structure definition and declaration.
|
* @brief Shared options structure definition and declaration.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef OPTIONS_H_
|
#ifndef OPTIONS_H_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user