#command-line-interface #game-engine #assets #gltf #game-assets #drum #ira

app ira_cli

Command line interface for preparing assets for Ira

3 releases (breaking)

0.3.0 Jun 24, 2024
0.1.0 Jun 14, 2024
0.0.6 Jun 14, 2024

#628 in Game dev

Download history 6/week @ 2024-09-10 1/week @ 2024-09-17 5/week @ 2024-09-24 1/week @ 2024-10-01

128 downloads per month

MIT license

14KB
107 lines

Ira CLI

A command-line interface for the Ira game engine.

Usage: ira <COMMAND>

Commands:
  pack  Packs various game assets (glTF, etc.) into a single Drum
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

Installation

cargo install ira_cli

Packing assets

> ira pack --help
Packs various game assets (glTF, etc.) into a single Drum

Usage: ira pack [OPTIONS] --output <OUTPUT> [ASSETS]...

Arguments:
  [ASSETS]...  The entry files to pack

Options:
  -o, --output <OUTPUT>            The output path for the Drum
  -i, --irradiance <IRRADIANCE>    A path to the irradiance map
  -p, --prefiltered <PREFILTERED>  A path to the prefiltered map
  -b, --brdf <BRDF>                A path to the BRDF LUT
  -c, --compress                   Whether to use Block Compression for textures
  -s, --srgb                       Whether the assets are in sRGB color space
  -m, --mipmaps [<MIPMAPS>]        The number of mipmaps to generate for textures. If not specified, mipmaps will be generated automatically
  -h, --help                       Print help

> ira pack models/bottled_car/scene.gltf -i ibl_irradiance_map.png -p ibl_prefilter_map.png -b ibl_brdf_lut.png --compress --mipmaps -o car.drum --srgb

Dependencies

~9.5MB
~180K SLoC