Problem with Draw3D and bitmap fonts

Blitz3D Forums/Blitz3D Programming/Problem with Draw3D and bitmap fonts

cyberyoyo(Posted 2008) [#1]
<This was previously incorrectly posted in another forum, sorry for the double>
Hello, I hope it's ok to ask questions about a 3rd party lib here...
Anyway, I'm working with draw3D (GREAT library, congratulations to the author), but I'm running into a little problem when trying to use bitmap fonts. The fonts don't show at all.
I'm using a font graphic created with a blitz app called Fonttext. But even when I'm trying with a test picture created by hand (and not fonttext), it doesn't show anything at all.
On the other hand, the example fonts included with Draw3D work perfectly.
Is there something I'm supposed to do with the PNG to have it working, or can somebody indicate me a compatible program to create font layouts?

Alternate question: Is there a new version of DRAW3D and where can I dowload the current version (the link where I previously dowloaded it is gone)

Thanx


Dreamora(Posted 2008) [#2]
http://www.blitzforum.de/forum/viewtopic.php?t=21659&start=0
This is the official thread of Draw3D in the german community boards.

And here the official thread where you will find the download as well:
http://blitzbasic.pytalhost.de/viewtopic.php?t=88


Abrexxes(Posted 2008) [#3]
The problem is that the pixel on position 0,0 contains some informations as color values (RGB)

The red value is the size of each carakter
The green value is the distance from one carakter to the next

So if you have a black pixel there your size is "0" ;) See the 0,0 pixel of standard.png for this. (21,16,0 i think). It is recommandet to save this fonts as 24bit image and make the alpha value of the pixel 0.0 to "0".

There is a new version in beta test (3.1) and will come out nexr times. See the "BALL DEMO" thread in the "Showcase" section. Here some samples from the next version (exe).
http://www.abrexxes.huntingsoftware.de/temp3/d3d31.zip

The current version (3.0) you can find here:
http://blitzbasic.pytalhost.de/viewforum.php?f=4&sid=02498e1d756ad41cb8a925d7fb80344a

bye


cyberyoyo(Posted 2008) [#4]
Thanks a lot for the infos!


DareDevil(Posted 2008) [#5]
draw3d is very fantastic

;)