Page 1 of 1

Blank Images

Posted: Fri Sep 03, 2010 7:20 pm
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

Re: Blank Images

Posted: Fri Sep 03, 2010 7:21 pm
by nevon
It's your graphics card that can't handle images whose width and height aren't powers of two.

Re: Blank Images

Posted: Fri Sep 03, 2010 7:31 pm
by Elvenrix
Hum... quite easy to solve this, resizing the image works perfectly.
Thank you.

Re: Blank Images

Posted: Fri Sep 03, 2010 8:19 pm
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.

Re: Blank Images

Posted: Fri Sep 03, 2010 10:59 pm
by Luiji
This bug is REALLY annoying. Maybe LOVE should autopad graphics. In fact, I'm going to post a feature request!

Re: Blank Images

Posted: Sat Sep 04, 2010 3:16 am
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...

Re: Blank Images

Posted: Sat Sep 04, 2010 3:51 am
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.

Re: Blank Images

Posted: Sat Sep 04, 2010 7:33 am
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.