Aliasing on non-power-of-2 textures
Posted: Fri Jul 18, 2008 2:25 pm
I'm trying to blit a full-screen image using draw2DImage. I'm using non-power-of-2 screen size and texture size. However, it still doesn't draw 1-to-1; I think it resizes it down to a power of 2, and then upsamples it to fit the window. I've been doing a lot of work with Irrlicht over the past two months, and this just seems to be a limitation of the drivers. I've done a lot of searching on the forums, and can't find anyone who's had success with that. Can you "correctly" draw an image of a non-power-of-2 texture?
Original image:
Image in Irrlicht:
If not, I'm willing to compromise with a filtered image. However, I've been unable to figure out how to turn on bi/trilinear filtering for the draw2DImage function. I've tried
but that doesn't seem to have any effect. How can I turn on bi/trilinear filtering for images displayed using draw2DImage?
Thanks for any help.
Original image:
Image in Irrlicht:
If not, I'm willing to compromise with a filtered image. However, I've been unable to figure out how to turn on bi/trilinear filtering for the draw2DImage function. I've tried
Code: Select all
SMaterial mat;
mat.setFlag(EMF_BILINEAR_FILTER, true);
driver->setMaterial(mat);
driver->draw2DImage(...);
Thanks for any help.