historical/toontown-just-works.git/build/nirai/panda3d/doc/man/egg2c.1

50 lines
1.8 KiB
Groff
Raw Normal View History

2024-01-16 11:20:27 -06:00
.\" Automatically generated by egg2c -write-bam
.TH EGG2C 1 "27 December 2014" "1.9.0" Panda3D
.SH NAME
egg2c \- convert .egg geometry into compilable C tables
.SH SYNOPSIS
\fBegg2c\fR [opts] input.egg output.c
.br
\fBegg2c\fR [opts] -o output.c input.egg
.br
\fBegg2c\fR [opts] input.egg >output.c
.SH DESCRIPTION
This program reads Egg files and outputs code that will almost compile as a C or C++ program. You get to define the data structures for the program after the fact; the program only generates tables of vertices and polygons.
.SH OPTIONS
.TP
.B \-noabs
Don't allow the input egg file to have absolute pathnames. If it does, abort with an error. This option is designed to help detect errors when populating or building a standalone model tree, which should be self-contained and include only relative pathnames.
.TP
.B \-v
Generate a table of vertex positions.
.TP
.B \-u
Generate a table of UV's per each vertex.
.TP
.B \-vn
Generate a table of normals per each vertex.
.TP
.B \-vc
Generate a table of colors per each vertex.
.TP
.B \-p
Generate a table of polygons that index into the above tables.
.TP
.B \-pn
Generate a table of normals per each polygon.
.TP
.B \-pc
Generate a table of colors per each polygon.
.TP
.B \-t
Output only triangles by subdividing higher-order polygons.
.TP
.BI "\-o " "filename"
Specify the filename to which the resulting C file will be written. If this option is omitted, the last parameter name is taken to be the name of the output file, or standard output is used if there are no other parameters.
.TP
.BI "\-cs " "coordinate-system"
Specify the coordinate system of the resulting C file. This may be one of 'y-up', 'z-up', 'y-up-left', or 'z-up-left'. The default is the same coordinate system as the input egg file. If this is different from the input egg file, a conversion will be performed.
.TP
.B \-h
Display this help page.