r/VoxelGameDev • • 5h ago

Media A grapple dozer built entirely in my voxel game: player-designed tracks, printed parts, physics joints

27 Upvotes

Heavy Metal runs on my own C++/Vulkan voxel engine.
I am building this game and voxel engine fully on my own, I made it from scratch in C++ with Vulkan, it is fully raytraced, with direct lighting from sun and emissives, Global Illumination using world space radiance probes and a whole lot of tricks to make all that dynamic and real time.
I also made the physics engine myself, it is based on Featherstone's Rigid Body Dynamics book, I wrote my own implementation of it and extended it to support arbitrary mechanisms and edits. I also added systems like ropes, chains, winches and other custom joint features.
I am making the diegetic UI (CRT screens) using RML and Lua, which is basically web development, I'm making the CRT looking apps there and it's then rendered by the raytracer directly on the body it's attached to.

Everything in the clip is built in-game and simulated directly:

- custom carriages: the tracks are designed by the player

- voxel parts drawn in the CAD (or directly on the machine), then printed

- parts welded and joined with simulated hinges and pistons

- per-voxel paint

- controls wired up, or programmed in code, with sensors for more advanced logic

Tbh the part I'm struggling the most with is finding ways to make building a machine as easy as possible, while keeping the freedom that this game kinda rests on.
The approach I'm taking is parametric prefabs for everything generic the player may want (pistons, wheels, arms, plates, lattice, beams, etc) and a CAD system where the player can build whatever he wants, so that there is simplicity and freedom available.
Making linkages can be tricky sometimes and I'm wondering if pre-made linkages would be interesting to have available or if it takes away the fun? 🤔

Any suggestion is very much welcome :)

Full build: https://youtu.be/aQqli2T7nik

Discord: https://discord.gg/xwFy4f6AxE


r/VoxelGameDev • • 7h ago

Discussion No floats in worldgen: how I keep every client's terrain identical, except the ores only the server knows about

Post image
0 Upvotes

I'm making Cubica, a multiplayer voxel survival game in Unity (DOTS). Two decisions shaped the whole terrain pipeline, and I'm curious how others here handle them.

1. Not a single float in the generation path. The server and every client generate chunks from the seed instead of streaming them, so they must agree bit for bit. x86 and ARM phones don't always round the same float expression the same way, so the generator is integer-only: noise is quantized to a fixed range right away, thresholds are integer compares, and structure placement uses an integer hash (hash % 1000 < 300, never Random.value < 0.3f). Villages, rivers, caves and mine shafts all come out of the same pure function of seed + chunk coordinate. Only player edits travel over the network, as a patch layer on top of the generated chunk.

2. Ores are not part of that function. If clients could generate ores, a modified client could x-ray the whole world. So ore placement is keyed by a 128-bit per-world secret that only the server has. Clients generate plain stone where the server has ore (same collision, so movement still predicts correctly). An ore only reaches a client when one of its faces gets exposed, or when a patch changes it.

Storage: 16x256x16 chunks, base blocks as an immutable 128 KB blob (2 bytes per block, Burst-readable), edits as a small patch buffer on top. Structures are baked to RLE blobs with a per-column index, so stamping them in the generation job needs no decompression.

The tradeoff I'm still weighing: every worldgen change bumps a generation version, because old saved patches only make sense on top of the terrain they were made on.

Anyone else running integer-only noise? I'd love to compare notes on how you handle smooth-looking terrain with 8-bit quantized noise.

