Comments (4)
LMFAO!!!!! omg. Better late than never! =) have fun
from magnum.
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.
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.
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.
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.
from magnum.
Related Issues (20)
- MacOS: GlfwApplication.cpp::currentGlfwModifiers wrongly detects modifiers in mouseMoveEvent HOT 7
- magnum example code can't find SDL2 file HOT 2
- CorradeMain.lib - unresolved external symbol main HOT 3
- Provide a passthrough access to image data from scene importers HOT 1
- Update vcpkg packages to include EmscriptenApplication on Emscripten HOT 2
- Failing to link Magnum::Math? HOT 3
- few compile warnings HOT 1
- How to point to a local installation of `corrade` without using the bootstrap project? HOT 3
- undefined symbol: flextGLInit HOT 4
- Image rendered in gray since 1847c72 HOT 18
- Emscripten 3.1.21+ crashes EmscriptenApplication: "AsciiToString is not defined" HOT 4
- How to build from source on MSYS2 MINGW64? HOT 1
- keyReleaseEvent not triggered after printscreen on OSX HOT 6
- Conversion from CubicHermite to Bezier is wrong
- Mixing with raw openGL calls and Context::current().resetState() HOT 3
- C Bindings HOT 5
- WebGPU backend HOT 2
- Parallel rendering with glb files HOT 5
- Conflict with near and far Macros When Including WinSock2.h After Matrix4.h HOT 2
- emsdk compile error: typedef redefinition with different types HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magnum.