Slicing the terrain according to distance from the camera

Started by neverager, June 19, 2019, 05:42:54 pm

Previous topic - Next topic

neverager

I'm trying to to slice the scene according to distance from the camera by creating a render layer with set far clipping or near clipping distance, but it works only on atmosphere with clouds, terrain is not being slicing. So is there a way to slice terrain according to distance from the camera?

WAS

Quote from: neverager on June 19, 2019, 05:42:54 pm
I'm trying to to slice the scene according to distance from the camera by creating a render layer with set far clipping or near clipping distance, but it works only on atmosphere with clouds, terrain is not being slicing. So is there a way to slice terrain according to distance from the camera?


At first thought I would say no, not the way you want likely. The scene in general works off a spheroid object. So perhaps to achieve these effects you could use a plane, at the desired width/lengths you need with your terrain setup.
Check out the Terragen Community on Facebook: https://www.facebook.com/groups/Terragen.Galleries/


Matt

If you render with "ray trace everything" enabled in the Advanced tab, clipping works. Unfortunately this reduces the apparent micropolygon detail, so you would need to go into Subdiv Settings and set "ray detail multiplier" to 1. This usually increases render times by quite a lot, but give it a try and see if it works for you.

Another way you could solve this without ray tracing everything is by using Plane objects instead of the Planet, as WASasquatch mentioned above. You can plug the same set of shaders into the Plane instead of the Planet. However, you would lose the curvature of the planet.

A third possibility is using a Default Shader at the very top of the shader network and using a mask in its opacity input. This should propagate the opacity mask all the way down the chain. It's more efficient to mask it right at the top.
Just because milk is white doesn't mean that clouds are made of milk.

neverager

Thank you very much for your answer, Matt! I think it will works for me.