javascript - Three.js - Using PlaneGeometry to generate hills -


I'm looking for an easy way to generate no-uniform hills in three.js I am able to make a hill effect using particles and position them using a sine wave algorithm (roughly)

  x = Math.random () * 1000 Y = Math.sin (X / freq) * amp = z = Math.random () * 1000  

However, this method seems to be hacked, and the height of the hills is the same. I was thinking of using plain gymetry , but I'm not sure that this is a good way. Any idea will be helpful.

I think you are trying to generate a random field. Then, using the monastery, using the monastery. Random provides a very good face in exchange for the shape of the shape of the round.

The effect that you are trying to achieve ("mountain of natural shape") can be used simply by simplifying the library. like.

A full chapter in the book "Three.js Essential" is covering this exact topic.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -