Coloured Text in OpenGL

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Handle
Posts: 19
Joined: Tue Jul 13, 2004 2:00 pm

Coloured Text in OpenGL

Post by Handle »

I loaded a Quake3 BSP and tried to add some coloured text on the screen aswell.

If you're running in OpenGL then the text was coloured by the texture of the level, using Direct X 8/9 it displays fine.

Quick Hack: before you draw your fonts add the simple line below to disable texturing in OpenGL.

glDisable(GL_TEXTURE_2D);

(obviously only bother with this if your rendering using the GL driver, use an if block to check etc)

Probable Proper Fix: I've not had a look at Irrlicht's source yet but adding the glDisable line in the opengl font printing function (I'm assuming there's something like that in there!) should fix the problem.

If i get round to looking at the source I'll post the modifications up here.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Ok, thanks.
atcdevil
Posts: 30
Joined: Sun Mar 14, 2004 2:14 am

Post by atcdevil »

But but but.... Isn't text drawn using textures :?:
atcdevil
Posts: 30
Joined: Sun Mar 14, 2004 2:14 am

Post by atcdevil »

Has this been resolved, other than the quick hack?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

I recently (few minutes ago) had this problem and I was able to record it:

http://users.skynet.be/balleke/irrlicht.wmv <= bad quality
http://users.skynet.be/balleke/baltech% ... -07-42.avi <= better quality


As you can see, the crosshair also changes color! I created it with driver->draw2DRectangle so it isn't only font which is screwed up.
The reason why I post in this rather old topic is because I think this is a bug that needs to be fixed :).
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
Post Reply