Font texture bug

Users who are viewing this thread

Janycz

Knight at Arms
I experimented with the font.
But the font works with bugs (black spots):
6005186.jpg

6011330.jpg

Font texture in Paint.NET:
5982658.jpg


How can I fix it?
 
IIRC Warband is pretty nitpicky to alpha channel when it comes to fonts. But kill me if I remember what exactly it wants. Just compare the chars that look right to chars that look wrong I guess...
 
You are viewing the pic without alpha-channel.

Switch to alpha transparency and you'll see how the texture actually looks like.

And it seems the reason for your problems is that characters on the left half are on white transparent background, while characters on right half are on black transparent background.

Meanwhile, vanilla font has all characters on white transparent background.

Strictly speaking, transparent is transparent and it shouldn't matter to Warband what RGB color transparent pixels actually have. But apparently it does matter. As I said, pretty nitpicky.
 
Janycz said:
Texture in OpenBrf:
6010358.png


Why black on left side?

You don't seem to understand the RGBA encoding used by the game in
Code:
font.dds
:

RGB -> Background shadow/outline.
A -> Standard glyph shape, essentially a mask multiplied by the color.


Basically what you have to do is set the RGB to white except in the zones where a shadow is needed. Your alpha (A) channel is correct.
 
Back
Top Bottom