Distorted images being displayed in a demo
Posted: Wed May 30, 2007 10:55 am
Hi all,
Hi, I am new to irrlicht and 3D technology but not to C++ programming. I have done some tutorials etc on irrlicht. I have this problem with displaying images:
I modified the user interface tutorial (05.UserInterface) and replaced the logo with my own image. In windows explorer I can see the image clearly displayed but in the demo drawn by the irrlicht engine it looks distorted. What am i doing wrong? I tried number of different images. They all end up being distorted. I am not doing any re-scaling as far as i can tell. I tried setting the useAlphaChannel to true and false but it makes no difference.
Any suggestions would be much appreciated.
Code Line:
env->addImage(driver->getTexture("gfx/Test.png"),
position2d<int>(10,10), false);
Hi, I am new to irrlicht and 3D technology but not to C++ programming. I have done some tutorials etc on irrlicht. I have this problem with displaying images:
I modified the user interface tutorial (05.UserInterface) and replaced the logo with my own image. In windows explorer I can see the image clearly displayed but in the demo drawn by the irrlicht engine it looks distorted. What am i doing wrong? I tried number of different images. They all end up being distorted. I am not doing any re-scaling as far as i can tell. I tried setting the useAlphaChannel to true and false but it makes no difference.
Any suggestions would be much appreciated.
Code Line:
env->addImage(driver->getTexture("gfx/Test.png"),
position2d<int>(10,10), false);