![]() #TEXTUREPACKER EXPORT TO JSON SOFTWARE#Of this software and associated documentation files (the "Software"), to deal #TEXTUREPACKER EXPORT TO JSON FREE#Permission is hereby granted, free of charge, to any person obtaining a copy Unless otherwise specified in a source file, everything in this project falls under the following license: ![]() strings are length prefixed (2 byte length) without null-terminator in -compact.strings are null-terminated in -binary. ![]() with -compact each image is padded to specified bytes (and must not exceed that in size) img_name (only in -compact, moved to end) with -compact this is padded to the next 512 bytes (if not on one already) num_images (below block is repeated this many times) num_textures (below block is repeated this many times) Binary will also do so if generated with a version of the tool supporting -compact, however specifying compact should be preferred. The 2 most significant bits can be used for any user data and will not be written by crunch.Īdditionally -compact sorts (ascending, ordinal) images by img_name. Only a format change should change this version number. Unsupported versions must be considered unknown. The -compact switch adds this additional preamble containing magic number and versionĦ3 72 6E C7 49 31 5B magic number ("crn\xC7I1[")Ġ0 format version number. | -p# | -pad# | padding between images (# can be from 0 to 16) | | -r | -rotate | enabled rotating bitmaps 90 degrees clockwise when packing | | -u | -unique | remove duplicate bitmaps from the atlas | | -f | -force | ignore caching, forcing the packer to repack | | -v | -verbose | print to the debug console as the packer works | | -t | -trim | trims excess transparency off the bitmaps | | -p | -premultiply | premultiplies the pixels of the bitmaps by their alpha channel | | -j | -json | saves the atlas data as a. bin file (with extra metadata and optimized for fast reading) | | -c | -compact | saves the atlas data as a. | -b | -binary | saves the atlas data as a. | -d | -default | use default settings (-x -p -t -u) | There is also an option to use a binary format instead of xml.Ĭrunch Ĭrunch bin/atlases/atlas assets/characters,assets/tiles -p -t -v -u -r -j Where images.png is the packed image, images.xml is an xml file describing where each sub-image is located, and images.hash is used for file caching (if none of the input files have changed since the last pack, the program will terminate). Given a folder with several images, like so:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |