Page 1 of 1

button->setImage doesnt works with BURNINGSVIDEO or EDT_S

Posted: Mon Mar 01, 2010 1:58 pm
by agnas
button->setImage doesnt works with BURNINGSVIDEO or EDT_SOFTWARE

How to reproduce the error:

Add the following code somewhere before the mainloop in the UserInterfase example

Code: Select all

video::ITexture* images = driver->getTexture("myimage.png");

IGUIButton* btn = env->addButton(rect<s32>(0,400,117,400+38), 0, 2376,
			L"Button", L"Tooltip");
btn->setImage (images);
Execute the example and select EDT_BURNINGSVIDEO or EDT_SOFTWARE.
The image in the button is not displayed. Quit, execute it again and select Direct 8.1, 9.0 or Opengl. The image is correctly displayed.

Not sure if its a bug or if this is warned somewhere but I cant find any reference about that.

Posted: Tue Mar 02, 2010 12:56 am
by hybrid
Does this still happen in Irrlicht 1.7? I thought this was fixed in this version.

Posted: Tue Mar 02, 2010 12:56 pm
by agnas
hybrid wrote:Does this still happen in Irrlicht 1.7? I thought this was fixed in this version.
Tested on 1.7.1, yes its fixed, almost. Its working using SOFTWARE renderer but using BURNING is not displaying the image size correctly. I suppose the workaorund is to use the SOFTWARE renderer only :wink:

Thanks.

Gustavo

Posted: Tue Mar 02, 2010 1:11 pm
by randomMesh
Remember to use images which are a power of two in width and height. Then it will also work with EDT_BURNINGSVIDEO. (It's recommended anyway.)