Currently, I am searching for a straightforward technique to generate non-uniform hills in Three.js. By utilizing particles and positioning them with a sine wave algorithm like the following snippet:
x = Math.random() * 1000
y = Math.sin( x / freq ) * amp
z = Math.random() * 1000
Although this approach works to create a hill effect, the results are consistently uniform in height which does not meet my requirements. I have considered utilizing PlaneGeometry
as an alternative solution, but I am unsure if this is the most effective method. Any suggestions or ideas would be greatly appreciated.