(Open alpha if you want to walk around in it: https://cubica.net/download/ , Discord: https://discord.gg/fWE2YWChc)


r/VoxelGameDev • • 1d ago

Article Zero-meshing C++/Vulkan voxel engine: 128³ toroidal macro grid + 8³ sub-voxel bitmasks, two-level DDA, and in-place GPU cellular rubble/fluids

2 Upvotes

Been building a custom C++23/Vulkan voxel engine from scratch for GIGAH|RUSH 2 (a survival horror sim set in an endless concrete megastructure). Thought the data layout and destruction/fluid coupling might be interesting here.

World layout:

- Active floor is a dense 128³ toroidal grid (2 m macro cells, 256 m wrap period on X/Y/Z).

- Each macro cell stores a 16-bit CellType and an 8³ occupancy bitmask (512 sub-voxels at 0.25 m, packed into 8x uint64_t = 64 bytes/cell).

- Uniform cells allocate nothing per sub-voxel. Only mixed cells (painted concrete, partial carves, fluids/gases/debris) allocate a 1 KiB (512x uint16_t) page from a paged-sparse pool, settling back to uniform when homogeneous.

Rendering (no meshing):

- Deleted greedy meshing early on and switched to a fullscreen two-level Vulkan DDA raymarcher over a GPU VoxelMirror (8³ brick occupancy bits + 16³ summary, 1-byte cell class, masks, and demand-sized pagePool).

- Carving concrete only uploads dirty cell deltas (64 B mask + metadata, plus 1 KiB page if mixed). Zero mesh rebuild stalls. Raymarcher writes gl_FragDepth so rasterized props/characters/Verlet wires occlude normally.

- Toroidal wrapping comes for free in the marcher (rays walk camera-relative distance and bitmask the cell index).

Destruction & GPU cellular automaton:

- Carving is stateless and deterministic: hash(seed, cell, bit) vs material hardness with a 1/4 endurance threshold (no per-voxel HP).

- Disconnected chunks are found by a hierarchical connectivity sweep (per-cell 6-connected load-bearing sub-voxel nodes + face-overlap edges, escalating large components to incremental torus-percolation checks) and converted in place to loose rubble_* materials.

- Liquids, toxic gases, fire/smoke transitions, and falling rubble all run in one 8-phase Margolus cellular automaton (31.25 Hz) operating directly in-place inside VoxelMirror's pagePool, with a fenced ring readback syncing masks back to CPU physics.

If you want to see how it looks in motion, there are screenshots/clips on the Steam page:

https://store.steampowered.com/app/5663800/GIGAHRUSH_2/


r/VoxelGameDev • • 2d ago

Discussion Voxel Vendredi 04 Dec 2026

7 Upvotes

This is the place to show off and discuss your voxel game and tools. Shameless plugs, links to your game, progress updates, screenshots, videos, art, assets, promotion, tech, findings and recommendations etc. are all welcome.

  • Voxel Vendredi is a discussion thread starting every Friday - 'vendredi' in French - and running over the weekend. The thread is automatically posted by the mods every Friday at 00:00 GMT.
  • Previous Voxel Vendredis

r/VoxelGameDev • • 3d ago

Media Finally we got some time to work on looks again

61 Upvotes

The new additions are background voxelized generated heightmap and voxel clouds which are pretty cheap. The shadows are composed from one static geometry shadowmap which gets only redrawn when needed and traditional cascades feeded with dynamic objects


r/VoxelGameDev • • 5d ago

Media Voxel Forge 2.0.0 UE plugin

4 Upvotes

My UE plugin reached the 2.0.0 and I wanted to share some tech info with you fellow devs:

  • Cubic, hexagonal and smooth terrain (SmoothQuads).
  • Procedural biomes, caves, rivers and lakes.
  • Actorless chunk streaming with dynamic collisions.
  • Digging and building at runtime, with persistent world saves.
  • Biome-based foliage, scenery placement and custom voxel assets.
  • Terrain sculpting and material painting directly in the editor.
  • Host-based co-op for up to 4 players.
  • Basic gameplay features to start building on top of them

I'd it's a very beef plugin, let me know what's your thoughts on that
https://youtu.be/Nfx-4i0kBJM?si=dTQup5J5SBnND0B8


r/VoxelGameDev • • 7d ago

Media Voxy v0.9.7 is Out Now!

Thumbnail
youtu.be
11 Upvotes

In this version, we have:

• GPU-generated box and convex collision with runtime editing capacity

• Shared editing, painting, and undo/redo across multiple volumes

• Voxelization preview gizmos, batch processing, and mesh-shell generation

• A dedicated palette editor and texture-based palette creation

• Tons of blueprint exposed functions, e.g, region and line editing, copy/paste, coordinate conversion, asynchronous raycasts.


r/VoxelGameDev • • 7d ago

Media Some screens from the SDF-based voxel editor I've been working on

Thumbnail gallery
38 Upvotes

I've recently finished the bulk of the backend work on an SDF-based voxel editor and I'm starting to make more real art with it. These are some of the first pieces I've done over the last couple evenings.

The UI is still kind of a mess, which is the limiting factor at the moment. Once I finish 'sanding' down all the sharp UI edges, I think it's gonna be capable of some really cool stuff.

Code's available on Github for anyone interested: https://github.com/scallyw4g/bonsai

The latest 2.1.0-alpha RC is current.


r/VoxelGameDev • • 7d ago

Question I just wanted grabbing to be more dynamic... and now players can climb and zipline ToT

55 Upvotes

Context: Heavy Metal is a voxel sandbox where you build and operate heavy machines.
I wanted to make grabbing more "physical", I did that by allowing the player rigid body to be affected by the forces of the grab. So I just put a spring joint between the player and the grabbed object, I gave it quite some strength so that the player can pick up heavy objects to make the game a bit easier. But now the player can grab on something very heavy and just climb or sling himself around. He can even use a crane cable as a zipline...
It's fun, but maybe overpowered? It might be fine for a sandbox game where I'm not trying to limit movement.

PS: I am working alone on Heavy Metal, the engine is fully custom (C++ & Vulkan) and the rendering is fully raytraced.

I don't really know if I should keep it or not... what do you think?

Feel free to join the discord if you want to follow my progress on Heavy Metal :)
https://discord.gg/XwxEXgd48A


