{"repo":"EngineerSmith/Runtime-TextureAtlas","free":true,"listed":false,"github":"https://github.com/EngineerSmith/Runtime-TextureAtlas","clone":"git clone https://github.com/EngineerSmith/Runtime-TextureAtlas.git","description":"Love2D runtime texture atlas; no external tools needed","language":"Lua","stars":27,"topics":["love2d","texture-atlas","lua","gamedev","love","graphics"],"license":"MIT","category":"game-templates","readme_excerpt":"Runtime Texture Atlas (RTA) A Love2D runtime texture atlas designed to be easy to use and memory optimized. Creates texture atlas when loading than having to use an external tool to create an atlas. Tested and written on love 11.3 Android and love 11.4 Windows . There are two types of Texture atlas you have access to: Fixed Size : All images must have the same width and height Uses home-brew algorithm to pack images. Estimates size of the canvas with ceil(sqrt(numOfImages)) for the number of columns, then optimizes number of rows. (e.g. ceil(sqrt(50))=8, instead of an 8x8= grid for the atlas, it'll use 8x7 grid to avoid wasting the extra row). If you are baking an awful lot of images, and the window is freezing: see advice to solve this issues below. Note, due to algorithm constraints if it cannot get the size it requires it will throw an error. This is due to the algorithm having no wiggly room to rearrange itself. This will unlikely be an issue unless you're forcing it to fit within a rectangle. Dynamic Size : All images can be whatever size they want Uses a home-brew algorithm to pack images together based on cells. Unit tests show it takes 40% longer to bake than fixed size (This is given due to it being more complex than filling a grid). Check out packing.lua to see how they are being packed together. Originally RTA used binary tree packing which didn't produced good results. This new packing algorithm is not only (almost) twice as fast but much more better at packing im","default_branch":null,"files":null,"tree":[],"storefront":"/r/EngineerSmith","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EngineerSmith/Runtime-TextureAtlas/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}