Page 13 of 33

Re: Share a Shader!

Posted: Thu Sep 20, 2012 8:28 am
by BlackBulletIV
Yeah, those look awesome. Wish I could do stuff like that; shaders to be a massive weak point for me.

Re: Share a Shader!

Posted: Tue Oct 02, 2012 8:45 pm
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.

Re: Share a Shader!

Posted: Mon Nov 26, 2012 3:57 pm
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

Re: Share a Shader!

Posted: Mon Nov 26, 2012 9:05 pm
by Robin
ioxu wrote:It is truly a beautiful effect.
It's seriously awesome.

Re: Share a Shader!

Posted: Mon Nov 26, 2012 11:43 pm
by Jasoco
Wow, looks like Limbo.

Re: Share a Shader!

Posted: Tue Nov 27, 2012 3:03 am
by BlackBulletIV
Thanks a lot for the code ioxu; I'll be sure to examine it. :)

Re: Share a Shader!

Posted: Tue Nov 27, 2012 4:17 am
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?

Re: Share a Shader!

Posted: Tue Nov 27, 2012 10:17 am
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.

Re: Share a Shader!

Posted: Tue Nov 27, 2012 10:57 am
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?

Re: Share a Shader!

Posted: Tue Nov 27, 2012 11:27 am
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.