Page 1 of 1

Smooth fonts?

Posted: Tue Aug 23, 2005 11:58 am
by Andi|xng
Is there any possibility to "antialias" Irrlicht's bitmap fonts?
Here is a example of my font (3x zoom):

Image

But when I use this font, I get this (3x zoom):
Image

It seems, as if all pixels that are not completely black are interpreted as white pixels.
I know, that Irrlicht has no problems with handling 32 bit images (8 bit alpha). Why isn't is possible to use smooth fonts? Or is there any possibility? If yes, how? Thank you :)

Posted: Tue Aug 23, 2005 4:20 pm
by Fred
The links to your images are wrong - it asks me to login to some site to view them.

Posted: Wed Aug 24, 2005 9:11 am
by Andi|xng
You are right... Sorry for that :(
Now it should work... Any ideas?

Posted: Wed Aug 24, 2005 12:32 pm
by bitplane
looks like the font code uses a mask, pixels are either on or off. If you want smooth edges I'd suggest merging the the code to the animated sprite class on the wiki and the font loading code to make a 'text mesh' node that can make use of all irrlicht's material options... and sharing it of course :)

Re: Smooth fonts?

Posted: Thu Aug 25, 2005 6:44 pm
by niko
Andi|xng wrote:alpha). Why isn't is possible to use smooth fonts?
Because I didn't implement it yet. But I put it on my list now, with a little luck it will be in the next version.

Posted: Fri Aug 26, 2005 7:25 am
by Guest
Irrlicht is great.. it rocks. But I ditched the font making stuff and popped in my own bitmap font class. Make the fonts in photoshop with outlines, strokes, drop shadows etc.. magic wand surround them, cut them out, add a mask layer and save as png. voila perfectly smooth alpha fonts with variable colour from in the engine.

Irrlicht makes it easy to add this - use draw2dimage in your font class.. the one i have now is extremely fast.

Posted: Tue Aug 30, 2005 11:49 am
by Andi|xng
Since I am not a C++ programmer, but using the Java binding Jirr, I can not implement my own font class.
But it's very great to hear that it is on the ToDo-list now. Thanks, Niko :D