Writer Directives
The directives that are processed by the DirectX writer are listed below. The suffixes shown are prefixed by the current <WriterKeyword>
_ in a mapping file. By default, the <WriterKeyword>
for the DirectX writer is DIRECTX
.
DATASET
The value for this directive is the path to the output folder. If the output folder does not exist, the writer will create a new one.
The output file will be created within the specified folder. All associated texture files, if any, will be written to the same folder.
For example, if the output folder is C:\DirectXFiles\house\ and the Feature Type Name is “shed” the output file will be C:\DirectXFiles\house\shed.x.
If an output file exists, the writer will overwrite it. If other applications have an output file opened, the writer will be unable to continue and the translation will fail.
Required/Optional
Required
Workbench Parameter
Destination DirectX Folder
FILE_TYPE
Values
Text (default) | Binary | Compressed Binary.
- Text: produces a human-readable text file that can be examined using a text editor.
- Binary: produces a binary version of the file in the legacy binary format, which are generally smaller than the text version.
- Compressed Binary: produces a compressed version of the file.
Required/Optional
Optional
Workbench Parameter
Output File Type
LHCS_CONVERSION
DirectX uses a left-handed coordinate system (LHCS), while FME natively uses a right-handed coordinate system.
During export, FME features will be transformed to convert to a LHCS according to the option selected on the writer.
Values
Flip Z: FME will convert to LHCS by scaling all z-values by negative one (-1).
Swap Y and Z: FME will convert to LHCS by swapping the Y and Z axes.
Required/Optional
Optional
Workbench Parameter
Conversion to LHCS Method
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