Page 2 of 4

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 8:47 pm
by Jasoco
So what's new in 0.7.0? That's what I really want to know. What can we look forward to? And will anything break from 0.6.2?

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 8:51 pm
by thelinx
The only breakage is that text now draws from the top-left rather that how it is now.

Other than that, it's only new stuff in the API.

Check out the changelog.

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 8:51 pm
by bartbes
We will have a new no game screen!

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 8:54 pm
by Robin
bartbes wrote:We will have a new no game screen!
*gasp*

Truly, we are being spoiled. :monocle:

Edit: so is Game Slave from Invader Zim?

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 8:55 pm
by thelinx
Robin wrote:so is Game Slave from Invader Zim?
If you'd been in IRC, maybe you'd know.

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 8:59 pm
by Jasoco
Ooh, the changes look interesting. I see we now have Multiply and Subtract blend modes. Will we be getting others in time like Darken and Lighten?

Also, what is Frame Buffer? Will that allow us to place stuff on a hidden frame to use later?

I'd love to be able to have a separate buffer where I can draw with RGBA to make a lighting mask then copy that lighting mask with all transparency and paste it over the visible screen. Would make some neat lighting effects with multiple light sources.

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 9:31 pm
by thelinx
A frame buffer is basically a canvas that you can draw stuff on once, then draw that canvas a lot of times later without drawing all the individual stuff.

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Tue Sep 14, 2010 11:47 pm
by Jasoco
But will we be ableto draw say a mask onto it, then paste/apply the buffer to the main screen as if it were an image? Like say I made a greyscale lighting mask then pasted it onto the main screen? Would the buffer accept transparency or will it have a solid color behind it?

Also, I wish I could draw using HSL as well as RGB. Would be neat to be able to draw with Hue and change the Hue through all the colors of the rainbow so much easier. Plus the Saturation and Lightness would be awesome and it would be so useful. Especially if we combine it with image drawing. Imagine shifting the hue of an image easy or lightening/darkening it or removing all its color with a single command.

love.graphics.setColorHSL(h,s,l,a)

H would be 0,359 (But would loop so a larger number like 500 would wrap around like degrees do and return to 140.)
S is 0 to 100
L is 0 to 100
And A of course is Alpha 0 to 255.

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Wed Sep 15, 2010 9:10 am
by vrld
Jasoco wrote:Will we be getting others in time like Darken and Lighten?
Not that easy to implement using OpenGLs fixed function pipeline, because you would need access to the individual pixels, which one doesn't have. It's possible using shaders though, but then you lose portability...
But will we be ableto draw say a mask onto it, then paste/apply the buffer to the main screen as if it were an image?
Yes.
Would the buffer accept transparency or will it have a solid color behind it?
It is transparent where you haven't painted anything.
Also, I wish I could draw using HSL as well as RGB.
This might be relevant to your interests.
h ranges from 0 - 360, s and v from 0 - 1. Use Color.hsv(h,s,v,a) to create a new Color object using the hsv color space.

Re: Love 0.7 is coming out soon yaaaaaaaaaaaaaaaaa-

Posted: Wed Sep 15, 2010 6:01 pm
by Jasoco
Yes.
Yippie!
It is transparent where you haven't painted anything.
Oh boy! Can't wait to play with it!
This might be relevant to your interests.
h ranges from 0 - 360, s and v from 0 - 1. Use Color.hsv(h,s,v,a) to create a new Color object using the hsv color space.
I will take a look! Thanks! Still would be nice to have it built-in.

If I use the lua file, what's the Copyright whatever on it? I use the Sound library now too. I just want to know who to thank for whatever libraries I end up using in the end. The Color.lua file doesn't seem to have a name/copyright header like soundmanager does. Most of the time I like to write my own stuff, but if something I can't do alone comes along I will happily use it.

Also, how many buffers can we have saved in memory? How many canvases can we have hidden for drawing to for later? And can they be bigger than the screen? Or are they restricted to the size of your current window?