... 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
White boxes instead of images
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: White boxes instead of images
Could you please upload a .love?
Help us help you: attach a .love.
Re: White boxes instead of images
Are the pictures NPO2? Because the Android version requires PO2-sizes.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Re: White boxes instead of images
Problem solved.T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
Thanks
Re: White boxes instead of images
really?T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
Re: White boxes instead of images
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.jjmafiae wrote:really?T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: White boxes instead of images
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.T-Bone wrote: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.jjmafiae wrote:really?T-Bone wrote:Are the pictures NPO2? Because the Android version requires PO2-sizes.
Re: White boxes instead of images
Huh, that's interesting. I guess love-native-android is doing something wrong, then?
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Who is online
Users browsing this forum: No registered users and 1 guest