3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2] 3

Author Topic: Automated Font Maker for 3D Rad  (Read 8208 times)

psikotropico

« Reply #15 on: June 05, 2010, 11:52:18 PM »
sweet... thanks very much, jestermon... now it's a super tool

In order to make an alpha layer in Photoshop
*  Select the background color with the magic wand select tool
*  Use menu Select->Similar, to get all pieces inside the characters
*  Use menu Select->Inverse
*  Do an Edit->Copy  (Ctrl-C)
*  Do an Edit-Paste  (Ctrl-V)
*  Create your alpha channel from this new layer.

thanks for advice, but there's a quicker way to do that from pngs with transparency:

* In the layers window, Ctrl + click over the layer icon
* Selection > Save selection

now you have your alpha channel. The problem I had was making this procedure from a 512x512 png, but now I can resample it from a 2048x2048 and gain much more quality...

thanks again!
« Reply #16 on: August 30, 2010, 11:36:18 AM »
Maybe I'm late with my thanks..
It's really easy to make a font for 3DRad with your tool, easier only by miracle  8).
So many thanks !

jestermon

« Reply #17 on: August 30, 2010, 03:06:20 PM »
Maybe I'm late with my thanks..
It's really easy to make a font for 3DRad with your tool, easier only by miracle  8).
So many thanks !
Glad you like it.
Nice screenshot.
« Reply #18 on: August 30, 2010, 06:27:39 PM »
thanx 4 this tool
makes things a lot easier

ninkeon58

« Reply #19 on: August 31, 2010, 12:42:56 AM »
Awesome work! At least I won't have to make my own with GIMP anymore.
« Reply #20 on: August 31, 2010, 01:29:14 AM »
Hi Jestermon I don't know how you do it (i mean spend your time) this is great thanks

jestermon

« Reply #21 on: August 31, 2010, 02:25:13 AM »
A renaissance in fonts.. Glad you guys have a use for it :)
« Reply #22 on: September 02, 2010, 01:13:54 PM »
very cool. I'm going to use :)
See my web:
« Reply #23 on: September 02, 2010, 04:07:06 PM »
This is great, thanks :D
« Reply #24 on: October 03, 2010, 02:51:12 PM »
congratulations on being on of them most awsomest people on 3drad
« Reply #25 on: December 19, 2010, 10:43:36 AM »
Hi,Jestermon  :).
As always I hope you will help.
I'm back to my old problem. I can't make cyrillic font for 3D Rad.
I tried and had a hard time with making it  ???. I had a look at .ttf file and noted that there are five "sets" of letters (e.g. in the attached font):small cyrillic, small latinic,big cyrillic, big latinic and figures/signs.
When RadFontMaker makes a 3D Rad font, it "reads"(as far as I see) just small and big latinic and figures/signs out of .ttf file and it comes out latinic 3D Rad font.
Is it possible to make cyrillic 3D Rad font ?
(I think there are some other 3D Rad users who met the problem,making a
game with national alphabets: arabic,devanagari and others).
Thanks a lot in advance.
« Last Edit: December 19, 2010, 10:47:53 AM by Alec »

jestermon

« Reply #26 on: December 19, 2010, 12:34:04 PM »
Hi,Jestermon  :).
... I can't make cyrillic font for 3D Rad.

Hi Alec, the problem is the way in which 3D Rad handles fonts for use in the game. Not because it is limited, but because of the way that DirectX works.

3D Rad uses a set of .x files for the Textprint object. Each file is a 2 polygon flat mesh that has an image UV mapped onto it. The image is made up of 127 possible characters .. As you can see in the default font image. The normal range of ascii characters that gets used is 0-127



Cyrillic fonts are unicode based, and are made up of codes that don't fall in the ascii table range. You do get special cyrillic fonts that use the upper ascii range of 128-255, but these are specially made fonts.

If you look at the ascii table, you can see what I mean by how each letter, number and sign is mapped to an ascii value


In order to make a special cyrrilic font for you, I will have to make a special set of .x files with a new image that is UV mapped to ascii codes 128 and upwards. Because 3D Rad uses its pwn internal method for placing, spacing and displaying the .x files it uses for text, I don't know if one will be able to use a special set of 128+ ascii characters without seeing the normal 0-127 character set.

@Fernando. Is it currently possible (without any changes in the engine) to UV map a full 256 character ascii set for display by the Texprint functionality. In other words, If I mapped a texture to the appropriate XX.x character file, would the relevant character/letter be displayed if I referenced it by its ascii/ character, as can currently be done with the lower 0-31 codes?

If Fernando says what I asked is possible, then I will be able to update the Font Maker to do what you need Alec.
« Last Edit: December 19, 2010, 12:37:14 PM by jestermon »
« Reply #27 on: December 19, 2010, 02:15:09 PM »
OK. Thank you very much for the detailed answer  :) 8)!
« Reply #28 on: December 20, 2010, 04:52:02 AM »
@Fernando. Is it currently possible (without any changes in the engine) to UV map a full 256 character ascii set for display by the Texprint functionality. In other words, If I mapped a texture to the appropriate XX.x character file, would the relevant character/letter be displayed if I referenced it by its ascii/ character, as can currently be done with the lower 0-31 codes?

Yes the code appears to be designed to support a 256 character set. All you have to do is creating the XX.x files pointing to the right texture.

However from memory, rendering characters above 128 was never tried, so there could be issues not easy to foresee, like certain ASCII values being converted or removed from strings by some internal function before they are passed to the sprite renderer.

jestermon

« Reply #29 on: January 03, 2011, 03:08:36 PM »
Here's a first attempt, I don't know if I got it right.
The font is Cyrillic Russian font taken from Ascii Code Page 1251, in which I replaced the standard alphabet codes with the high order Ascii set.  In other words, use the normal lowercase characters a-z {|}~ to get the Cyrillic symbols.
If is not what you need, I will try to get the high order (192 -255) to work.

The symbols need a little alignment work.. But try typing PRIVT, mIR using the new font, and see what it says.
« Last Edit: January 03, 2011, 03:56:46 PM by jestermon »
Pages: 1 [2] 3