0.6.0 Update

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post 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?
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post by bartbes »

Did we switch a lib? I don't know? I hereby summon rude.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: 0.6.0 Update

Post by rude »

This is probably because LÖVE 0.6.0 no longer auto-pads images to a power-of-two-sized texture.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post by bartbes »

So the problem is crappy videocards/drivers who can't handle images which are not power-of-2-sized?
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: 0.6.0 Update

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post 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
Help us help you: attach a .love.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: 0.6.0 Update

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post 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
Help us help you: attach a .love.
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: 0.6.0 Update

Post 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
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: 0.6.0 Update

Post 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
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests