How to make 2D hud like in quake 3 games?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
neoncore
Posts: 14
Joined: Wed Jun 10, 2009 9:09 am

How to make 2D hud like in quake 3 games?

Post by neoncore »

all in the title
CuteAlien
Admin
Posts: 10013
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Just use the usual GUI-Elements. If those are not enough (can't remember right now how quake 3 looked like) then you will have to code custom gui-elements.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

Quake III screenshot:
Image

I see 2 ways how to do this:
1) use Irrlicht' GUI: all you need is IGUIImage (for 2d numbers and texts) and IGUIMeshViewer (for 3d models of ammo and player head).
2) draw all the gui using just IVideoDriver members, so you do:

Code: Select all

beginScene()
smgr->drawAll()
... here you draw gui using IVideoDriver which has all the methods to draw 2d and 3d...
endScene()
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

right,
I think I see:
2x StaticText (big)
2x StaticText (small)
1x StaticText (small with border)
2x MeshViewer
1x Image (crosshair)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply