Timothy Barnes's Avatar
Timothy Barnes
Member since

Recent Activity

https://www.daedlab.com
This is the voxel game I've been working on. I gave a short lightning talk at Handmade Expo about it back in June. In the original version of this code, I trained a VAE neural net and used it for blending the blocks. Later, I found something better by using a hand-written C function for the blending, and it ran a LOT faster and looked just as good. This project is all in C with Dx12 for graphics. The only libraries are stb_image.h, stb_truetype.h, stb_vorbis.c, and most importantly stb_voxel_render.h.
(Yes, the website is just a clone of HMN. In the future I want to allow user accounts and player skins and stuff).

View original message on Discord

I recently implemented the Amanatides & Woo algorithm for voxel ray casts. I wrote a small visualization to help me understand how it works. The horizontal green line shows the nearest boundary for the lines of Y and the red line shows the nearest boundary for X. The green cube is where the white vector would eventually intersect the green line. Same for the red cube and red line. The intuition behind the algorithm is that you always move in the direction of the nearest cube, so if the green cube were closer than the red cube with the green line above, then we'd increase +Y. If the red cube were closer and the red line to the right, then we'd increase +X.

View original message on Discord

This is a 3D voxel generator I've been working on. It's a custom denoising model trained on Minecraft blocks. The runtime is Direct3D 11 and NVIDIA's TensorRT.

View original message on Discord

This is my first attempt at blending between implicit vector shapes. The interface between green and red has one soft edge and two hard edges.

View original message on Discord