Planetside Software Forums

General => Terragen Discussion => Topic started by: Upon Infinity on December 14, 2019, 09:24:48 PM

Title: A tale of 2 holes in the clouds.
Post by: Upon Infinity on December 14, 2019, 09:24:48 PM
I might need forum help on this one.

Trying to punch a hole in the clouds.  I even have an example file of how to do it successfully.  For some reason, it's not transferring over, despite copy and pasting the exact nodes to do it.

Example 1 (Incorrect) Nodes are functioning, but instead of hole in the clouds, produces total cloud over mask.

Example 2 (Correct): Nodes produce hole through clouds successfully.  

Colour adjust and image map shaders are exactly the same and were ported over from example 2. They even use the same mask file.

What might produce the inverted result?
Title: Re: A tale of 2 holes in the clouds.
Post by: WAS on December 14, 2019, 10:29:15 PM
Have you tried making sure "Invert mask" is checked in the cloud fractals?
Title: Re: A tale of 2 holes in the clouds.
Post by: Upon Infinity on December 15, 2019, 12:56:55 AM
Yes, as indicated in the screenshots.  It's either something that's further up or down from the 2 nodes (colour adjust/image map).
Title: Re: A tale of 2 holes in the clouds.
Post by: Dune on December 15, 2019, 02:23:12 AM
A mask may (maybe) not work exactly as you expect as colors in the density shader are unclamped. I don't actually know what a mask does to negatives. So I would feed mask into final density, maybe also you need to change color from linair to convert to lineair, or the other way round.
Title: Re: A tale of 2 holes in the clouds.
Post by: cyphyr on December 15, 2019, 06:54:58 AM
Try using a compliment colour function node and make sure your simple shape is actually large enough.
compliment Colour.JPG
Title: Re: A tale of 2 holes in the clouds.
Post by: Matt on December 15, 2019, 08:11:36 AM
Are you using "coverage adjust" (in the cloud layer, not the fractal)? If this has a positive value it will produce cloud where the hole is. The masked density fractal might be 0, but the cloud layer's coverage adjust setting adds to this density.
Title: Re: A tale of 2 holes in the clouds.
Post by: Upon Infinity on December 15, 2019, 09:14:57 AM
Quote from: Matt on December 15, 2019, 08:11:36 AMAre you using "coverage adjust" (in the cloud layer, not the fractal)? If this has a positive value it will produce cloud where the hole is. The masked density fractal might be 0, but the cloud layer's coverage adjust setting adds to this density.
That was it.  Thanks, Matt.
Title: Re: A tale of 2 holes in the clouds.
Post by: Upon Infinity on December 15, 2019, 09:23:08 AM
Quote from: cyphyr on December 15, 2019, 06:54:58 AMTry using a compliment colour function node and make sure your simple shape is actually large enough.
compliment Colour.JPG
I take it, then, that this is an alternate method to my camera projection?  Is this easy to position where you want it?  I use camera projection as it's quite easy to light a specific area.  I wasn't aware of the coverage adjust limitations.
Title: Re: A tale of 2 holes in the clouds.
Post by: Upon Infinity on December 15, 2019, 09:27:40 AM
Quote from: Dune on December 15, 2019, 02:23:12 AMA mask may (maybe) not work exactly as you expect as colors in the density shader are unclamped. I don't actually know what a mask does to negatives. So I would feed mask into final density, maybe also you need to change color from linair to convert to lineair, or the other way round.
Sounds interesting.  Which node would be final density?
Title: Re: A tale of 2 holes in the clouds.
Post by: Dune on December 15, 2019, 09:43:07 AM
One of cloud inputs, fourth/fifth I believe.
Title: Re: A tale of 2 holes in the clouds.
Post by: cyphyr on December 15, 2019, 11:04:52 AM
Unfortunately there is no good guaranteed way of getting holes inn clouds exactly where you want them. Both the image map (either Y projected or camera projected) and the simple shape shader suffer from having vertical sides cutting un-realistically through the clouds.

A not ideal but possibly artistically best meathod would be to create a cloud layer with a high coverage so there are some small holes here and there. You can then use a transform node to move the cloud fractal somewhere where the hole is in the right place and the light is illuminating the location you want.
Title: Re: A tale of 2 holes in the clouds.
Post by: Dune on December 15, 2019, 11:11:26 AM
I have posted a method several times that works perfectly, but I'll describe again: using a small black image map with soft white circle, projected by camera onto clouds (masking it), by copying sun elevation and angle. Invert color before masking, and set camera angle as narrow as you like sunspot. Location of camera where you want the sun spot. Or add a few of them.
Title: Re: A tale of 2 holes in the clouds.
Post by: Upon Infinity on December 15, 2019, 12:57:44 PM
Quote from: Dune on December 15, 2019, 11:11:26 AMI have posted a method several times that works perfectly, but I'll describe again: using a small black image map with soft white circle, projected by camera onto clouds (masking it), by copying sun elevation and angle. Invert color before masking, and set camera angle as narrow as you like sunspot. Location of camera where you want the sun spot. Or add a few of them.
I was using just such a mask, but it still produces hard edges.
Title: Re: A tale of 2 holes in the clouds.
Post by: cyphyr on December 15, 2019, 02:42:36 PM
I think it can work very well (Dunes method) but as with all things Terragen it is down to a combination of circumstances.
The angle of the sun and camera, the thickness of the cloud and the exact nature of the Cloud fractal that is being cut through.
Title: Re: A tale of 2 holes in the clouds.
Post by: Dune on December 16, 2019, 01:57:26 AM
Should depend on how hard your white circle is, and you may have to switch between lineair and convert to lineair.
Title: Re: A tale of 2 holes in the clouds.
Post by: N-drju on December 16, 2019, 02:13:42 AM
It would be sweet if you could produce a simple cloud, then, invert its output so that a clouded area would become a hole. Seems logical, given easy clouds have falloff applied.
Title: Re: A tale of 2 holes in the clouds.
Post by: cyphyr on December 16, 2019, 04:29:15 AM
Well technically you could use a cloud fractal (or Power fractal) with its noise settings set to Perlin ridges ...
Not an easy task but if you got the scale right it could work.