8

How could I smooth out the top and bottom parts of the triangles?

enter image description here

Tsybe
  • 469
  • 4
  • 10
  • 1
    Hi, Tsybe! as @Markus has commented below.. I thought the only reason you put the Greater Than branch in your Q was to illustrate the function.. not actually to get the wave pattern... sorry.. so as he says .. replace the Ping Pong in your tree with the clusters illustrated in my answer, and leave the rest as it is. That should work. – Robin Betts Sep 17 '21 at 13:27
  • 1
    .. See Edit.. I've returned your (very neat and tidy! :D) .blend, with adjustments. – Robin Betts Sep 17 '21 at 13:37

1 Answers1

10

At its simplest, you could use Map Range to map the function from a linear, to a smooth, version of itself:

enter image description here

For more control, you could, for example, map the Ping Pong into a 0-1 range, through an RGB Curves node, and back out to its original range, after tweaking the shape:

enter image description here

Robin Betts
  • 76,260
  • 8
  • 77
  • 190
  • Thank you for your answer, both of your results look pretty good! I've tried to replicate your nodes but unfortunately, something went wrong in mine. Now it looks like a simple Wave Texture node, and there are no triangles anymore. I updated the post with the blend file, if you could take a look at it I would appreciate it! – Tsybe Sep 17 '21 at 11:13
  • 2
    @Tsybe R. Betts only posted a change, not whole node setup - he alters your x, but you still need to pass it to Math: Greater Than node, along with z as Threshold. – Markus von Broady Sep 17 '21 at 12:05
  • Thanks, @Markus.. will explain on OP.. :) – Robin Betts Sep 17 '21 at 13:23