White boxes instead of images

A project to port LÖVE to Android handhelds
Locked
User avatar
Ubermann
Party member
Posts: 146
Joined: Mon Nov 05, 2012 4:00 pm

White boxes instead of images

Post 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
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: White boxes instead of images

Post by Robin »

Could you please upload a .love?
Help us help you: attach a .love.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: White boxes instead of images

Post by T-Bone »

Are the pictures NPO2? Because the Android version requires PO2-sizes.
User avatar
Ubermann
Party member
Posts: 146
Joined: Mon Nov 05, 2012 4:00 pm

Re: White boxes instead of images

Post by Ubermann »

T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
Problem solved.

Thanks
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: White boxes instead of images

Post by jjmafiae »

T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
really?
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: White boxes instead of images

Post 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.
User avatar
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: White boxes instead of images

Post 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.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: White boxes instead of images

Post by T-Bone »

Huh, that's interesting. I guess love-native-android is doing something wrong, then?
Locked

Who is online

Users browsing this forum: No registered users and 13 guests