Category Archives: Development
Today I did a lot more water experiments, trying out different ways to make the rivers… The results weren’t very good… Either I have very short rivers (because the water doesn’t have anywhere to go) or I have flooding (the most common result): I’ve even tried approaching it based on sedimentation and erosion, but the […]
I’m trying out using a cellular automata in creating the river courses… The results work great to make lakes, but not rivers: Here you can see the iterations of the automata: The problem it seems to be that the current algorithm checks for each grid element if a neighbor has water in it, and if […]
Started work on the new river system… The current rivers are just a line lowering the terrain and replacing the voxel material: It has a lot of bugs (floating rivers, but that could be sorted), but it’s impossible to animate (especially because it doesn’t have an actual direction) and it doesn’t actually look like a […]
Today it was bug-fixing time… First bug was an old one that was annoying me, even if it was simple to solve: the screen would turn purple on transition between areas… The second bug was the normals on the objects… For imported objects, I’m using the 3ds format (because it was simple and I already […]
Today I worked on some bug fixing and optimization, namely on the voxel raycasting… I already suspected that my raycasting function was a bit iffy and missed some intersections, but today I got to confirm that and to fix it, while optimizing it a lot… So yesterday, while in debug mode, the game would drop […]
After a long time (too long, really), finally got the OpenGL decals working… The problem ended up being something quite simple: in the Direct3D pipeline I was storing the W value for depth, while on OpenGL I was storing the Z value… Although the two values are quite similar in my test scenes, they’re different […]
Still in the middle of a massive flu, which might explain the fact that I can’t get decals to work on OpenGL… They almost work, but there’s something wrong somewhere, and I can’t figure out where! They only display if I remove one of the box checks (the Y axis), so my guess is that […]
I’m in the grip of a massive flu, so just some minor writing, proof-reading and other stuff I can do on my laptop… Hopefully tomorrow I’ll be back to normal coding… #nobreaksforindydevs Now listening to my own breathing sounding like Darth Vader
Old version: New version: Way better, no?! In movement is looks even better… I think I can even improve the effect more, making it branch out on some points, but I’ll leave that for another day… Only the OpenGL version of the decals missing and I can move on to the next task… As I […]
Decal-based shadows work better than I expected, it looses that effect of being just a quad below the characters, etc: In this case it’s quite hard to make out, except when stuff is moving… Here’s an old screenshot for comparison: If you zoom on the shadow you can see the difference… It’s much more noticeable […]