button->setImage doesnt works with BURNINGSVIDEO or EDT_S

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
agnas
Posts: 20
Joined: Tue Mar 27, 2007 6:16 pm
Location: Venezuela
Contact:

button->setImage doesnt works with BURNINGSVIDEO or EDT_S

Post 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.
/\+++/\
< agnas >
\/+++\/
micronosis.com
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Does this still happen in Irrlicht 1.7? I thought this was fixed in this version.
agnas
Posts: 20
Joined: Tue Mar 27, 2007 6:16 pm
Location: Venezuela
Contact:

Post 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
/\+++/\
< agnas >
\/+++\/
micronosis.com
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post 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.)
"Whoops..."
Post Reply