https://github.com/Simsilica/JmeConvert
A command line utility for converting models to J3O and copying their dependencies to a new target structure.
https://github.com/Simsilica/JmeConvert
Last synced: 8 months ago
JSON representation
A command line utility for converting models to J3O and copying their dependencies to a new target structure.
- Host: GitHub
- URL: https://github.com/Simsilica/JmeConvert
- Owner: Simsilica
- License: bsd-3-clause
- Created: 2019-05-11T07:18:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T23:16:09.000Z (12 months ago)
- Last Synced: 2024-10-26T11:46:33.058Z (12 months ago)
- Language: Java
- Size: 7.94 MB
- Stars: 21
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
- Awesome-JMonkeyEngine - JmeConvert
README
# JmeConvert
A command line utility for converting models to J3O and copying their dependencies to a new target structure.
```
Current command line help:
_ __ __ ___ ___
_ | | | \/ | | __| / __|
| || | | |\/| | | _| | (__
\__/ |_| |_| |___| \___|JME3 Asset Converter v1.0.0 build:2019-05-17T03:46:59-0400
03:47:00,290 INFO [Convert] Max memory:3641.00 mb
Usage: jmec [options] [models]Where [models] are a list of JME-compatible model files.
Where [options] are:
-sourceRoot : specifies the asset root for the models.
Model dependency paths will be evaluated relative to this root.-targetRoot : specifies the asset target root for writing
converted assets and their dependencies.-targetPath : a path string specifying where to place
the copied/converted assets within the targetRoot. Any
internal asset keys will be 'rehomed' to this path.-script : a script file that will be run against the model
before writing out. Any number of script files can be specified
and they will be run in the order specified.
Groovy and Javascript are supported 'out of the box' but any
JSR 223 compatible scripting engine should work if on the classpath.-probe [probe options string] : configures the information that the probe
will output.
[probe options]:
A : all options turned on, same as: btrscpdu
b : show bounding volumes
t : show translations
r : show rotation
s : show scale
c : show the list of controls
p : show material parameters
u : show user-added data
d : list asset dependenciesExamples:
>jmec -sourceRoot C:\Downloads\CoolModel -targetRoot assets -targetPath Models/CoolModel C:\Downloads\CoolModel\AwesomeThing.gltf
Converts C:\Downloads\CoolModel\AwesomeThing.gltf to a j3o and writes it
to ./assets/Models/CoolModel/AwesomeThing.gltf.j3oAny dependent textures, etc. relative to C:\Downloads\CoolModel will
be copied until the appropriate ./assets/Models/CoolModel/* subdirectory.For example:
C:\Downloads\CoolModel\textures\awesome-sauce.jpg
Gets copied to:
./assets/Models/CoolModel/textures/awesome-sauce.jpg
```