Skip to content

a5huynh/planet-generator

Repository files navigation

planet generator

Author: Andrew Huynh

License: MIT

example-planet gif

a little history

Back when I was a wee lad, around the years of 2008-2009, I wanted to experiment/play around with WebGL, which at the time was a relatively new piece of technology. This code stemmed from the initial attempt and, unfortunately, due to time constraints I could not pursue the project any further than what I have here.

The planet generation code is based off of an even older school project intended to build a complex 3D scene in OpenGL. For kicks, you can check out the class project page here: CSE167 Final Projects and a small write-up I did afterwards here: CSE167 Final Project Results

about this repo

This repository contains WebGL & C++ code that setups and generates a "planet" model. This is accomplished using the well known Particle Deposition technique. If you want to dive directly into how the planet is generated, check the generate function in the file planet.js.

If you're curious about how to interact with WebGL at a low level rather than save time and use a nice library like Three.js, check out the gl*.js files for a fun time.

All code is MIT licensed, so go ahead and use it in your next great game or 3D visualization tool!

typescript updates (2017)

In the year 2017, I decided to revisit portions of the planet generation code and complete some updates I've been meaning to do for several years. You can check out the code under the src/typescript directory and if you're interested in reading a walkthrough of my thoughts and explanations feel free to check out the following: