IBillboardText undesired differences compared to drawText()

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
Clash
Posts: 80
Joined: Thu Apr 19, 2007 4:20 pm

IBillboardText undesired differences compared to drawText()

Post by Clash »

Hello guys!
Today I tried to remove all my drawText() calls and start using IBillboardTextSceneNode.
The results were almost as desired, the only thing annoying me is the difference in the text strenght/brightness. I think it's clear enough on the image below.
Image
Left is drawText(), right is using the billboard text.
Any idea on how to fix it? By the way, I'm on irrlicht 1.5, openGL
Thanks a lot!

Code: Select all

core::dimension2d<irr::f32> dimensions;
    dimensions.Width = CCore::font->getDimension(L"Clash").Width;
    dimensions.Height = CCore::font->getDimension(L"Clash").Height;
IBillboardTextSceneNode *test=CCore::smgr->addBillboardTextSceneNode(CCore::font, L"Clash", 0, dimensions);
    test->setPosition(vector3df(500, -200, 0));
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Turn off the bilinear filtering maybe?
Clash
Posts: 80
Joined: Thu Apr 19, 2007 4:20 pm

Post by Clash »

Nice one hybrid! It's almost there... any idea on what else could be done?
Image
Left one drawText(), right one scene node with bilinear filter disabled
Seems like the letters are getting compressed a bit, though the overall width is correct
Post Reply