I'm having a strange problem...
I have an image (like splash screen image) that is bigger than 256x256 (JPEG). When I use img->setImage( driver->getTexture(".//data//gfx//whatever.jpg")), it looks very pixelated.
However, if I crop it down to 256 and then use the exact same command, it looks perfect.
Code below works with both (just modify rect extents), but the larger than 256x256 is very pixelated.
Code: Select all
int ul = (GAME_RESX-300)/2;
int ur = (GAME_RESY-300)/2;
irr::gui::IGUIImage* img = env->addImage(rect<int>(ul , ur, ul+256, ur+256),0,1);
img->setImage( driver->getTexture(".//data//gfx//splash.jpg"));
P.S. I've also tried using driver->draw2DImage(img,0,0) and the result is the same. Larger than 256x256 looks all pixelated.
Thanks,