Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
K-ASS25836y@just8littleBit @user261 https://github.com/txstc55/...
You will need c++ and cmake to build the project, have fun -
K-ASS25836y@Marl3x there are some versions of 2d voronoi minesweeper which I also implemented, but the spherical one is new
-
K-ASS25836y@billgates the unclicked cells always have a brighter colour while the clicked ones have a darker colour
-
Very nice idea. I assume that it was fun to work out the mathematics and algorithms. 👍
-
It looks like the areas are polygon based. But how did you do voronoi polygons? Or is it a spherical texture?
-
K-ASS25836y@Lensflare so first of all I use a Python library to calculate the spherical voeonoi cells, which are defined by the boundary points of the cell. Then, connect each edge with the center of the polygon, which now give you a set of triangles that make up the cell. For each triangle, recursively construct four triangles by connecting the midpoint of each edge until the triangle is small enough.
So essentially what you see is just a massive collection of triangles instead of a sphere. It's also explained in readme. -
K-ASS25836y@nedjima if you have any question regarding the detail of implementation just open an issue
Related Rants
-
DangerousDev25Microsoft is investing in Git, VSCode, Electron, Github, Bash-on-Windows. Things that decentralize and help pr...
-
Benedikt6Holy shit! Apple deprecates OpenGL. How dumb can they be? They really want to be this arrogant kid in the corn...
-
Hastouki2"OpenGL, OpenCL deprecated in favor of Metal 2 in macOS 10.14 Mojave". Another reason I'm never buying another...
I built a spherical voronoi minesweep
rant
cg
opengl