Page 1 of 1

White boxes instead of images

Posted: Tue Jan 22, 2013 5:37 pm
by Ubermann
... when i use love.graphics.draw()

But i saw a game in the forum that has images and they are shown perfect, but I can't see what is the difference...

Any tip?

And also... is it possible to show non-power-of-2 fonts using some trick??

Thanks

Re: White boxes instead of images

Posted: Tue Jan 22, 2013 7:21 pm
by Robin
Could you please upload a .love?

Re: White boxes instead of images

Posted: Tue Jan 22, 2013 8:51 pm
by T-Bone
Are the pictures NPO2? Because the Android version requires PO2-sizes.

Re: White boxes instead of images

Posted: Tue Jan 22, 2013 8:53 pm
by Ubermann
T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
Problem solved.

Thanks

Re: White boxes instead of images

Posted: Mon Nov 11, 2013 10:25 am
by jjmafiae
T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
really?

Re: White boxes instead of images

Posted: Tue Nov 12, 2013 9:45 am
by T-Bone
jjmafiae wrote:
T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
really?
Yes. The Android version is based on 0.7.2 which didn't automatically pad images to PO2 (which 0.8.0 and newer does). So if the hardware doesn't support NPO2, it won't work. And it seems most Android phones' GPUs don't support NPO2.

Re: White boxes instead of images

Posted: Tue Nov 12, 2013 10:32 am
by slime
T-Bone wrote:
jjmafiae wrote:
T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
really?
Yes. The Android version is based on 0.7.2 which didn't automatically pad images to PO2 (which 0.8.0 and newer does). So if the hardware doesn't support NPO2, it won't work. And it seems most Android phones' GPUs don't support NPO2.
OpenGL ES 2 (supported by 99.9% of Android devices) guarantees NPOT texture support, although it's slightly more limited than the NPOT support on desktops ('repeat' wrap mode won't work.) Of course, that guarantee isn't there if OpenGL ES 1 is used.

Re: White boxes instead of images

Posted: Tue Nov 12, 2013 4:26 pm
by T-Bone
Huh, that's interesting. I guess love-native-android is doing something wrong, then?