Shaders and FBOs

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Shaders and FBOs

Post by vrld »

Aaaand finally the .love
Attachments
particles_shaders.love
(15.33 KiB) Downloaded 180 times
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Shaders and FBOs

Post by bartbes »

The dev team will have a serious discussion about this... or it might not be serious at all..., in any case, we'll discuss it.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Shaders and FBOs

Post by TechnoCat »

Now, how do you get it to work with texels?

In before people cry the love file doesn't work.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Shaders and FBOs

Post by vrld »

TechnoCat wrote:In before people cry the love file doesn't work.
It works if you use the patch :wink:
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Shaders and FBOs

Post by TechnoCat »

vrld wrote:
TechnoCat wrote:In before people cry the love file doesn't work.
It works if you use the patch :wink:
I realize this, but I'm still predicting people complaining it doesn't work.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: Shaders and FBOs

Post by TechnoCat »

Are you patching the tip or 0.6.2 source?
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Shaders and FBOs

Post by vrld »

TechnoCat wrote:Are you patching the tip or 0.6.2 source?
I tested only the mercurial repository source, but I think it should work with 0.6.2
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Shaders and FBOs

Post by rude »

Awesome.
vrld wrote: Any chance that gets into the next version of LÖVE?
Yes.

But we can't include shaders unless there's a good way to convert automatically from GLSL to HLSL. Does anyone know if there's an open source project which does that?
User avatar
Elvashi
Prole
Posts: 45
Joined: Sat Jul 04, 2009 9:17 am
Location: Australia

Re: Shaders and FBOs

Post by Elvashi »

I thought HLSL only matters if you use Direct3D? since we are using OpenGL on all platforms, doesn't that make GLSL our lingua franca?
(Speaking of lingua fracas and shading languages, wasn't there a (proposed?) SL supported by both OGL and DX, for precisely this reason?)

Regardless, considering that the API is decidedly un-lövely, the fact that you aren't likely to find a HLSL converter soon, and fact that creating shaders is probably something most users aren't going to do (for whatever reason), it seems to me that we should simply include a set of common shaders (possibly with parameters applied to template code?). The issue of conversion then is replaced with simply creating counterparts in the two shader languages.

The only question then is what the basic shader set should be, my suggestions would be Blur, Motion Blur, (Anti) Glow, (De)saturation/Color filter, and Contrast.
"We could make a program for doing this for you, but that is for the LÖVE IDE, planned to be released in March 2142." ~mike
Networking with UDP uLove Proposal CCG: Gangrene
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Shaders and FBOs

Post by bartbes »

I was wondering about the why as well, rude answered this, GLSL is going to be our base language, and the HLSL converter is there so we can create love.graphics.direct3d sometime (or never, rude is in the denial about this).
Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests