Blank Images

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Elvenrix
Prole
Posts: 26
Joined: Sat Aug 28, 2010 6:52 pm

Blank Images

Post by Elvenrix »

I just started edting the hamster example (here),
and when i change the image to any other, i got a blank rectangle instead of the actual image.
First i thought it would be the image extension, the example has a .png, and i had a .jpg.
I edited the image and saved as .png, but i still have the blank rectangle.
The image im trying to display is in the same directory as the hamster example image.

Anyone know what im doing wrong?
This is how it looks like.
Image
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Blank Images

Post by nevon »

It's your graphics card that can't handle images whose width and height aren't powers of two.
User avatar
Elvenrix
Prole
Posts: 26
Joined: Sat Aug 28, 2010 6:52 pm

Re: Blank Images

Post by Elvenrix »

Hum... quite easy to solve this, resizing the image works perfectly.
Thank you.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Blank Images

Post by nevon »

Elvenrix wrote:Hum... quite easy to solve this, resizing the image works perfectly.
Thank you.
Just pad it if your don't want to scale the image itself.
User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

Re: Blank Images

Post by Luiji »

This bug is REALLY annoying. Maybe LOVE should autopad graphics. In fact, I'm going to post a feature request!
Good bye.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Blank Images

Post by Taehl »

People /still/ have an issue with this? Seriously, just about /everything/ uses 2^ texture dimensions.

But anyway, seeing as how so many people have this problem, shouldn't someone go put the solution on the wiki, in a very visible place? I'd do it myself, but I've never been able to log into it...
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Blank Images

Post by Jasoco »

Luiji wrote:This bug is REALLY annoying. Maybe LOVE should autopad graphics. In fact, I'm going to post a feature request!
It USED to. 0.5.0 padded them automatically. 0.6.x does not and the reason has been explained many times. Don't file a request. It won't happen. Just pad the graphics yourself or use a library to do it for you.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Blank Images

Post by Robin »

Taehl wrote:But anyway, seeing as how so many people have this problem, shouldn't someone go put the solution on the wiki, in a very visible place? I'd do it myself, but I've never been able to log into it...
It exists already.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 76 guests