Author Topic: Cloud masking/Invert localise radius  (Read 1011 times)

Offline AC5LT43R

  • Member
  • *
  • Posts: 40
Cloud masking/Invert localise radius
« on: June 16, 2014, 12:55:02 PM »

So I have 3 cloud layers in my scene, one "blanket layer" then a two layers on top of that, one which I have close to the camera and one that I want off far in the horizon. I'm struggling to work out how to mask the horizon cloud layer so it doesn't appear anywhere in the radius or immediate foreground with the other layer. I've tried both the distance shader (it half gives me the result I want in that it masks from distance, but outside of the mask is just a grey layer of cloud) and also Big Ben's method in this thread,111.15.html, which doesn't work either.

I've attached an image to give an idea of what I want.


Online Dune

  • Member
  • *
  • Posts: 15127
Re: Cloud masking/Invert localise radius
« Reply #1 on: June 16, 2014, 04:07:10 PM »
Is the black in the distance shader clamped? Maybe attach a tgd, so we can have a look.

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 13097
  • Holy snagging ducks!
Re: Cloud masking/Invert localise radius
« Reply #2 on: June 18, 2014, 06:28:16 AM »
Are you using the Distance Shader output as the Mask input of your cloud Density Fractal, or as the Density Shader input itself? The latter won't work, it'll just give you all gray. What you want to do is mask the existing cloud fractal Density Shader. I do think a Density Shader is an easy way to do this using that approach. A Simple Shape Shader with Invert on the Mask Input should also work, I think.

- Oshyan