Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 1.17 KB

README.md

File metadata and controls

40 lines (36 loc) · 1.17 KB

Sprack

A tool for packing sprites/lightmaps/whatever textures into atlases.

Written while learning Rust. Inspired by TeamHypersomnia/rectpack2D and @blackpawn's Packing Lightmaps text.

Suggestions are welcome!

TODO
  • Base algorithm
  • Sprite flipping support (attempt fit rotated by 90°)
  • Heuristics
    • Sort by area
    • Sort by perimeter
    • Sort by max side
    • Sort by width
    • Sort by height
    • Sort by squareness × area
    • Sort by squareness × perimeter
  • Demo rectangles packing, writing output images
  • Picking best result
  • Atlas compacting
  • Atlas trimming
  • Writing sprites
  • Split code into two crates (bin and lib)
  • Make lib crate extensible with custom heuristics
  • Command-line argument processing
  • Add metadata output
    • JSON
    • YAML
    • RON?
    • Protobuf?
  • Use logger instead of println!
  • Add manual and more details to README.md
  • Multi-threading
  • Tests?
  • Benchmarks?
  • Add optional border and padding?
  • Refactor until feel pride