28 add_path_replace_options();
29 add_path_store_options();
31 add_normals_options();
32 add_transform_options();
34 set_program_brief(
"convert a Lightwave Object file to .egg");
35 set_program_description
36 (
"This program converts Lightwave Object (.lwo) files to egg. Many " 37 "rendering characteristics of Lightwave (like layered shaders, etc.) " 38 "are not supported, but fundamental things like polygons and texture " 39 "maps are. This program is primarily designed to support files written " 40 "by Lightwave version 6.x (LWO2 files), but it also has some limited " 41 "support for version 5.x files (LWOB files).");
45 "Specify the coordinate system of the input " + _format_name +
46 " file. Normally, this is y-up-left.");
50 "Specify the units of the input Lightwave file. By convention, " 51 "this is assumed to be meters if it is unspecified.");
53 _coordinate_system = CS_yup_left;
61 _data->set_coordinate_system(_coordinate_system);
63 if (_input_units == DU_invalid) {
64 _input_units = DU_meters;
69 apply_parameters(converter);
72 nout <<
"Errors in conversion.\n";
81 int main(
int argc,
char *argv[]) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_liblwo()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
void write_egg_file()
Writes out the egg file as the normal result of the program.
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.