Fractal mountains using Sierpinski gasket in OpenGL

前端 未结 2 397
慢半拍i
慢半拍i 2021-01-27 07:34

I\'m reading a book on OpenGL, \"Interactive Computer Graphics\" by Edward Angel. In it, he asks you to modify a Sierpinski gasket algorithm to yield fractal mountains. To do so

相关标签:
2条回答
  • 2021-01-27 08:09

    By "perturb" he likely means adding a bit of noise to the new midpoint.

    0 讨论(0)
  • 2021-01-27 08:30

    Here's a thought: "perturb" the midpoint by displacing it in the direction perpendicular to the side and form a small hat-shaped segment.

    Go from this:

    ______
    

    to this:

    __/\__
    
    0 讨论(0)
提交回复
热议问题