I think the dimension of the image is wrong...
It must be in power of 2 (2^0, 2^1, 2^2, 2^3, 2^4, ...) !!!
So be sure the dimensions are correct (for example 512 x 512) ...
eneru wrote:addImage uses the original dimension of the texture though, right ?
So even if the image is not a power of 2 it should work... a priori.. ?
That image still has to be sent to your video card, which will get angry at non-power of two images and distort them. There are some video cards out there that handle non-power of 2, but most don't. Basically what this means is this really isn't Irrlicht's fault at all. The closest thing to a fix would be for Irrlicht to determine the closest power of 2 resolution and resample everything.
Dances wrote:The closest thing to a fix would be for Irrlicht to determine the closest power of 2 resolution and resample everything.
AFAIK this is exactly what happens by the graphics card...
the image will be scaled to the next power of 2...
this is the reason why the image looks bad afterwards...
If you use an ITexture you can check if it's scaled with getSize() and getOriginalSize() !!!