Mixing displacement scalars on vertical

Started by WAS, November 15, 2018, 03:32:32 AM

Previous topic - Next topic

WAS

I'm wondering if someone could help me figure out how to mix scalars by altitude/verticle  (y) axis.

Basically, I wanted the "spire" to appear relative to the height of either alone, but mixed, where smaller fractal A is the base.

Tangled-Universe

Plug this below your 'base colours' node and use the preview render to tweak the altitude mask in the distribution shader. When it's right, then simply plug the distribution shader into the controller input of your mix scalar node which merges the two shapes.

<terragen_clip>
   <distribution_shader_v4
      name = "Distribution shader v4 01"
      gui_use_node_pos = "1"
      gui_node_pos = "-1120 220 0"
      gui_group = ""
      enable = "1"
      input_node = ""
      gui_use_preview_patch_size = "0"
      gui_preview_patch_size = "1000 1000"
      colour = "1 1 1"
      child_layers = ""
      coverage = "1"
      fractal_breakup = "0"
      breakup_shader = ""
      fractal_contrast = "0.5"
      invert_breakup = "0"
      blend_by_shader = "0"
      blending_shader = ""
      invert_blendshader = "0"
      blend_as_coverage = "1"
      limit_maximum_altitude = "1"
      maximum_altitude = "10"
      max_alt_fuzzy_zone = "10"
      limit_minimum_altitude = "0"
      minimum_altitude = "10"
      min_alt_fuzzy_zone = "10"
      altitude_key = "1"
      use_Y_for_altitude = "0"
      limit_maximum_slope = "0"
      maximum_slope_angle = "60"
      max_slope_fuzzy_zone = "20"
      limit_minimum_slope = "0"
      minimum_slope_angle = "30"
      min_slope_fuzzy_zone = "10"
      slope_key = "0"
      use_Y_for_slope = "0"
      fuzzy_zone_softness = "1"
      smoother_fuzzy_zones = "0"
      >
   </distribution_shader_v4>
   <constant_colour
      name = "Blue"
      gui_use_node_pos = "1"
      gui_node_pos = "-1260 300 0"
      gui_group = ""
      enable = "1"
      input_node = ""
      gui_use_preview_patch_size = "0"
      gui_preview_patch_size = "1000 1000"
      colour = "0 0 1"
      >
   </constant_colour>
   <constant_colour
      name = "Red"
      gui_use_node_pos = "1"
      gui_node_pos = "-1320 220 0"
      gui_group = ""
      enable = "1"
      input_node = ""
      gui_use_preview_patch_size = "0"
      gui_preview_patch_size = "1000 1000"
      colour = "1 0 0"
      >
   </constant_colour>
   <surface_layer
      name = "Surface layer 01"
      gui_use_node_pos = "1"
      gui_node_pos = "-1240 40 0"
      gui_group = ""
      enable = "1"
      input_node = "Base colours"
      gui_use_preview_patch_size = "0"
      gui_preview_patch_size = "1000 1000"
      apply_colour = "1"
      diffuse_colour = "0.5 0.5 0.5"
      colour_function = "Mix colour 01"
      enable_test_colour = "0"
      test_colour = "1 0 1"
      luminous = "0"
      luminosity_multiplier = "1"
      luminosity_tint = "1 1 1"
      luminosity_function = ""
      displacement_direction = "1"
      displacement_multiplier = "1"
      displacement_function = ""
      displacement_offset = "0"
      smoothing_effect = "0"
      smoothing_amount = "1"
      child_layers = ""
      coverage = "1"
      fractal_breakup = "0"
      breakup_shader = ""
      fractal_contrast = "0.5"
      invert_breakup = "0"
      only_breakup_colour = "1"
      blend_by_shader = "0"
      blending_shader = ""
      invert_blendshader = "0"
      blend_as_coverage = "1"
      limit_maximum_altitude = "0"
      maximum_altitude = "1000"
      max_alt_fuzzy_zone = "200"
      limit_minimum_altitude = "0"
      minimum_altitude = "200"
      min_alt_fuzzy_zone = "200"
      altitude_key = "1"
      use_Y_for_altitude = "0"
      limit_maximum_slope = "0"
      maximum_slope_angle = "60"
      max_slope_fuzzy_zone = "20"
      limit_minimum_slope = "0"
      minimum_slope_angle = "30"
      min_slope_fuzzy_zone = "10"
      slope_key = "0"
      use_Y_for_slope = "0"
      intersect_underlying = "0"
      intersection_mode = "0"
      intersection_zone = "2"
      smoothing_scale = "0"
      intersection_shift = "2"
      min_intersection_shift = "-2"
      fuzzy_zone_softness = "1"
      smoother_fuzzy_zones_for_shading = "0"
      smoother_fuzzy_zones_for_displacement = "0"
      >
   </surface_layer>
   <mix_colour
      name = "Mix colour 01"
      gui_use_node_pos = "1"
      gui_node_pos = "-1220 120 0"
      gui_group = ""
      enable = "1"
      input_node = "Red"
      gui_use_preview_patch_size = "0"
      gui_preview_patch_size = "1000 1000"
      input_2 = "Blue"
      mix_controller = "Distribution shader v4 01"
      >
   </mix_colour>
</terragen_clip>