Jump to content
  • Advertisement
Sign in to follow this  
openglinator

BitmapFont - looking for atlas-packing-function

This topic is 1467 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Greetings,

I'm trying to achieve some good uv map packing for an user-created bitmap font.

Can you point me to the name of the file and the name of your packing function?

smile.png

Share this post


Link to post
Share on other sites
Advertisement

I'm not sure if the algorithm that I use in BMFont is suitable for uv map packing. It works well for bitmap fonts since there is little variation between the sizes of each glyph, but when the sizes vary a lot the algorithm tend to leave a lot of unused space in the texture.

 

Anyway, the starting point for the packing algorithm I use is in the method CFontPage::AddCharsToPage that you'll find here: http://svn.code.sf.net/p/bmfont/code/trunk/source/fontpage.cpp.

 

Regards,

Andreas

Share this post


Link to post
Share on other sites

Thanks a lot for the link to that article. I hadn't seen it before. Promptly added to my reference DB :)

 

I didn't do a detailed read, but I don't think any of the algorithms presented in the article matches what I do in BMFont, though the skyline algorithm does appear to have some similarities. 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!