Share a Shader!
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Share a Shader!
Yeah, those look awesome. Wish I could do stuff like that; shaders to be a massive weak point for me.
Re: Share a Shader!
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.
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
Re: Share a Shader!
Thanks Mandarancio, et al!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!
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!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Share a Shader!
It's seriously awesome.ioxu wrote:It is truly a beautiful effect.
Help us help you: attach a .love.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Share a Shader!
Wow, looks like Limbo.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: Share a Shader!
Thanks a lot for the code ioxu; I'll be sure to examine it.
Re: Share a Shader!
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?ioxu wrote:Mandarancio wrote:
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Share a Shader!
Screen shot? Might help them find the problem.Clouds wrote: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?ioxu wrote:Mandarancio wrote:
Help us help you: attach a .love.
Re: Share a Shader!
pressing the b key cycles through three display modes. Is the "rays" one black? Does "result" and "background" look the same?Clouds wrote:your demo runs but I don't see any light rays, not even after fiddling with the values (in-demo)
Re: Share a Shader!
Yes, and yes.ioxu wrote:pressing the b key cycles through three display modes. Is the "rays" one black? Does "result" and "background" look the same?
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.
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 1 guest