Writer Directives
The directives that are processed by the OpenFlight writer are listed below. The suffixes shown are prefixed by the current <WriterKeyword>_
in a mapping file. By default, the <WriterKeyword>
for the OpenFlight writer is OPENFLIGHT
.
DATASET
The value for this directive is the path to the output folder. If the output folder does not exist, then the writer will create a new folder.
An output .flt file will be created for each feature type within the specified folder.
For example, if you are writing to feature types house and barn to
dataset c:\data\openflight
then you will have files
c:\data\openflight\house.flt
and
c:\data\openflight\barn.flt
Feature type fanout is supported in Workbench.
Required/Optional
Required
Mapping File Syntax
OPENFLIGHT_DATASET c:\data\openflight
Workbench Parameter
Destination OpenFlight Folder
OPENFLIGHT_MASTER_DATASET
If this parameter field is set, a master file will be created at the end of the writing process. The master file will contain references to the OpenFlight files that have been written out for each feature type during the translation.
Required/Optional
Optional
Mapping File Syntax
<File name of master file to create>
Workbench Parameter
Master Dataset (.flt)
FORMAT_VERSION
OpenFlight format versions:
16.1 (default) | 15.7 | 15.8
Required/Optional
Optional
Workbench Parameter
OpenFlight Version
TEXTURE_OUTPUT_DIR
The folder to write texture files referenced by the OpenFlight .flt
files.
The texture output folder is generally a subfolder of the output dataset but can be any path relative to the output dataset. All textures image files for the dataset being produced will be written to this folder.
Textured appearances that are shared between feature types of the same dataset will produce materials in different flt
files that share the same texture image file.
Texture file names are based on the FME appearance name. Existing old files of the same name from another run, or perhaps another dataset, will be overwritten with new files of the same name.
Required/Optional
Optional
Workbench Parameter
Output Texture Folder
TRISTRIP_GEOMETRY
By default, the OpenFlight writer processes all geometry into triangles and creates an flt polygon structure for each triangle.
If this option is turned on, the writer will attempt to combine adjacent state sharing triangles into triangle strips and store them in flt mesh structures.
This optimization can significantly compress geometry to save space and reduce load time.
If you turn this option on, be sure your OpenFlight consuming applications support the mesh structure because some viewers are known to ignore OpenFlight mesh records.
Required/Optional
Optional
Values
Yes | No (default)
Workbench Parameter
Compress Geometry
AUTOCORRECT_NORMALS
By default, the OpenFlight writer will automatically add normals to any surface that does not already have them.
If the option is turned off, surfaces may not be shaded properly.
Required/Optional
Optional
Values
Yes (default) | No
Workbench Parameter
Repair Missing Vertex Normals
MOVE_TO_LOCAL_COORDSYS
Required/Optional
Optional
Values
Yes| No (default) | PRJ_ONLY
Workbench Parameter
Move to Local Coordinate System
TEXTURE_OUTPUT_FORMAT
Required/Optional
Optional
Values
PNG | JPEG | GIF | BMP | ECW | ERDAS | GEOTIFF | INGR | JPEG2000 | MRSID | PCIDSK | SGI | TIFF | XPM | Auto (default)
Workbench Parameter
Preferred Texture Format