Git Product home page Git Product logo

Comments (4)

ArEnSc avatar ArEnSc commented on April 28, 2024 2

LMFAO!!!!! omg. Better late than never! =) have fun

from magnum.

ArEnSc avatar ArEnSc commented on April 28, 2024

I think I would be genuinely interested in doing this based on the RectangleBinPack Algorithm which is something I wanted to implement a while ago. This will be looked at after the windowless opengl fix.

from magnum.

mosra avatar mosra commented on April 28, 2024

Would be great to finish this before the issue turns 10 years old, heh.

Just for the record, an alternative and very specialized algorithm was added recently: https://blog.magnum.graphics/backstage/pot-array-packing/

from magnum.

mosra avatar mosra commented on April 28, 2024

Okay, it had to take 11 years after all. As of 66bf0b2 there's a new TextureTools::AtlasLandfill packer, which is based on a very simple idea of tracking currently filled height and filling the image in a linear fashion bottom-up. Thus, "Landfill". It's also capable of incremental packing and has support for texture arrays.

atlas-landfill

Combined with pre-sorting the items from highest to shortest and making the items all the same orientation it has efficiency comparable to stb_rect_pack, while being significantly faster. This is just an initial implementation aimed at glyph packing however, its efficiency and speed properties, especially for packing larger and more varying input sizes, are likely to improve further.

image

from magnum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.