Quote from: Dune on June 16, 2011, 11:22:33 AM
Hey guys, help me out please. I've got this, but I can't find a way to really make the cone soft at the sides (preferably starting from an adjustable height).
softconetest.tgd
You're on the right track. A couple of things:
Anyone using v2.3 who loads this file will not see the same thing as you. v2.4.5.0 (alpha) was the first build that allowed Smooth Step Scalar's
step start to have a larger value than
step end. To make it compatible with 2.3 you should should swap your step start and step end connections, and then use a Complement Scalar to invert the output. Apart from that, you're on the right track with the Smooth Step Scalar.
The main thing you need to do to get a softer edge (and more consistent softness) is to plug your functions into the
final density modulator of the cloud layer, not the main
density shader input.
Edge sharpness won't have an effect then, so you need to increase
cloud density to compensate. I've set
edge sharpness to 1 and
cloud density to 0.6. That gets you part way.
The cloud is quite dense, and that's fighting with your attempts to soften the edge. But you want the density so that it has strong self shadowing. The way to get a softer edge is to reduce the density at the outer edge without reducing the density on the inside. You can do this with a power function, e.g. Power Scalar. Your Smooth Step Scalar gives you a value between 0 and 1, so if you raise that to a power you change the curve between 0 and 1 while keeping 0 and 1 the same. A power greater than 1 reduces all the values (a power less than 1 would increase all the values). Try the following: Power Scalar at the very end (after the Complement Scalar), and give
input 2 a Constant Scalar with a value of something like 4. It shrinks the column a bit, but you can easily fix that. There is still some density right up to the original edge, it's just very low density. Now increasing your column base width to 300 gives a really soft edge (originally was 150). Multiplying that with some other fractal might look quite good.
I've attached my modified version.
Matt