Syntax
dae2json [options] -i source.dae -o target.json
Convert Collada (.dae) files into a Turbulenz JSON asset. dae2json is based on the Collada specification http://www.khronos.org/files/collada_spec_1_5.pdf.
The engine uses Y up convention. There is some support for conversion from X and Z up but modeling with Y up is recommended.
This tool uses the Standard Asset Tool Options.
Added SDK 0.25.0
Path to NvTriStripper, setting this enables vertex cache optimizations.
dae2json -v -m -i assets/models/duck.dae -o apps/sampleapp/models/duck.dae.json
Syntax
obj2json [options] -i source.obj -o target.json
Convert Wavefront (.obj) files into a Turbulenz JSON asset.
This tool uses the Standard Asset Tool Options.
obj2json -v -m -i assets/models/watercan.obj -o samples/models/watercan.obj.json
Note
The tool does not have support for .mtl files yet, but expects any relevant materials to be declared in a .material file and included as a dependancy in deps.yaml
The tool sets the default node name of the asset parsed to be the file name (without the path), unless anything else is supplied. This could lead to clashes with other nodes with the same name.
Each surface is assumed to only have a single material. A new surface will be made upon requiring a new material.
Syntax
material2json [options] -i source.materials -o target.json
Convert Material Yaml (.material) files into a Turbulenz JSON asset.
This tool uses the Standard Asset Tool Options.
material2json -v -m -i assets/materials/defaults.material -o apps/sampleapp/materials/materials.json
Syntax
effect2json [options] -i source.effects -o target.json
Convert Effect Yaml (.effect) files into a Turbulenz JSON asset.
This tool uses the Standard Asset Tool Options.
effect2json -v -m -i assets/effects/defaults.effect -o apps/sampleapp/effects/effects.json
Syntax
bmfont2json [options] -i source.fnt -o target.json
Convert Bitmap Font Generator data (.fnt) files into a Turbulenz JSON asset. Only text .fnt files are supported.
Show version number and exit.
Show help message and exit.
Verbose output.
Silent running
Output asset metrics
Write to log file
JSON output pretty printing indent size, defaults to 0.
Texture URL to prefix to all texture references.
PATH of the asset root.
Input file to process.
Output file to process.
bmfont2json -v -i assets/fonts/opensans.fnt -o apps/sampleapp/fonts/opensans.json
Syntax
maptool [options] basemap.json
Adds profile entries to the overrides section of mapping table basemap.json and write the output to a file or stdout. See The MappingTable Object for further details.
(optional) Write to a file (instead of stdout)
Add the table in maptable.json as a profile called name to the overrides section of basefile.json. The profile must not already exist in basefile.json. If parent is specified, the profile is specified as inheriting from the profile of that name. The parent profile must already exist in basefile.json or be added in the same invocation. This option can be used multiple times in the same invocation.
Show version number and exit.
Show help message and exit.
Verbose output.
Silent running
Output asset metrics
Write to log file
JSON output pretty printing indent size, defaults to 0.
Keep images with no references to them.
Only include objects of class TYPE in export.
Exclude objects of class TYPE from export.
Note
Classes currently supported for include and exclude: geometries, nodes, animations, images, effects, materials, lights, physicsmaterials, physicsmodels and physicsnodes.
Warning
Using these options can create incomplete assets which require fixup at runtime.