r/VoxelGameDev • • 9d ago

Question How the color works in Cube World?

6 Upvotes

I'm trying to reproduce how Cube World colors the voxel but I'm having hard time to create that "feeling" of vibrant colors and also how they are distributed. What techniques did he used if you know? Also how he can create vertical grey walls along smooth green plains with yellow "roads" ?


r/VoxelGameDev • • 9d ago

Discussion Voxel Vendredi 27 Nov 2026

8 Upvotes

This is the place to show off and discuss your voxel game and tools. Shameless plugs, links to your game, progress updates, screenshots, videos, art, assets, promotion, tech, findings and recommendations etc. are all welcome.

  • Voxel Vendredi is a discussion thread starting every Friday - 'vendredi' in French - and running over the weekend. The thread is automatically posted by the mods every Friday at 00:00 GMT.
  • Previous Voxel Vendredis

r/VoxelGameDev • • 12d ago

Media Some fun with gpu-animated fire and screen-space lighting.

44 Upvotes

A while back I posted about some gpu animated fire, but it used triangles and placing barely a hundred fires killed my little gtx 970. This was understandable, since we went from using a couple of polygons to well over a hundred, per fire per frame. Now I moved to raymarched fire, and decided to take the approach of screen-space lighting for the light emitting blocks. Best decision in my life, and now we can literally fill the screen with any type of block, and the performance drop is barely measurable.

Still, has the drawbacks of screen-space stuff: When the light source is not on screen, all the emitted light also disappears. But at this point, is something I can live with. Added some temporal accumulation on all lights so the effect is evidently not as jarring as it should.


r/VoxelGameDev • • 13d ago

Media New water system for our voxel sandbox game

94 Upvotes

Correct me if I'm wrong since I'm getting a bit rusty, but I think I got quite a novel technique for rendering a lot of flowing 3D water. I'm raymarching precomputed SDFs of marching cubes for water cells that have 2 bit states. The total size of the SDFCubes is 16kb so they fit extremely well in local gpu cache.

Now for the features!

The water flows linearily - it is not physical, it's a cellular automata approach. Rigid bodies get buoyancy from it.
It can freeze under low temperature, but only in open spaces. In caves it remains fluid. You can melt it with explosions but also the ice melts with rain.

Most importantly, you can have see of that water with boats and underwater gameplay for a fraction of cost of physical fluid solver.


r/VoxelGameDev • • 12d ago

Meta It seems that people don't want me here, so I guess I'm going to leave

0 Upvotes

Lately, I've been butting heads with people about the community because I have some strong opinions about what direction it has taken. The community is not the community that I originally set out to create. It has strayed far from the original purpose.

It seems that some of you don't like me. I understand that, I deleted the OG Discord. And to be honest? I would absolutely do it again, because I've seen some of the awful things you have said about me amongst yourselves.

Listen, I'm not a perfect human. Far from it. I'm just a human. A regular, stupid, flawed human. In fact, I'm even MORE flawed than the average human because I have severe mental health issues.

No one has ever really liked me in life. I understand why. I'm kind of just a really unpleasant person. And I'm dramatic, too. I

God, I'm such a dumb piece of shit.

I tried to create /r/VoxelEngineDev to try to be what this subreddit was originally meant to be, but now that's impossible. Reddit's automated (cough LLM cough) system permanently banned the account that I managed that subreddit on completely randomly the other day. Turns out it was an error that they made. Whoops. That's not the first or even second time that has happened! So I deleted that account because I was permanently banned.

