| Crates.io | open_texture_packer |
| lib.rs | open_texture_packer |
| version | 0.2.5 |
| created_at | 2024-09-26 13:08:28.285823+00 |
| updated_at | 2025-04-11 11:03:13.179916+00 |
| description | Open source and free Texture Packer tool written in rust. |
| homepage | https://github.com/webcyou-org/open-texture-packer |
| repository | https://github.com/webcyou-org/open-texture-packer |
| max_upload_size | |
| id | 1387459 |
| size | 360,539 |
Open source and free Texture Packer tool written in rust.
brew tap webcyou-org/tap
brew install open-texture-packer
cargo install open_texture_packer
The otp command is available upon installation.
otp <any option>
cargo add open_texture_packer
[dependencies]
open_texture_packer = "0.2.1"
Specifies the path of the directory containing the images to be textured.
otp <input_directory>
You can also specify an arbitrary directory for the output destination
otp <input_directory> [output_directory]
If nothing is specified, images in the current directory are retrieved.
otp
In the development environment, it can also be run with cargo run.
cargo run <input_directory>
cargo run <input_directory> [output_directory]
cargo run
When performed when three sprites (sprite1.png, sprite2.png, sprite3.png) of different sizes are present in a directory
The following files are generated in the output
texture_sheet_1.css
texture_sheet_1.json
texture_sheet_1.png
The texture_sheet_1.png is merged to produce a texture image as follows
Currently, the process is similar to Shelf Packing and Next Fit.
We plan to add them in the near future and make them selectable.
Daisuke Takayama
Copyright (c) 2024 Daisuke Takayama Released under the MIT license