Gui images looks ugly. Why?

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
LarryTM
Posts: 8
Joined: Wed Aug 17, 2005 10:26 am
Location: Warsaw, Poland.
Contact:

Gui images looks ugly. Why?

Post by LarryTM »

Why gui images looks so ugly ? (like after resizing and smoothing)? My background image size is 828x628 and i display it without resizing. How to disable smoothing / filtering?

Here is my code ->

Code: Select all

edit_tlo=driver->getTexture("images/gui/main/background.png");	
    desg_window=env->addImage( core::rect<s32>( 0, 0, 828, 628 ), 0, 0, 0 ); 
    desg_window->setImage(edit_tlo); 
AshmenGlue
Posts: 29
Joined: Wed Oct 12, 2005 9:09 am

Post by AshmenGlue »

You should search the forums more carefully. I posted a thread exactly on this topic not long ago. If you're using DirectX or OpenGL as your renderer your image size has to be something to the power of 2.

For example:

64 x 32
128 x128
512x1024
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

Post by bearSoft »

to avoid confusions : not 'power of 2'
u need 2^n for all textures, -except- maps for heightfields! They need to be 2^n+1
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Post Reply