Image quality 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
Systemerror
Posts: 98
Joined: Fri Oct 03, 2008 1:25 pm
Location: UK
Contact:

Image quality problem...

Post by Systemerror »

I am using an static PNG image as a background for my menu, the image is large and great quality, I am in fullscreen mode and when I use my image on the background from the following code:

Code: Select all

video::ITexture* image = driver->getTexture("media\\misc\\BG.png");   
env->addImage(image,core::position2d<s32>(0,0));
It work, but the rendered image is a poor/blurred less pixel quality and I'm not sure why as the image as aforemention is a good quality and large so it's not being stretched too much, and the image is being set at

Code: Select all

0,0
as a parameter in 2D space, so what's going wrong - below is an example (Bare in mind i've reduced the image size.

Image

Image
Last edited by Systemerror on Sun Apr 05, 2009 8:20 pm, edited 1 time in total.
-System error
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Make your image a power of two in each dimension.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
olivehehe_03
Posts: 157
Joined: Tue Mar 20, 2007 8:30 am

Post by olivehehe_03 »

This could also depend on the actual resolution of your original image. For example if your image is 400x200 being stretched to 600x300 your instantly going to lose quality
Tell me what you cherish most. Give me the pleasure of taking it away.
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

btw sometimes setting other materialstates for the 2d drawcalls may improve qualitity too.
Post Reply