Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 7:31 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sat Sep 13, 2008 5:10 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
I already know that with the font2text application, teorically, you can render a font into a TGA file.
I compiled it and I thought that it worked with 512 or smaller textures, but no. Font2text is not working anyway.
Even if no crash the tga created is absolutely unreadable.

So could someone create a few tga textures (as big as possible) with these fonts for me? (maybe the app works in other computer)
Thanks

The thread about this mmater: viewtopic.php?f=7&t=842
The link to the font2text: http://frustum.org/misc/data/other/file/font2tex.tar.gz
The fonts I want to convert into TGA texture: http://www.guadagames.com/versusrx/fonts.tar.bz2


Top
 Profile  
 
PostPosted: Sun Sep 14, 2008 9:50 am 
Offline

Joined: Mon Aug 25, 2008 1:08 pm
Posts: 67
http://pangototga.berlios.de/

font to tga for game applications :)

_________________
Image


Top
 Profile  
 
PostPosted: Sun Sep 14, 2008 5:03 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Ouch what a sadness....
That application looked great, however the result file (after a bit tunning to be raydium compatible) was not usable.
All the characters are left aligned and in general bad positioned, so is not useful :cry:


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 12:25 am 
Offline

Joined: Tue Jul 08, 2008 2:37 am
Posts: 181
I've managed to create a new Raydium compatible 512x512 TGA font file using an ugly way, but it works.

This example font is intended to be used for the console: font4.tga Look and see!
IMHO, it looks much better than the "official" font2.tga one on higher resolutions and is may be a little bit to small for 800x600 and lower resolutions.

Short How-To create a new font:
1. I'd to emulate a Windows session to use this tool: Bitmap Font Generator VirtualBox was my friend. ;)

As you can see on this picture the program has exactly the Raydium font alignments.
Image

2. You have to install the fonts under Windows. (e. g. right-click on the TTF or FON file and 'Install...')
3. Select your favorite font and disable UNICODE to get a greater canvas!
4. Now the ugly part, don't use the regular export to TGA function, since this will export an unusable file for Raydium (I was not able to get this working), we will take a picture instead.
5. Resize the window to get the canvas area 512x512 or higher, try to keep the 1:1 aspect ratio.
6. Take a screenshot and cut the canvas with your favorite image manipulation program. (e. g. The GIMP)
7. Invert the colors.
8. Fix the boxes not including a character of the font with black color.
9. Remove the alpha channel.
10. Set the image from RGB to grayscale.
11. Resize to 512x512 if necessary and test it with Raydium.

I hope this little "How-To" will help you to reach your goal.


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 10:07 am 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Very useful, thanks ! Wasn't it possible to save the file to a standard image format and then open the file with, let say, GIMP and save it again, this time as a Raydium compliant TGA file ?

edit: you're right, this font4 looks good in fullscreen, but is hardly readable in small windows. Maybe can we generate again font2 with this application ?


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 11:19 am 
Offline

Joined: Tue Jul 08, 2008 2:37 am
Posts: 181
Xfennec wrote:
Wasn't it possible to save the file to a standard image format and then open the file with, let say, GIMP and save it again, this time as a Raydium compliant TGA file ?
No, in order to avoid misunderstandings: You can configure and set the (export) options of the program as much as you like, but it never looks nearly the same as in the preview (canvas).
The Raydium specific character alignments are broken and the resulting image file looks everytime something like this:
Image

Xfennec wrote:
Maybe can we generate again font2 with this application ?
Yeah, good idea, I'll try to recreate ... but do you have any idea what font actually was used for font2.tga?
WhatTheFont?! gives to many different results. What font should I use to recreate font2.tga?


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 12:26 pm 
Offline

Joined: Tue Jul 08, 2008 2:37 am
Posts: 181
vicente wrote:
So could someone create a few tga textures (as big as possible) with these fonts for me?
The fonts I want to convert into TGA texture: http://www.guadagames.com/versusrx/fonts.tar.bz2

This package includes all fonts, they are all Raydium ready: fonts.tar.gz (font4.tga, bitstream.tga, gilgongo.tga, komika.tga, steve.tga, toontime.tga)


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 12:33 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
OK about the differences between preview and saved image, I misread your previou post.

About font2.tga, I think it's "Lucida" (probably console, typewriter, or something like that).

edit: nice pack, with some funny ones :)


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 1:29 pm 
Offline

Joined: Tue Jul 08, 2008 2:37 am
Posts: 181
Xfennec wrote:
I think it's "Lucida" (probably console, typewriter, or something like that).
It's Lucida Console, exactly! :D

Differences between old and new font:
ImageImage
Here is the new one, which IMHO looks much cleaner in-game with high and also low resolutions: font2.tga


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 2:46 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Nice ! The new one looks less blocky, and have a better anti-aliasing. I've uploaded the new file to the repository.

So, to all: wait an hour (to let the mirror do its job) and delete your font2.tga file :)


Top
 Profile  
 
PostPosted: Mon Sep 29, 2008 4:23 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Great! :D Thanx you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group