Reaper Grimm
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Heretic Menu Typeface -> GFX
 
Author
All times are GMT. The time now is 18:43. Post New Thread    Post A Reply
Chu
Forum Regular


Posts: 712
Registered: 10-02


Hi all,

I'm writing support for Heretic in 3DGE, but currently the engine does not support writing text to the menus. As such, it is only graphic based and I intend to keep it that way, and do not plan on writing the code that Heretic possesses for the feature.

The only viable way to display the Menu correctly (the M_ graphics, if you will) is if I capture the Heretic typeface and insert it in as a graphic. Obviously these will be kept in edge2.wad to be used when needed.

In the video below, you can see the menu at about the 4 second mark - this is how it currently looks because it cannot find the graphics to normally display the menu:


The ultimate question here is that by doing this, will it violate any copyright? Since this is only the current way of doing this, I wanted to be sure before I include it in a fixed wadfile. I know this is sort of a deprecated way of going about it, but community input would be appreciated before I commit.

Thanks!

__________________
3DGE source port

Old Post 10-27-13 23:06 #
Chu is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
fraggle
Filled with the code of Doom


Posts: 7607
Registered: 07-00


Doom's graphic-based text system is pretty stupid, and Heretic got it right by doing it as a font. I have no idea why you would want to stubbornly stick to that system. Is it so much effort to just add text string support to the menu system?

Old Post 10-28-13 00:48 #
fraggle is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Chu
Forum Regular


Posts: 712
Registered: 10-02


I've never attempted it before. Well, I know where my Sunday night is going. Thanks for the feedback dude.
http://www.mydealz.de/wp-content/uploads/2011/12/challenge_accepted_meme_faces-s400x300-156975-580-.jpg

__________________
3DGE source port

Last edited by Chu on 10-28-13 at 01:38

Old Post 10-28-13 01:32 #
Chu is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
fraggle
Filled with the code of Doom


Posts: 7607
Registered: 07-00


Yay!

Old Post 10-28-13 06:18 #
fraggle is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 7734
Registered: 01-03


Ouch!

Writing a font output routine is work that needs to be done once.

Replacing all text with graphics is an invitation for endless trouble.

Furthermore, what if some mod replaces the font?

Old Post 10-28-13 08:57 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6037
Registered: 08-00



Chu said:
I've never attempted it before. Well, I know where my Sunday night is going. Thanks for the feedback dude.


Since you're GPL, I'd encourage you to take a look here:

http://mancubus.net/svn/eternity/tr...urce/v_font.cpp

This is EE's generic font engine. Fonts have their basic properties defined via EDF (though no reason you can't hard code them in the engine if that's easier) and all other text drawing calls in the engine are just thunks to get to V_FontDrawTextEx. Routines are also provided to calculate the width and height of strings in a given font.

Old Post 10-28-13 20:22 #
Quasar is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
wesleyjohnson
Senior Member


Posts: 1009
Registered: 04-09


We have the hu_font (green and white) and B_font (big-red) code in DoomLegacy, so I suppose you could start by looking there. Anything you did would not be much different.

My current pain with this is that HU_Init loads the hu_font, and does an I_Error if any are not found. Each font char is a patch. This requires that some wad loaded has the hu_font patches. The hu_font is different for doom2 and heretic, with different font names, and there is some adjustment in the DoomLegacy routines.

I want to put up some error messages and get input before the fonts are loaded, so I am working on adding a built-in font within DoomLegacy.
I am making it a bit map font, but could have made compiled in patches too.
Cannot do that with graphic names. It will also be able to put up messages when the hu_font is not present.

Old Post 10-28-13 22:25 #
wesleyjohnson is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 18:43. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Heretic Menu Typeface -> GFX

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.