DaveH
|
|
« Reply #30 on: December 01, 2013, 09:44:00 PM » |
|
I thought I'd join in the fun. I'm using this technique for rendering grass blades. It's done entirely in Shadertoy. https://www.youtube.com/v/jXvpjnNSnKY?fs=1&hl=en_US&hd=1This technique is a strikingly robust, and produces really nice alias free grass. Amazingly I'm getting away with only using 15 loops and it still manages to create a great grass illusion. Marvelous! Thanks all. Shadertoy version:- https://www.shadertoy.com/view/Xsf3zX
|
|
« Last Edit: December 12, 2013, 03:37:23 PM by DaveH »
|
Logged
|
|
|
|
eiffie
Guest
|
|
« Reply #31 on: December 02, 2013, 05:42:22 PM » |
|
Glad you've joined Dave. If you experiment with using this to paint polygons let us know how it goes!
|
|
|
Logged
|
|
|
|
DaveH
|
|
« Reply #32 on: December 02, 2013, 06:59:10 PM » |
|
Thanks! Yeah, it'll get no spiky silhouette as it will only look like bump mapping of course - but, it doesn't look like a standard texture either so I think it'll make a great grassy illusion. It may be even faster if I use a Voronoi texture, although that will be a lot of look-ups.
|
|
|
Logged
|
|
|
|
|
eiffie
Guest
|
|
« Reply #34 on: December 12, 2013, 05:30:51 PM » |
|
I like the distance squared look even if it isn't "correct". It works well with clouds too.
|
|
|
Logged
|
|
|
|
DaveH
|
|
« Reply #35 on: December 12, 2013, 06:56:52 PM » |
|
I found the focus change too linear without the square.
|
|
|
Logged
|
|
|
|
cbuchner1
|
|
« Reply #36 on: December 12, 2013, 09:23:32 PM » |
|
aaah, too bad. My shiny new nVidia GTX 780Ti barfs on this shadertoy script (running it in Firefox 25.0.1). window stays black, Firefox stops responding. Putting the card back to mine litecoins so it can pay for itself. ;-) UPDATE: worked in Chrome. Ran smooth in Full HD full screen (gently pats his GTX 780Ti) UPDTE2: I've opted into the Firefox beta channel, maybe that's why all the debug information was enabled? Christian
|
|
« Last Edit: December 13, 2013, 10:40:35 AM by cbuchner1 »
|
Logged
|
|
|
|
DaveH
|
|
« Reply #37 on: December 12, 2013, 09:29:40 PM » |
|
The recent Firefox updates appear to have ALL the debug information turned on and barfs at most of shadertoy, well it does here. Try Chrome!
|
|
« Last Edit: December 12, 2013, 09:40:04 PM by DaveH »
|
Logged
|
|
|
|
3dickulus
|
|
« Reply #38 on: December 12, 2013, 11:40:57 PM » |
|
running FF 25.0 on linux here with no problems on shadertoy, nice work btw
|
|
|
Logged
|
|
|
|
DaveH
|
|
« Reply #39 on: December 13, 2013, 02:53:24 PM » |
|
I've not idea why Firefox is so slow on PC now, Inigo at Shadertoy told me about the debug stuff, it's not a Beta thing.
|
|
|
Logged
|
|
|
|
knighty
Fractal Iambus
Posts: 819
|
|
« Reply #40 on: December 13, 2013, 11:05:47 PM » |
|
Great work Dave!
|
|
|
Logged
|
|
|
|
eiffie
Guest
|
|
« Reply #41 on: December 14, 2013, 05:20:35 PM » |
|
I think I would call the distance squared blur "atmospheric blur". The result of rays minutely reflecting and refracting off particles and droplets in the air. It gives a hint of great distance where the linear DoF calculated from a focal point and aperture can give the hint that the object is tiny (compared to the camera's aperture). I will have to include both in my script now.
|
|
|
Logged
|
|
|
|
|
3dickulus
|
|
« Reply #43 on: December 15, 2013, 08:05:59 AM » |
|
To have such a small area in focus doesn't seem right I agree, it's ok if you're going for the "lego land" look (probably a mistake, being Mars, but hey) the atmosphere on Mars is motly CO2 ? a heavy gas with a different refractive index than what we're used to looking through. I'm sure that when we get humans up there we'll know for sure but until then I think it's ok to allow for some creative artistic interpretation.
|
|
|
Logged
|
|
|
|
eiffie
Guest
|
|
« Reply #44 on: December 15, 2013, 05:16:58 PM » |
|
Hey those pics are cute. Definitely nice to have the option to do it both ways. It would be hard to mimic the distance squared blur with Monte Carlo rays so another plus for SoC.
|
|
|
Logged
|
|
|
|
|