Starting from a random distribution of points was causing some obvious problems. Firstly there's the chance of some very small regions, but also blending the regions together is more difficult when some points are bunched together - as the distance from the points to the boundaries is very inconsistent.
Starting out from a Fibonacci sphere of points seems like a good alternative - will just need to decide on a way to offset them from here.
boring game programming
Since I had the day off today, I spent the day working on my own #gamedev project instead. I improved the blending between noise values between different biomes. I was working on adding a proper flow for planet generation and player spawning, and got sidetracked into adding a frontend UI to test it from.
boring game programming
Today I'm doing some more mundane #gamedev work cleaning up the way that entities are managed (mostly old code that I wrote a few years ago). This should help with how players are spawned, and for spawning procedural objects in the world - plants and animals and stuff.
But I don't have any screenshots to show for it 🙃
No programming today, but here's a #gamedev post I wrote and never got around to publishing, about implementing collision detection. Hopefully someone finds it vaguely useful
https://www.atoft.dev/posts/2020/04/12/implementing-3d-collision-resolution/
boring game programming
Back on the #gamedev personal project today. I had to fix a nasty bug where random triangles were sometimes appearing in the terrain, which only appeared on my laptop, and only after upgrading Ubuntu versions.
Turned out I was passing "size of elements" somewhere OpenGL was expecting "number of elements", but up until now on different PCs and OSs this bug had been producing no visual artifacts 😭
Got the mouse working in UI. Here's how the project looks now https://youtu.be/JA-GlWFONzg #gamedev
Trying out procedural volume textures to get seamless texturing across a terrain. Landed directly in the early nineties.
@alastair welcome back! (to the 90s) 😁