project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
19 Sep 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2017-06-17, 02:20   #1
TBob
Default [HUD] Font Facelift

I thought I'd show something I've been working on for a little while.

For a long time we've had to deal with blurry text in the BF2 engine when running at more modern resolutions, but that can be a thing of the past.

Inspired after seeing the BF2 HDUI mod, I took a look at what they had and the method they used but found it somewhat lacking.

After fiddling around with BMFont source code I came up with a method to generate nice looking fonts that display at double the normal resolution.

These are some of the results, screenshots are all taken at 1440p:








There is of course a slight bump to memory usage Going through the font files I found that there seem to be a number of fonts that are essentially duplicates, for example scoreboardfont_8, squadcreationfont_6, and vehiclehudfont_6. Its possible that the UI elements could be updated to reduce the number of duplicates.

Without removing duplicates the current total size increase for all global and English fonts replaced is about 1.5 MB

This is now implemented by default, but I'll leave this download up (Updated 2018-02-17)
https://drive.google.com/file/d/0B-Y...F0SWhoNUhtb00/
TBob is offline
Last edited by [R-CON]TBob; 2018-03-01 at 05:29..
Reply With Quote
Old 2017-06-17, 04:12   #2
Kovanaama
Default Re: [HUD] Font Facelift

Good work! Much better quality.
Kovanaama is offline Reply With Quote
Old 2017-06-17, 07:20   #3
[R-DEV]​Arab
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: [HUD] Font Facelift

Great initiative! Much easier on the eyes.

Arab is offline Reply With Quote
Old 2017-06-17, 08:05   #4
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

Mats391's Avatar
Default Re: [HUD] Font Facelift

The font set up is mostly left over from BF2 with only small adjustments. A facelift would really be appreciated.
Making more parts use the same fonts, should work fine as well. Just need to edit the menu files a bit.

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Old 2017-06-17, 09:33   #5
sweedensniiperr
Supporting Member

sweedensniiperr's Avatar
Default Re: [HUD] Font Facelift

can we get some not zoomed in comparisons?

sweedensniiperr is offline Reply With Quote
Old 2017-06-17, 09:41   #6
Rhino
Retired PR Developer
Supporting Member

Rhino's Avatar
Default Re: [HUD] Font Facelift

Nice work! Can you post pictures of the old and new files at 100% rez so we can compare? Would also be good to know how much of a memory increase there is from the old, ideally including the reductions of removing duplicates

Keep up the good work!

Rhino is offline Reply With Quote
Old 2017-06-17, 10:00   #7
[R-DEV]Mineral
PR:BF2 Lead Designer
Supporting Member
PR Server License Administrator

Mineral's Avatar
Default

Looks awesome

Mineral is offline Reply With Quote
Old 2017-06-17, 11:34   #8
AfterDune
Retired PR Developer
Supporting Member

AfterDune's Avatar
Default

Yep, awesome. Continue pls

AfterDune is offline Reply With Quote
Old 2017-06-17, 12:54   #9
FlyingR
Default Re: [HUD] Font Facelift

Well done! Very satisfying to see this!
FlyingR is offline Reply With Quote
Old 2017-06-17, 14:08   #10
TBob
Default Re: [HUD] Font Facelift

Now with an updated map font



Quote:
Originally Posted by sweedensniiperr View Post
can we get some not zoomed in comparisons?
Quote:
Originally Posted by [R-DEV]Rhino View Post
Nice work! Can you post pictures of the old and new files at 100% rez so we can compare? Would also be good to know how much of a memory increase there is from the old, ideally including the reductions of removing duplicates

Keep up the good work!

To be clear, none of my screenshots have been resized - that's just how things look at my native resolution of 1440p (this might give you a better idea of why I would be doing this)

I didn't make direct comparisons but this is how it looks natively at 720p and 1080p





Since this is doubling the resolution 4x texture size is a given, though due to the less efficient glyph packing I have to use to get things to work properly somewhere in the range of 8x is more likely.

I haven't nailed down the exact number of true duplicates but I estimate this would equate to around 4Mb additional decompressed texture size. For comparison the Chinese localization uses something like 20Mb more than English.
TBob is offline Reply With Quote
Reply


Tags
facelift, font, hud

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 00:05.