Can we get a GLSL tutorial?

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
Thustrust
Prole
Posts: 12
Joined: Sun Mar 07, 2010 5:29 am

Can we get a GLSL tutorial?

Post by Thustrust »

First of all, since this is my first post here, I feel obligated to say that LOVE is awesome and I can't wait to see what future releases will be bringing to the table.


Now, on to my question... I was searching through the forums in the vain hope that I could find some sort of shader support in LOVE, because that would be pretty fun to mess around with. Not that I know anything about programming in GLSL, but I think learning a little about it through LOVE would be really great. And if I could actually get some nice glows or something going in my LOVE games it would be REALLY awesome.
bartbes wrote:Actually, even if there is no direct support for it, you can use GLSL in LÖVE in 0.6.0, remember me after the release if you want a tutorial for that.
According to this old post by bartbes we DO have some sort of GLSL support in the current version of LOVE... so I guess I'm just trying to get the aforementioned tutorial. If anyone out there can help me out with this it would be greatly appreciated!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Can we get a GLSL tutorial?

Post by bartbes »

That was before love.native was ripped out, sorry.
Thustrust
Prole
Posts: 12
Joined: Sun Mar 07, 2010 5:29 am

Re: Can we get a GLSL tutorial?

Post by Thustrust »

Well it's alright. Thanks for the reply bartbes!

You wouldn't happen to know of another similar project where I could mess around with shaders then would you?

Oh, and while I have your attention (if you're still around), what's the status with raycasts in the physics module? I know that the box2d svn supports raycasts, but the newest standalone release didn't have them implemented yet. It sure would be nice to have a feature like that though...
giniu
Party member
Posts: 221
Joined: Mon Nov 30, 2009 4:44 pm

Re: Can we get a GLSL tutorial?

Post by giniu »

Thustrust wrote:You wouldn't happen to know of another similar project where I could mess around with shaders then would you?
2D and shaders you say? I guess SFML library would be easiest here, it has shaders and PostFX as default feature, and it's only 2D library I know that have it by default. It's C++ but have some bindings, older versions had lua bindings I think, but it was dropped or I'm just imagining, because I don't see it now. It wouldn't replace Love by any means, it's just library like SDL, so best - take a look how they do shaders and maybe you can come with something nice and implement it in/for love as optional addon, am I right? ;)
Thustrust
Prole
Posts: 12
Joined: Sun Mar 07, 2010 5:29 am

Re: Can we get a GLSL tutorial?

Post by Thustrust »

Yeah, that sounds like an idea. I am familiar with SFML a little, as I had actually been working on a little lua game engine with a friend of mine (he's the real programmer among us. I can't do much more than script). The reason I started checking out LOVE for my 2d shader needs was because the shader support in sfml is a little weird. Or at least what my friend exposed to lua was a little weird. I was hoping to learn a little about GLSL in a more mature, "finished" program with nice documentation. But since it looks like SFML is the only real option for this I guess I'll have to take another look at what we were doing before. Maybe we should ditch exposing it to lua since GLSL is it's own language already...

Thanks for the help! I better head off to bed now... (It's 1:30 AM where I am. :| )
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 3 guests