Making a Donut-Shaped Cloud

Started by ares2101, January 23, 2013, 02:11:22 PM

Previous topic - Next topic

ares2101

I've looked around and I see this have been addressed before, but I'm not understanding it.  What is the simplest way to create a donut-shaped cloud?  I've got a dense localised cloud forming a disk and I can't seem to get a hole to form in its center.  I've tried putting a camera inside it and using a distance shader, but to no avail.

Zairyn Arsyn

maybe try using the painted shader?
as a blending shader, hmmm...

WARNING! WIZARDS! DO NOT PREDICT THE BEHAVIOR OF OTTERS UNLESS YOU OBEY BIG HAPPY TOES.

i7 2600k 3.4GHZ|G.skill 16GB 1600MHZ|Asus P8P67 EVO|Evga 770GTX 4GB|SB X-FI|Antec 750W
http://zlain81.deviantart.com/

mhaze

Image shader! blurred white torus on a black background used as a mask for the cloud density shader.

Zairyn Arsyn

now your on your way, :)

i'm sure it would also be possible to do this with blue nodes...
but i'm not going to go there... ;)
WARNING! WIZARDS! DO NOT PREDICT THE BEHAVIOR OF OTTERS UNLESS YOU OBEY BIG HAPPY TOES.

i7 2600k 3.4GHZ|G.skill 16GB 1600MHZ|Asus P8P67 EVO|Evga 770GTX 4GB|SB X-FI|Antec 750W
http://zlain81.deviantart.com/

cyphyr

Two distance shaders merged on top of each other should do it.
Plenty of other ways.
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

mhaze

Nice one, never seen that before let alone thought about it :)

mhaze

You colud do the same thing with 2 SSS subtracted from one another

cyphyr

I think mhaze's version is probably better :)
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

ares2101

Quote from: mhaze on January 23, 2013, 03:06:59 PM
You colud do the same thing with 2 SSS subtracted from one another

How exactly do I do that?  I'm having no luck with other methods.

Dune

Like this, but then attached as blender to your cloud fractal.

ares2101

Quote from: Dune on January 24, 2013, 01:32:36 AM
Like this, but then attached as blender to your cloud fractal.

OK, I did all that and while I see some progress, it's not working perfectly.  You can see a change in the cloud's appearance in the middle, but I can't seem to make that an actual hole.  I tried tweaking the depth of the cloud, but that didn't do much.  As a test, I attached the two SSS and merge shader to a displacement shader on the ground and got a donut shape, so I know they work.

If it helps to figure it out, if I turn off Localise on the cloud, it becomes a total overcast, so the cloud appears to not be constrained by the two SSS.

Dune

If your cloud fractal is blended by something (anything), the cloud coverage messes up things. So turn that to zero again and try to increase/decrease cloud coverage inside the fractal. I think that's the culprit.

ares2101

Quote from: Dune on January 25, 2013, 04:10:20 AM
If your cloud fractal is blended by something (anything), the cloud coverage messes up things. So turn that to zero again and try to increase/decrease cloud coverage inside the fractal. I think that's the culprit.

OK, I'm seeing some improvement, I no longer need Localise on for it to be contained around the mountain.  However, I still can't get the hole, even after trying to tweak other stuff as well.  I'm attaching the relevant nodes, maybe that will help things.

Dune

You have to subtract one from the other 100%. The merge shader still was at 0.5.

ares2101

Quote from: Dune on January 25, 2013, 12:16:13 PM
You have to subtract one from the other 100%. The merge shader still was at 0.5.

Oh, so that's what that value is.  Never really used merge shaders.  This is the second time today such a small thing has vexed me in a project.  Thanks Dune.