Page 8 of 23

Re: 0.6.0 Update

Posted: Fri Sep 25, 2009 6:28 pm
by Robin
bartbes wrote:Ah, so it wasn't the netbook I ran it on this afternoon. I can confirm it DID work on windows vista.
But since it apparently happens to windows 7 too, I think this might be a driver problem. So it's either the windows default driver, or it's the hardware that's crappy :D
That leaves the question: why does this happen in 0.6.0, but not in 0.5.0?

Re: 0.6.0 Update

Posted: Fri Sep 25, 2009 6:37 pm
by bartbes
Did we switch a lib? I don't know? I hereby summon rude.

Re: 0.6.0 Update

Posted: Sat Sep 26, 2009 9:08 am
by rude
This is probably because LÖVE 0.6.0 no longer auto-pads images to a power-of-two-sized texture.

Re: 0.6.0 Update

Posted: Sat Sep 26, 2009 9:17 am
by bartbes
So the problem is crappy videocards/drivers who can't handle images which are not power-of-2-sized?

Re: 0.6.0 Update

Posted: Sat Sep 26, 2009 9:58 am
by rude
Yes. But LÖVE will still work as long as you use power-of-two textures, of course. I'm sorry if this decision disappoints someone, but I think hiding the true nature of a texture is a really bad idea.

Re: 0.6.0 Update

Posted: Sat Sep 26, 2009 10:14 am
by Robin
rude wrote:Yes. But LÖVE will still work as long as you use power-of-two textures, of course. I'm sorry if this decision disappoints someone, but I think hiding the true nature of a texture is a really bad idea.
So we have to change the size of textures manually if we want it to work with crappy drivers? :x

Re: 0.6.0 Update

Posted: Sat Sep 26, 2009 10:32 am
by rude
Yes. The plan is also to add a function to ImageData:

Code: Select all

imgd = love.image.newImageData("evil.png")
imgd:padPowerTwo()
image = love.graphics.newImage(imdg)
That may change the width/height of the image, so you don't want to divide getWidth/getHeight by 2 to get the center of the image, for instance.

Re: 0.6.0 Update

Posted: Sat Sep 26, 2009 10:44 am
by Robin
rude wrote:Yes. The plan is also to add a function to ImageData:

Code: Select all

imgd = love.image.newImageData("evil.png")
imgd:padPowerTwo()
image = love.graphics.newImage(imdg)
That may change the width/height of the image, so you don't want to divide getWidth/getHeight by 2 to get the center of the image, for instance.
Cool. But I hope padPowerTwo will return self, so we can do:

Code: Select all

image = love.graphics.newImage(love.image.newImageData("evil.png"):padPowerTwo())
or, even better, add an argument to newImage:

Code: Select all

image = love.graphics.newImage("evil.png", "padPowerTwo") --or something, you get the idea

Re: 0.6.0 Update

Posted: Sat Sep 26, 2009 7:09 pm
by osgeld
I dont think its that big of a deal, course I have been used to power's of 2 images for a long time and its usually a fluke if one i use is not

Re: 0.6.0 Update

Posted: Sun Sep 27, 2009 3:15 pm
by qubodup

Code: Select all

love.cpp:22:27: error: common/config.h: No such file or directory
love.cpp:23:28: error: common/version.h: No such file or directory
love.cpp:24:28: error: common/runtime.h: No such file or directory
love.cpp:25:31: error: common/MemoryData.h: No such file or directory
love.cpp:79: error: expected constructor, destructor, or type conversion before ‘int’
make[3]: *** [love.o] Error 1
make[3]: Leaving directory `/home/qubodup/love-20090906-9e20498a4252/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/qubodup/love-20090906-9e20498a4252/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/qubodup/love-20090906-9e20498a4252'
make: *** [all] Error 2