I regret to inform you (all three of you) that /r/VoxelEngineDev is no more.

Whoever said it (I don't exactly remember), you were right. No one was going to care about coming over to my new community.

I held off on killing myself because I let myself be convinced by some of you that maybe my life wasn't as bad as I thought it was, and that maybe it could get better. I even said "Maybe I'll regret not doing this now", and I was right. I absolutely regret that I'm not dead right now. The past two months have been absolutely miserable. And it's even gotten worse since then.

And I don't have anyone in my life to talk to about it besides my therapist, and that's only for an hour every two weeks, and I kinda get the impression that they don't like me and are just trying to waste the session by getting me to chitchat with them instead of actually trying to work through the problems that I have.

Why am I announcing my departure? Because I'm dramatic, I don't know. I guess I just have this weird thing where I created an entire fucking community and participated in it for almost half of my life and maybe it kinda became a weirdly big part of my life. I don't know, doesn't that sound a bit pathetic?

In some weird way, I had this hope that maybe I had done something good for the world of voxel games by creating and building up this community. Maybe I had even influenced the world enough to advance the popularity of voxel technology, and perhaps even some voxel games would not exist if I had not created the community. That's a cool idea to think about to me. To think that I could have done something so seemingly small that snowballed into something so big. Where are we at, around 20k people? That's not much, but it's five times the population of some of the towns I've lived in, and almost 60 times the population of one town I've lived in.

Anyway, it's probably just stupid. I really don't have any claim to take credit for this community. It's not like I was the one posting voxel engines. In fact, I've only posted about my engines a few times on here. This place gives me serious imposter syndrome (just kidding, I'm just a shit programmer).

But anyway, I guess it's been... An experience to say the least. The people that are currently occupying this community do not have the same vision for it as I do. Can you believe that I once wanted to host open source community projects on this subreddit? We almost did it once early in the beginning when there was a lot more cohesion and purpose in this community. I really miss those days.

Peace out.


r/VoxelGameDev • • 13d ago

Media Real Time Global Illumination via Photon-Mapping.

29 Upvotes

This is my "voxel" game engine, which is really a "boxel" game engine.
It has 60+ fps real time GI.
No TAA, full light solution from scratch, each frame, with fully dynamic scene and fully dynamic lights.
This was running on a modest RX7600 GPU.


r/VoxelGameDev • • 14d ago

Resource Voxel Devlog #16 - What are Voronoi Tessellations and how can you use them to generate biomes?

Thumbnail
youtu.be
9 Upvotes

r/VoxelGameDev • • 16d ago

Discussion Voxel Vendredi 20 Nov 2026

8 Upvotes

This is the place to show off and discuss your voxel game and tools. Shameless plugs, links to your game, progress updates, screenshots, videos, art, assets, promotion, tech, findings and recommendations etc. are all welcome.

  • Voxel Vendredi is a discussion thread starting every Friday - 'vendredi' in French - and running over the weekend. The thread is automatically posted by the mods every Friday at 00:00 GMT.
  • Previous Voxel Vendredis

r/VoxelGameDev • • 18d ago Bravo

Meta Mods need to start acting on the rise in AI-generated voxel engines/posts here

12 Upvotes

It's clear that almost all recent posts are engines that are developed by fully automated vibe-coded practices. They're all the same level of bland generic engine slop, and the developer can almost always provide no technical input because they didn't program anything.

They're beginning to spam the sub and provide no real content other than showcasing LLM output. Rule 5 already bans these, so can mods please start banning/removing these posts.


r/VoxelGameDev • • 19d ago

Media Early showcase of my GPU-based voxel project I'm working on in Unity

32 Upvotes

Finally getting around to sharing this here! I've been working on this Unity project for a while. The concept is still pretty barebones as I figure out what I want this to be, but one of my central focuses is taking Minecraft and adding or changing things based on what I find interesting (so far that's been rendering with URP, first-person viewmodel, geology & world generation, among other small things)

On a technical level, I've been using my experience in writing shaders to build this project with a GPU-accelerated approach. This takes the form of two main parts of my voxel system:

  • Terrain Generation: when the world generates, I dispatch a compute shader to compute the multiple levels of terrain height, plus additional features like stone layers and mixing between different stone & soil types. This is done in a couple of passes, all on the GPU, then the data is read back to the CPU as a list of integers, where it is converted into proper Voxel objects and stored in each chunk
  • Meshing: I've gone through a few different approaches for this, but lately I've settled on a C#/shader hybrid. Each chunk has a MonoBehavior object that stores its 3D array of voxels & handles any edits that get made to it. When meshing, the chunk turns those voxels into a structured buffer that is sent to the mesh's shader, effectively as a single vertex per voxel. The shader then has a geometry shader step, where that single voxel is turned into vertices for up to 6 potential faces based on its neighbors, and those newly-generated vertices then go on to get drawn in the fragment shader.

Again this is all still very early conceptually, this project is mostly just a learning exercise and an opportunity to play around and try new things! Would be happy to answer any questions about it or get any advice the community might have.


r/VoxelGameDev • • 19d ago

Question How do you generate trees/structures while only generating voxels per chunk?

11 Upvotes

Trying to wrap my head around this, but I figured this has to be a solved problem at this point?

So I understand how you can create a function for generating terrain with noise, and given the same seed, each new chunk will always use the same noise and will line up with existing chunks.

What I don't understand is, how can you dot the landscape with pre-defined structures like trees? You can still define placement of trees with the same kind of noise, but often you'll have cases where the root of a tree is at the edge of one chunk and has leaves in another. If those chunks generate separately, the chunk with the leaves won't know that a tree was added next to it, and won't add the leaf voxels. And the chunk with the root of the tree can't add those leaves without forcing that other chunk to load earlier than it's needed.

Anyone have insights about how this kind of thing is done in Minecraft or other projects?


r/VoxelGameDev • • 20d ago

Media Showing off the engine behind my heavy machinery game: lighting, fog, night sky and of course a crane

56 Upvotes

Showing off what my engine can do. Heavy Metal is a heavy machinery game, so naturally there's a crane 🏗️

The engine is made from scratch, in C++ with Vulkan. It uses a whole lot of compute shaders for all of the passes needed for the final engine, and when Hardware RT is enabled, the tracing is done by a custom voxel intersection shader. This voxel renderer has been my project for over a year, I just recently started working on making it a game around heavy machinery and engineering. I also made the physics, it's a fully custom C++ physics library, I had to make it because there is no existing open-source engine that correctly simulates editable joints under heavy loads accurately, mine does, and does it faster than the less accurate engines too (compared against Box3d & Chrono). This is what allows Heavy Metal to have real-time simulated physics, on machines that the player can make however he wants, no restrictions whatsoever, which was my main goal with this game. Of course for the concern of enjoyable game design, a whole lot of tasks are assisted. CAD systems to make voxel parts easily, A blueprint and coding system to control the machine behavior, and premade parts to speed up the process.

Dynamic sunlight, emissive lighting, golden-hour fog, and a night sky, all rendered in real time in my custom C++ Vulkan engine.

Playtests arriving soon.

Discord: https://discord.gg/qPuQcPRcA
itchio: https://julesdmdev.itch.io/heavy-metal

Music: "Echoes of Time v2" – Kevin MacLeod (incompetech.com), CC BY 4.0

Recorded in real time on a RTX 3060Ti with an i5 12600KF (HW & SW RT both supported for a large range of GPUs)


r/VoxelGameDev • • 20d ago

Resource I'm building a 3D voxel renderer for Cataclysm: DDA (fork, open source)

Thumbnail gallery
9 Upvotes

r/VoxelGameDev • • 24d ago

Media Voxel Engine update - Added Multiplayer

25 Upvotes

Hi guys!
An update on the voxel engine I am writing in odin.

  1. Just added support for multiplayer using ENet, it's all server authoratative so so the client just sends requests and the server checks if it is valid before allowing that. There is also client side prediction to prevent jittering.
  2. Added structure spawning, currently just a single shop you can go inside of. I am currently planning out a possible way of spawning villages. Possible with a set of handcrafted layouts that are loaded using json files ig is my current idea but let me know if you guys got better ideas!

r/VoxelGameDev • • 23d ago

Discussion Voxel Vendredi 13 Nov 2026

8 Upvotes

This is the place to show off and discuss your voxel game and tools. Shameless plugs, links to your game, progress updates, screenshots, videos, art, assets, promotion, tech, findings and recommendations etc. are all welcome.

  • Voxel Vendredi is a discussion thread starting every Friday - 'vendredi' in French - and running over the weekend. The thread is automatically posted by the mods every Friday at 00:00 GMT.
  • Previous Voxel Vendredis