Started by Alkin, June 02, 2009, 10:53:15 AM
Quote from: Hetzen on June 02, 2009, 09:47:37 PMI spent a couple of hours playing with this, and here's where I got to using functions. I may spend a little more time with it. The trick with the ripples, is to to use Get Altitude to drive the Sine function, so the contours follow the landscape, and a Bias function allows you to give the ripples more of a steeper peak.
Quote from: Hetzen on June 03, 2009, 05:54:48 PMSo we now have an output of -1 to +1 as we go up and down the altitude of our landscape. What I wanted to do now is distort that sine wave with a Bias Scaler, which essentially looks at that curve and pinches or pulls the shape. Take a look in the node reference to see what I meen. But it only works on values between 0 and 1, so I now need to convert my -1 to +1 from the Sin Scaler to get my values between 0 and 1. To do this, I added 1 to (-1 to +1) to now give (0 to +2) and then divided this by 2 (or multply by 0.5) to give 0 to 1.