Sign in to follow this  
openglinator

Bitmap Font Creator issue with multi channel glyphing

Recommended Posts

openglinator    144

Hello,

I'm getting a bug with 1.3 and 1.4 beta of Bitmap Font Creator:

 

My font ("Batang") renders nicely with white on black, or with alpha, exports to .png is totally okay.

But when I select the export option [x] "Pack chars in multiple channels", I get a picture with every pixel = (1,1,1,1) or (0,0,0,0).

I've tested many different other options together with it.

 

What I would expect to see: A very colorful image seemingly consisting of random colors (every of the 4 image channels populated with glyphs).

Share this post


Link to post
Share on other sites
WitchLord    4677

Hi Ogli,

 

Your expected result is correct. 

 

Can you post your .bmfc configuration file so I can have a look at the settings you use when getting the unexpected result?

 

Thanks,

Andreas

Share this post


Link to post
Share on other sites
WitchLord    4677

There isn't anything wrong. You just don't see the result you expected because your texture size is so large that all glyphs fit into the first channel (alpha), thus the rgb channels were left blank.

 

Reduce the size of the texture and you'll see the colorful mess you had expected ;)

Share this post


Link to post
Share on other sites
openglinator    144

Okay, I inspected the color channels in GIMP again, but with a different technique.

R,G,B are indeed populated 100%, 100%, 64%. Only Alpha is not populated (0%).

That's exactly what I expected. GIMP just tricked me, because it worked not like I expected it to work.

 

2nd (minor issue, but would be nice too)

The option with alpha=one, red=glyph, green=glyph, blue=glyph doesn't work as expected.

I tried this because I wanted to see the result with a simple image viewer.

Share this post


Link to post
Share on other sites
WitchLord    4677

When choosing the option "pack characters in multiple channels" only the choice of the alpha channel will affect the output as this choice will be repeated in all channels (that's why the red, green, and blue choice boxes are dimmed out). If you then choose an alpha channel with value one or zero, you'll get an empty texture (either white or black).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this