font and viewports aspect ratio problem

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
floppyfreak
Posts: 117
Joined: Sat Apr 19, 2008 10:14 am

font and viewports aspect ratio problem

Post by floppyfreak »

I have a problem using fonts in GUI elements in combination with viewports. The aspect ratio of my fonts is changing with the aspect ratio of the viewports. When I eg have an example like this one
Image

and I render it in more narrow viewport its looks like this

Image

I already tried to change this by

Code: Select all

        matrix4 transmat;
        transmat.setScale(vector3df(4,1,0));
        irrDevice->getVideoDriver()->setTransform (ETS_PROJECTION, transmat);
, but without any result

I already posted this problem with black pixels and fould no solution for this second problem. I have tried different fonts, but most fonts show results similiar to this one. Any help, how I can change this?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Are you sure that you're not using the SW renderer? This one has no good alpha blending.
The problem with viewports is known, but not yet fixed.
floppyfreak
Posts: 117
Joined: Sat Apr 19, 2008 10:14 am

Post by floppyfreak »

no, its

Code: Select all

    irrDevice = createDevice(EDT_OPENGL,
                                dimension2d<u32>(TES_ScreenResX,TES_ScreenResY),
                                32,
                                TES_fullscreenmode, //true if fullscreen
                                true,
                                true);
and no "SOFTWA" nor "BURNI" in any of my files.
Post Reply