Foam

Started by Dune, January 11, 2013, 02:59:42 AM

Previous topic - Next topic

Dune

Testing some foam (warped Voronoi). Never mind the temporary rocks.

pokoy


Mor



choronr

Some of the nicest foam I've seen. Is that your alternate way of making water?

TheBadger

Looks really good in some places, Ulco. But not so good in others. But I am betting you will get it working just like you want. Looks like your almost there now.
It has been eaten.


masonspappy

S-o-o much better than the foam I came up with last year. It looked like smeary chalk lines drawn by a drunkard

Dune

#8
No, Bob, it's not my alternative way of making water, just the foam I was experimenting with. Like I said; take a few sizes (0.3, 0.5, 0.8) of Voronoi (use get position in texture as input), mix these (merge shader), invert by color adjust shader (shift the sliders a bit to get best results)  and warp by a quite smallscale (0.4, 2, 0.05) ridged fractal as input for vector displacement shader. Use that to blend foam (plain white surface shader, coverage decreased if you want it simple) after the water shader.

A small problem with this iteration is the foam remains on the rock sides; the height should be warped. The line is now too straight. Back to work.

Icegrip

Looking great!  :) If you get rid of the straight line you mention it will look even better!

zaxxon

Inspiring work Dune!

Dune

By the way; there is something I know, but don't understand. Can anyone shine a light on this phenomena? Switch between the two surface layers in this example. If you use the fractal as blender the water is water plus the white 'foam', if you use the white of the fractal as a child, the water turns black. Huh?

choronr

That latest iteration is not bad at all when you think for a brief moment after the water recedes, it leaves a trace of foam that quickly vanishes ...just using my imagination.

Dune

That was the idea.

j meyer

Quote from: Dune on January 12, 2013, 12:32:39 PM
By the way; there is something I know, but don't understand. Can anyone shine a light on this phenomena? Switch between the two surface layers in this example. If you use the fractal as blender the water is water plus the white 'foam', if you use the white of the fractal as a child, the water turns black. Huh?

I guess you have figured it out in the meantime or maybe it was a joke anyway....
So,just in case,here are my two cents:
Using the Power Fractal as a child means anything that is covered by the Surface
Layer will be filled by its child also and since the SL is not masked or blended it
covers anything and so does its child.There was only one of the color checkboxes
ticked,though,but TG seems to interpret that as nothing and nothing will be
rendered as pure black,whereas the color black would be a dark (noisy) gray.
When the PF is connected to the SL black or nothing gets interpreted as
transparent,just like with opacity,and thus the water shines through.
I hope that makes sense to you and excuse my lay way.