glTF (GL Transmission Format) Writer Parameters
glTF Version
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
This parameter controls the type of files the writer will produce.
普通(纹理和二进制数据存储在单独的文件中)
这是参数的默认值。
- The writer will produce a number of files for each feature type.
- The structure and metadata of the 3D scene will be stored in a.gltf文件。
- 坐标和其他相关几何数据将存储在仓文件,which will be referenced from the.gltf文件。
- 任何纹理都将写入单独的文件,as determined by the values in theTexture/Materialparameters group.
Single JSON File (textures and binary data are stored as base64 strings)
This option is useful when a 3D scene is required to be stored in a single file,rather than spread across multiple files.
- The writer will produce a single.gltf每个功能类型的文件,and this file will contain an entire 3D scene.
- 所有纹理和几何数据将以base64编码字符串的形式存储在JSON中。
Single Binary File (using the KHR_binary_glTF extension)
This option will produce smaller files than theSingle JSON File...option.
- The writer will produce a single.glb每个功能类型的文件,and this file will contain an entire 3D scene.
- The writer will use theKHR_binary_glTFextension,which allows binary geometry data as well as textures to be stored in a single file.
Texture/Material
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
This parameter is only applicable when theglTF File Formatparameter is set toNormal.It defines the folder the in which the writer should output texture files used in the 3D scene.The texture output folder is usually a subfolder of the output dataset but can be any path relative to the output dataset.All texture 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 glTF files that share the same texture image file.If possible,texture file names will be the same as the original raster filename.
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
Specifies the preferred format for associated texture files.This preference will be used as long as the specified format supports the properties of the texture raster;if not,it will be overridden.
In the defaultAuto模式,the writer chooses the best representation based on the incoming texture raster.
If the preferred format is ignored,一条消息被添加到日志文件中。Possible reasons that the preference will be ignored include a lack of raster palette support,alpha channel support,or color depth support in the selected format.
JSON Formatting
这些参数仅适用于glTF File Formatparameter is set toNormalorSingle JSON File.
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
- 漂亮的打印:GLTF编写器生成的JSON将被格式化,以便于阅读。This will increase the output file size.
- Linear: The JSON produced by the glTF writer will be written without any unnecessary whitespace.This reduces the output file size at the expense of human readability.
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
This parameter is only applicable when the格式化类型parameter is set toPretty Print.此参数允许您控制如何在格式化的JSON中写入缩进空白。Each indentation level may be written as a number of space characters,或者作为单个制表符。
Coordinate System
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
Note that not all formats offer all the options described below.
- Yes:Coordinates of all the points in the written features will be normalized to the interval [-0.5,0.5] on the largest side of their XYZ-bounding cube.The other dimensions will be scaled proportionally.
此外,the transformation matrix required to scale the model back to world coordinates will be written to a companion.fwt文件。This can be used to improve precision of the written coordinates.The companion.fwtfile will have the same name as the primary data file and will be written in the same folder.For folder-based formats,文件global.fwt将改为书写。
- No:The original coordinates will be written as provided.坐标不会被投影;.fwtworld and.prj不会生成文件。
- 仅创建投影文件:A companion.prjfile containing the coordinate system and having the same name as the primary data file will be written in the same folder.For folder-based formats,文件global.prj将改为书写。Coordinates will not be projected and a world file will not be generated.
- Transform Coordinates Only:Transforms the coordinates as in theYesoption,but companion.prjand.fwtworld files will not be generated.