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.
Coloured Text in OpenGL
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
.
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
![Smile :)](./images/smilies/icon_smile.gif)