Shiny Rocks Generator

2022-07-19に共有
After almost a year, I'm finally sharing another project. :D

Thanks to everyone who followed me in that time! Though this project is not as organized or Minecraft-related as the past few, I realized recently that I would rather make projects that I find interesting than start a huge project and lose interest in it, so here it is!

Expect more random projects from me in the future. They might be big, or they might be small; no guarantees on what they will be like. ;)

========================================

In case you're wondering how this project works:
- It uses an optimized version of something called "Bridson's Algorithm" to place a bunch of tightly packed points.
- It then creates a "Voronoi Diagram" of those points, essentially turning the points into cells in which the cell borders are equally spaced between the points.
- Finally, it fills these cells with colored triangles, and those triangles are shaded based on the mouse's position using some fancy math (for those familiar with 3D rendering math, it basically calculates a normal vector for each triangle).

This project is a bit messy inside (partially organized, partially not), so if you have any specific questions on how it works, let me know.