Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Bitmap Font Creator issue with multi channel glyphing


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 Ogli   Members   -  Reputation: 137

Like
0Likes
Like

Posted 19 November 2013 - 03:12 PM

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).



Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3227

Like
0Likes
Like

Posted 19 November 2013 - 04:56 PM

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


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#3 Ogli   Members   -  Reputation: 137

Like
0Likes
Like

Posted 19 November 2013 - 05:58 PM

Of course,

Here are the latest three test configurations:

 

http://www.lostplanets.de/files/fonttest_configuration_12a.bmfc

http://www.lostplanets.de/files/fonttest_configuration_12b.bmfc

http://www.lostplanets.de/files/fonttest_configuration_12c.bmfc

 

I wonder what I did wrong. Noob I am. :)



#4 Ogli   Members   -  Reputation: 137

Like
0Likes
Like

Posted 19 November 2013 - 06:03 PM

<Edit>

When I set 2048 x 2048 I get the same. The 4096 x 4096 is of course too large - the first channel (red) would have all glyphs.



#5 Andreas Jonsson   Moderators   -  Reputation: 3227

Like
0Likes
Like

Posted 19 November 2013 - 06:44 PM

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 ;)


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#6 Ogli   Members   -  Reputation: 137

Like
0Likes
Like

Posted 19 November 2013 - 07:32 PM

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.



#7 Andreas Jonsson   Moderators   -  Reputation: 3227

Like
0Likes
Like

Posted 19 November 2013 - 07:41 PM

What did you get with that option? You should see white glyphs on a black background with that option (considering 32bit output and not packed in multiple channels of course)


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#8 Ogli   Members   -  Reputation: 137

Like
0Likes
Like

Posted 19 November 2013 - 07:46 PM

No, this is all about multi channel glyphing. :-)

 

I expected 'random' colors and alpha channel = 1. But all the channels seem to have = 1.

 

 

Btw, thanks for your swift replies.



#9 Andreas Jonsson   Moderators   -  Reputation: 3227

Like
0Likes
Like

Posted 19 November 2013 - 08:58 PM

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).


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS