문제

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, it says to find the midpoint of each side, then perturb this location before subdivision. He doesn't explain at all how to "perturb" the location, and looking online yielded no results.

Can anyone explain what this means?

Thanks!

도움이 되었습니까?

해결책

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:

__/\__

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top