Sierpinski’s Tetrahedron!

pyr

For my Computer Graphics class we had to do Sierpinski’s Triangle in OpenGL. As optional extra credit, we could expand it to 3D. I took up the challenge, and this was the result. It’s not perfect, but it looks really cool!

As always, grab the code at Gist. Comments, forks and improvements are appreciated. :)

  • http://www.facebook.com/Chroposnos Israel Segundo Osorio

    Why does always the code for computer graphics has to be so messy and cryptic?

  • http://julianapena.com Juliana Peña

    Because computer graphics IS messy and cryptic. :(