17 #include "lwoToEggConverter.h" 18 #include "lwoHeader.h" 19 #include "lwoInputFile.h" 20 #include "config_lwo.h" 32 add_path_replace_options();
33 add_path_store_options();
35 add_normals_options();
36 add_transform_options();
38 set_program_brief(
"convert a Lightwave Object file to .egg");
39 set_program_description
40 (
"This program converts Lightwave Object (.lwo) files to egg. Many " 41 "rendering characteristics of Lightwave (like layered shaders, etc.) " 42 "are not supported, but fundamental things like polygons and texture " 43 "maps are. This program is primarily designed to support files written " 44 "by Lightwave version 6.x (LWO2 files), but it also has some limited " 45 "support for version 5.x files (LWOB files).");
49 "Specify the coordinate system of the input " + _format_name +
50 " file. Normally, this is y-up-left.");
54 "Specify the units of the input Lightwave file. By convention, " 55 "this is assumed to be meters if it is unspecified.");
57 _coordinate_system = CS_yup_left;
67 _data->set_coordinate_system(_coordinate_system);
69 if (_input_units == DU_invalid) {
70 _input_units = DU_meters;
75 apply_parameters(converter);
78 nout <<
"Errors in conversion.\n";
87 int main(
int argc,
char *argv[]) {
virtual void parse_command_line(int argc, char **argv)
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_...
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
This class supervises the construction of an EggData structure from the data represented by the LwoHe...
This is the general base class for a file-converter program that reads some model file format and gen...
A program to read a Lightwave file and generate an egg file.
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.