Archived

This topic is now archived and is closed to further replies.

Vlade0000

Fonts, TGA somethings wrong

Recommended Posts

Hi guys/gals i''m using nehe''s bitmap fonts, now when i want to make my own custom font (just a new TGA) but when i load my TGA i made in photoshop (i''m sure its 32bit) all my fonts is blank, zip, nothing. i think the problem lies with my TGA loader, i just have problems with TGA''s i make myself, should i use a specific program to make my TGA''s? Oh my own 24bit TGA''s work fine! any ideas, links? cheers

Share this post


Link to post
Share on other sites
If memory serves, Photoshop doesn''t account for the TGA attribute (more commonly referred to as alpha) channel in 32 bit images.

You can add a layer after loading to account for that, and all should be instantly well. IF... memory serves.

Share this post


Link to post
Share on other sites
In photoshop load up your font image then on the little panel that has the channels, layers, paths window. click the tab that says channels, then on the bottom of that window click new channel an new channel should appear saying Alpha. click on the top channel which should be RGB and hit ctrl-a for select all. Copy it and then select your alpha channel and paste. anything showing up in white on your alpha channel will be opaque while anything in black will be transparent. Just save the image and when it asks you what bit depth you would like to use select 32 bit and walla tga with alpha.

Share this post


Link to post
Share on other sites
Thanx a million Derilect101 it works 110%!

now i can use my own fonts yippy!

see programmers (ok.. some like me) should not work with graphic editing programs! hehe let the artist handle that stuff hehe

Share this post


Link to post
Share on other sites
for single coloured text (eg for fps + debbuging help) u dont need alpha, just use a luminance texture with black as the background + white text + use blending mode of say one,dst_color

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites
I do all of my text using just an alpha-channel. That way I can have anti-aliased edges on all the characters.

Share this post


Link to post
Share on other sites