Share a Shader!

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.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Share a Shader!

Post by BlackBulletIV »

Yeah, those look awesome. Wish I could do stuff like that; shaders to be a massive weak point for me.
User avatar
Ragzouken
Citizen
Posts: 84
Joined: Fri Aug 10, 2012 7:59 am
Contact:

Re: Share a Shader!

Post by Ragzouken »

I'm most of the way through implementing the fluid solver described in this paper: http://www.dgp.toronto.edu/people/stam/ ... /GDC03.pdf

I can't get the project function to work at all yet though. Right mouse drag to add velocity, left mouse drag to add density and velocity, space to toggle between drawing velocity/density and just density, mouse wheel or +/- to change "viscosity". The density stuff doesn't really work, it doesn't conserve mass so it just grows or shrinks depending on the velocities. Without the project function you don't get the nice swirly things either.
Attachments
fluid.love
incomplete fluid simulation
(11.5 KiB) Downloaded 450 times
User avatar
ioxu
Prole
Posts: 8
Joined: Wed Mar 30, 2011 2:43 pm

Re: Share a Shader!

Post by ioxu »

Mandarancio wrote:Some one can help me to understand how make shaders like this two (of course I think is more than a single shader), both made using Love!

https://vimeo.com/45259228
https://vimeo.com/43841761

Final effect is really cool!
Thanks Mandarancio, et al!
https://vimeo.com/43841761 is indeed a combination of effects. Perhaps the most lövely effect is the subtle lightrays from the 'sun'.
I adapted a glsl shader from code by Fabien Sanglard: http://fabiensanglard.net/lightScattering/index.php
It is truly a beautiful effect.
Enjoy!
lightrays.love
lightrays demo
(30.66 KiB) Downloaded 564 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Share a Shader!

Post by Robin »

ioxu wrote:It is truly a beautiful effect.
It's seriously awesome.
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Share a Shader!

Post by Jasoco »

Wow, looks like Limbo.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Share a Shader!

Post by BlackBulletIV »

Thanks a lot for the code ioxu; I'll be sure to examine it. :)
Clouds
Prole
Posts: 23
Joined: Tue Nov 27, 2012 4:06 am

Re: Share a Shader!

Post by Clouds »

ioxu wrote:
Mandarancio wrote:
lightrays.love
Strangely, your demo runs but I don't see any light rays, not even after fiddling with the values (in-demo). My hardware (Mobility Radeon HD3650 256MB) has proven capable of canvases and pixel shaders previously - any idea what might be up with this one?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Share a Shader!

Post by Robin »

Clouds wrote:
ioxu wrote:
Mandarancio wrote:
lightrays.love
Strangely, your demo runs but I don't see any light rays, not even after fiddling with the values (in-demo). My hardware (Mobility Radeon HD3650 256MB) has proven capable of canvases and pixel shaders previously - any idea what might be up with this one?
Screen shot? Might help them find the problem.
Help us help you: attach a .love.
User avatar
ioxu
Prole
Posts: 8
Joined: Wed Mar 30, 2011 2:43 pm

Re: Share a Shader!

Post by ioxu »

Clouds wrote:your demo runs but I don't see any light rays, not even after fiddling with the values (in-demo)
pressing the b key cycles through three display modes. Is the "rays" one black? Does "result" and "background" look the same?
Clouds
Prole
Posts: 23
Joined: Tue Nov 27, 2012 4:06 am

Re: Share a Shader!

Post by Clouds »

ioxu wrote:pressing the b key cycles through three display modes. Is the "rays" one black? Does "result" and "background" look the same?
Yes, and yes.

I'm afraid GLSL is beyond me at least at the moment, so I won't be of much use debugging such code. Just for reference, some shader-loves that worke fine are the sand-stacking demo and the cel-shaded art demo from the forum, and the stock metaball demo.
Attachments
lightrays.png
lightrays.png (63.69 KiB) Viewed 3576 times
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 11 guests