MyGUI ImageBox on android

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
andrew_vorobey
Gnoblar
Posts: 5
Joined: Sat Aug 20, 2016 3:21 pm

MyGUI ImageBox on android

Post by andrew_vorobey »

I've built MyGUI 3.2 with ogre 1.10 for android.
I've made some changes for gles2 system(Describes here: http://www.ogre3d.org/addonforums/viewt ... 17&t=29658).
The gui work fine, I can see buttons and other elements.
But I have a problem with ImageBox. I have a black screen instead my png image. And the other part of my scene works fine.

I think png images load fine, because all buttons use png. And i don't know, why i can't see my image :(
This code works fine on my Linux pc. But it's black part of screen instead of image on Android.

Code: Select all

    MyGUI::ImageBox* imageBox = mGUI->createWidget<MyGUI::ImageBox>("ImageBox",100,200,300,300, MyGUI::Align::Default,"Main");
    imageBox->setImageTexture("test.png");
farrer
Halfling
Posts: 64
Joined: Mon Sep 12, 2011 7:35 pm
x 13

Re: MyGUI ImageBox on android

Post by farrer »

Not sure how MyGui implements its ImageBox, but some time ago I've opened an Ogre bug of something similar happening with me (not using MyGui, but only simple Overlays) on Android with Ogre 1.10 (example of the problem: android screenshot vs iOS screenshot).

Out of curiosity, on which device are you running?
andrew_vorobey
Gnoblar
Posts: 5
Joined: Sat Aug 20, 2016 3:21 pm

Re: MyGUI ImageBox on android

Post by andrew_vorobey »

No, I've found out the problem. My image was too big(more then 1 mb)
When i've started to use more little images it started to work fine.
Post Reply