Fractal mountains are computer generated shapes that have an appearance similar to real life mountains. What is a Fractal? A fractal is a geometric figure that is typically generated through some form of recursion, with a specific function changing the shape several times. How are the Fractal Mountains Generated? We start off by drawing a triangle in 3D space. We must create a coordinate system that can make a 2D plane act as a 3D place. Within our original triangle, we connect the midpoints of each line to form 4 triangles, and then shift each vertice up, down, or diagonally by a randomly generated number. We repeat this process several times (which is where the recursive algorithm comes in) and end up with a fractal mountain Beyond just the recursive formula, I added several features such as colouring methods, and rotation about any axis. This project was a group effort, which involved contribution from my computer science teacher, Mr. Nick Nolfi (misternolfi.com).
fractal-mountains's Introduction
fractal-mountains's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.