Just Wondering about PO2

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
robbythedude
Prole
Posts: 5
Joined: Mon Feb 20, 2012 7:13 pm

Just Wondering about PO2

Post by robbythedude »

So I got a working game, with some menus and stuff.

I was just wondering why at my home computer, the image file of 800x600 works, but when I come to my university, it does not.

I searched the problem that I'm having, (White Screen), and people said it's because of the Power of Two Syndrome!
I tried soemthing, and that is my case also. But Why?
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Just Wondering about PO2

Post by tentus »

Weaker video cards cannot handle non-po2 images, it's a low-level problem that is a pain to get around. In Love 0.8.0 it will be largely fixed though.
Kurosuke needs beta testers
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Just Wondering about PO2

Post by Jasoco »

For now you have to make the image bigger. In your case, 1024x1024 pixels as that's the next step up from 800 and 600. Just pad it on the right and bottom in a drawing program like PhotoShop or Paint.net or Gimp or something. Make sure all images are the same way with the width and height being a PO2. i.e. 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 or 1024 pixels. You can do 2048 too but some computers might have a different problem with 2048. Video cards are very picky and a pain in the ass when it comes to this stuff. They all have different limits.
robbythedude
Prole
Posts: 5
Joined: Mon Feb 20, 2012 7:13 pm

Re: Just Wondering about PO2

Post by robbythedude »

Alright, that makes allot of sense.
I guess I'll do the padding idea till .8.0 comes out :P

Thanks Dudes or Dudets!
Post Reply

Who is online

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