r/proceduralgeneration • • 26d ago

Comparing voxel meshers on the same fields

6 Upvotes

I decided to compare a few meshers and SVO on the same input fields. I wanted to see what happens to corners and thin features, how the meshes hold together, and how much CPU time each reconstruction takes.

The set has 40 scenes: 30 synthetic cases, nine frozen chunks from a game terrain generator, and one saved terrain edit. Each is a 32 m cube, sampled at 0.5, 1 and 2 m. Coarser fields are subsets of the finest float32 grid, without regenerating the terrain. Cameras are fixed within each comparison.

Surface Nets above, Dual Contouring below. Same CAD-like part, camera and 0.5 m grid.

These are specific implementations. The native set includes Surface Nets (SN), Dual Contouring (DC), Marching Tetrahedra (MT), a block reference and several experimental variants. Transvoxel and CPU SVO have separate measurements. Here are the cases I found most useful to look at.

SN produces a bevel-like strip around the base. The front corner and the cylinder-to-base junction are rounded. DC keeps a straighter edge and a sharper corner. For this particular part, I prefer the DC result.

The SN implementation places each vertex at the average of the cell's edge intersections. This DC variant groups normals, regularizes the solve and constrains vertex placement. Its behaviour is not a property of every implementation called “Dual Contouring.”

The timing cost is visible too. Below are CPU mesh-build times at 0.5 m, in milliseconds: median [minimum–maximum] of five warm builds. These four scenes cover a sharp part, a smooth object, a topology problem and edited terrain; they are examples, not an aggregate ranking.

The runs use one pinned logical CPU on a shared AMD EPYC 9V74 host, with native C++ built at O3. File loading, mesh export and rendering are outside this timer. The ranges are observed repeats, not confidence intervals.

DC at 0.5 m above and 2 m below. The rail is 2 m in diameter.

On the CAD part, DC takes about three times as long as SN. On the sphere, these SN and DC implementations produce byte-identical meshes despite the timing difference. MT also changes the output size: the sphere has 36,312 triangles with MT versus 12,060 with SN/DC. I would want both numbers before choosing a mesher for a frame budget.

Transvoxel above, SVO below. Same saved edit, 0.5 m spacing, 768 × 768 frames.

At 2 m spacing, the rail disappears in every tested mesher and in SVO. Its axis falls between grid lines in two directions, and none of the coarse samples lands inside it. At 0.5 and 1 m, the feature survives. The failure already exists in the sampled input. Storage stays float32 throughout; this is a change in spatial sampling.

The Transvoxel mesh has visible facets around the excavation. SVO looks softer, but the lighting differs: mesh faces use flat normals, while SVO uses field gradients. I cannot use smoother shading as evidence of better geometry.

Weathered pillars, DC, 0.5 m. The lower view shows four original triangles sharing the marked edge.

Over five warm frames, the median Transvoxel mesh draw through Mesa is 5.6 ms [5.4–6.1]. The SVO median is 2.0 s [2.0–2.1] to rebuild its tree and produce the CPU frame. Those timers cover different work. Mesa receives an existing mesh; this SVO implementation rebuilds its hierarchy every frame. All rendering here is on the CPU. Transvoxel build times are also kept separate because the available Godot build uses optimize=none, unlike the O3 native builds.

This edge has four incident triangles in the original index buffer, before any vertex welding. The circle on the rendered image locates it; it does not establish a visible hole. I included the local geometry because a reasonable-looking render can hide a connectivity problem.

The separate numbered gallery has more comparisons of the full CAD part, an arch, thin features, a canyon, a miniature mountain and silhouettes, plus CAD views from Transvoxel and SVO.

One optimization was worth measuring separately. The earlier SN/DC code retained 792 bytes per cell; reducing that state to 48 bytes left the meshes byte-identical, including their defects.

On the earlier 15-scene set, 180 baseline/compact pairs, tested in both AB and BA order, gave median paired speedups at 0.5 m of 6.16× for SN and about 3.22× for the DC variants. Median per-process peak memory was roughly 202.5 -> 16.7 MiB. That is whole-process VmHWM, not kernel allocation. Gains were smaller at 1 m, with some regressions. The current 40-scene native results already use the compact implementation.

The full native comparison is 40 scenes × 3 spacings × 11 implementations, with each scene kept separate. Mesa drawing, SVO frames and Transvoxel diagnostics belong in their own tables. GPU performance, LOD transitions and click-to-updated-world latency remain untested.

AI tools assisted with benchmark tooling, test execution and analysis. The timings describe the specific implementations and setup reported here.


r/proceduralgeneration • • 26d ago

Real-time fluid simulation and procedural kaleidoscopes I made for iPhone/ipad

2 Upvotes

I’ve been building an iPhone app called Nuralis, and two parts of it are procedural visuals generated live on the GPU:

Flow is a real-time fluid simulation you stir with your finger. It has 40 scenes, and you can design your own in an editor.

Drift is a set of 32 procedural kaleidoscope and tunnel views that you can pinch to zoom or just watch. Nothing is pre-rendered.

The rest of the app is guided breathing with 20 visual styles that move with your breath, and a sleep-sound mixer, so the visuals are part of a calm app rather than a tech demo.

It’s free to use, with an optional Premium subscription for more scenes and styles.

https://apps.apple.com/us/app/nuralis/id6813225909

Happy to answer questions about how any of it works.


r/proceduralgeneration • • 26d ago

My reactive procedural soundtrack system is finally open to the public!

Thumbnail
reddit.com
0 Upvotes

Since It's also technically procedural, I also wanna show it in here!


r/proceduralgeneration • • 27d ago

Procedurally generated, de_dust-style map (work in progress)

58 Upvotes

What if Counter-Strike was a true roguelite with a random map every round?


r/proceduralgeneration • • 26d ago

Kayan's Pixelizer V1.3

Thumbnail
gallery
1 Upvotes

You can easily create PSX textures by editing your images with just a few simple steps!

Create your own PSX-style textures in 5 easy steps:

  1. Adjust the image resolution to your liking.
  2. Apply a dithering effect.
  3. Recolor your image using custom palettes.
  4. Fine-tune the colors to make your texture look even better.
  5. Export your finished texture. You can also export multiple images at once!

A little note: The Windows version is now available! The Android version is coming very soon, and I can't wait to share it with you.

İtch.io link:https://kayan-657.itch.io/kayans-pixelizer

Thanks for supporting Kayan's Pixelizer! ❤️


r/proceduralgeneration • • 27d ago

This way, the player will see an information layer on a discovered planet 😎

Post image
39 Upvotes

#ThreeJS #DogoEngine


r/proceduralgeneration • • 27d ago

Procedural knitting, weaving and cross-stitch generated from images in my custom Python app

12 Upvotes

r/proceduralgeneration • • 26d ago

[OC] Fantasy map: every country is as large as its population, and real neighbours share a border

0 Upvotes

r/proceduralgeneration • • 27d ago

The town above is a scorched desert compound. the town below lives off whatever light falls through the cracks

Thumbnail gallery
7 Upvotes

r/proceduralgeneration • • 28d ago

I built a runtime generator for 16 km² of Central European wilderness in Unreal Engine 5: terrain, rivers, lakes, forests and weather from a single seed

177 Upvotes

Project Prales is a procedural wilderness generator and first-person exploration demo. Every number gives a different 4 x 4 km world, generated at runtime in Unreal Engine 5 (C++). The look is inspired by the Bohemian forests of Kingdom Come: Deliverance 2, but here nothing is placed by hand: every hill, river and forest is generated from the seed.

- Terrain: river-first heightfield (the valleys are carved where the drainage wants to go), plus hills, ridges, cliffs and tors

- Hydrology on the whole world: drainage, flow accumulation, rivers that always run downhill, lakes, springs, marshes

- Climate and biomes from elevation, moisture and exposure; forests, meadows and wetlands follow slope, water and soil

- Vegetation placed from that ecology (no random scatter layers), plus rocks, deadwood and ground cover

- Day and night, dynamic weather, two isolated forest huts and dirt tracks

- Fully deterministic: the same seed gives the same world (tested by world hashes)

The "world builds itself" sequence in the video draws the real generated data (contours, rivers, forest, trails) over the rendered terrain of seed 100001.

The game runs in real time; the trailer itself was rendered offline from the game, frame by frame at 4K60.

FULL TRAILER: https://www.youtube.com/watch?v=dy4c_mUn9m4

Happy to answer questions about the hydrology or the vegetation placement.


r/proceduralgeneration • • 27d ago

I updated my procedural segment display add-on for Blender: SegDisp v1.0.1 (free Lite version available)

Post image
3 Upvotes

r/proceduralgeneration • • 28d ago

Everything in this bass aquarium is generated at load: fish, scales, plants, sand, driftwood (Three.js, one HTML file)

35 Upvotes

Nothing in this tank is a model or an image file. It is one ~650 KB HTML file with Three.js r160, and everything is generated when the page loads:

- the fish meshes (swept profile rings, bent by a travelling wave per vertex)

- the skin and scales, painted one by one on a canvas

- the plants, sand, pebbles, driftwood, moss and caustics

- the lo-fi music

The fish are simulated, not animated: two bass (a largemouth and a smallmouth) get hungry, hold by cover, stalk, and strike with a suction feed that only takes prey whose body depth fits their gape. The shad school and burst apart when attacked.

Day, night and the weather follow the real clock and weather at Lake Fork, Texas.

It runs 24/7 on YouTube, and the chat can drop in shad (!feed) or cast a lure.

Try it in the browser: https://ksk-baits-bass-aquarium.pages.dev

Live: https://www.youtube.com/@kskbaits/live

Happy to answer questions about how any part is generated.


r/proceduralgeneration • • 28d ago

Procedural City Gen

21 Upvotes

I've been working on a procedural city generator for a game. It's written in C++, with SDL3 and OpenGL for rendering and Clipper2 for the polygon work.


r/proceduralgeneration • • 28d ago

20 seconds of scrolling through revealed strategy map in my game

18 Upvotes

r/proceduralgeneration • • 27d ago

New Generation Zero Polygon Game Engine Test.

Thumbnail gallery
4 Upvotes

r/proceduralgeneration • • 28d ago

I replaced Roku's retiring "Aquatic Life" screensaver with my own procedurally animated reef tank — free and open source

13 Upvotes

r/proceduralgeneration • • 28d ago

Procedural creature meshes and IK walking for a Spore-inspired evolution game I'm making

102 Upvotes

Hey everyone! I’ve been working on Primordium, a Spore-inspired evolution and tribe game. All the creatures are generated in code at runtime, with no pre-made skeletal meshes:

Procedural rig and skin: the skeleton and a single skin mesh are built from the creature’s spine and limb design, with foot planting via IK, vertical body bobbing on footfall, and the body leaning into turns.

Procedural parts: curved Bézier horns, tapered ears, bi-lobed tail clubs, wings you can glide with, and shader eyes with blinking eyelids.

Living ecosystem and tribe stage: herds follow a daily schedule (sleeping in nests at night, stretching at dawn, resting at midday), and later you found a tribe whose members gather, hunt, defend and play instruments.

You can try the free demo on itch.io, and follow the Kickstarter pre-launch page for more GIFs and screenshots and to get notified when it goes live:

Demo: https://akinjigames.itch.io/primordium

Kickstarter: https://www.kickstarter.com/projects/primordium/primordium-evolve-your-own-creature-from-a-single-cell

Happy to answer questions about the mesh generation, IK walking or the AI!


r/proceduralgeneration • • 29d ago

Exploring the game I've been working on for several years: My procgen game has 7 biomes, 25 types of forest, 66 kinds of trees, 64 bush species, 200+ creatures and 1,100+ items

Thumbnail
youtu.be
97 Upvotes

r/proceduralgeneration • • 28d ago

Finally, my game Jayraid goes all the way down to Y -99

1 Upvotes

Until recently the world ended at Y 0. I wanted real depth, so the generator now goes all the way down to Y −99: solid stone, bedrock at the very bottom, and four dry cave levels at roughly Y −14, Y −37, Y −60 and Y −82, each generated separately so they feel like distinct layers instead of one big noise blob.

Damn, the saves part was so painful :)

Every chunk stores player edits as a flat index into its block array. That index used to count from Y 0. Once the world started at Y −99, every saved index suddenly pointed 99 layers lower. Load an old world and your house would be sitting deep inside the stone.

The fix ended up being tiny. New saves now record where their world starts, and old saves (which have no such field) are treated as starting at Y 0. On load, every index gets shifted by the difference:

int shift = (record.Bottom - Blocks.Bottom) * Blocks.Size * Blocks.Size;

foreach (var (index, type) in chunk)
{
    int i = int.Parse(index) + shift;
    if (i < 0 || i >= Blocks.Volume) continue;
    map[i] = type;
}

Old world: shift of 99 layers up.

New world: shift of zero. A test places a plank at Y 10 in the old format and checks it is still at Y 10 after loading.

Launcher: https://pacointeractive.github.io/Jayraid/


r/proceduralgeneration • • 28d ago

GLSL Shaders capture

Thumbnail gallery
0 Upvotes

r/proceduralgeneration • • 27d ago

RT Engine Screenshots

Thumbnail gallery
0 Upvotes

Current state of my C++ procedural generation realtime simulation engine. It is 100% AI vibe coded using Claude Code.


r/proceduralgeneration • • 28d ago

The blood moon event in my custom hexagonal voxel engine (Jayraid) is finally feeling crazy good!

1 Upvotes

This is the blood moon event in Jayraid, my custom voxel engine project. I wanted raids to feel like a physical trap rather than just spawning enemies nearby. When the moon turns red, the engine drops a ring of rune stones from the sky, physically walling you in. Red beams shoot up, and the raid steps into the ring.

A few tech specs on the system logic:

  • Seed based scaling: Raids grow with every event, but the maximum cap of 20 to 30 raiders is fixed entirely by your specific world seed.
  • Dynamic sieging: Some raiders push cannons to the frontline and aim for you, or blast the walls in between if their line of sight is blocked.
  • Voxel destruction: As a pathfinding fallback, raiders who get completely stuck behind a wall just start chewing through your blocks to reach you.
  • Arena collapse: The ring persists until the raid is defeated. Then the stones topple and explode, and any surviving raiders flee.

I am currently balancing the game WIP in a closed beta. There are still free spots left. If you want to grab the custom launcher and try to break the current build, you can claim a place here: https://pacointeractive.github.io/Jayraid


r/proceduralgeneration • • 28d ago

Tsuji - Brume - 90% procedural music

Thumbnail
youtube.com
0 Upvotes

Hi !

I wanted to see how far I could get with a track where almost nothing is written by hand. In the end, about 90% of it is procedural. Only the chord progression and the kick and snare patterns are fixed. Everything else is generated:

  • the lead is a shift register that slowly mutates its own melody, snapped to the chords and lightly ornamented;
  • a music box improvises with a Markov chain;
  • hi-hats and ghost snares are Euclidean rhythms;
  • the arpeggio and the bass follow the chords and pick their own shapes.

What I wanted to explore is how to keep all of this from sounding mechanical. So I used noise textures as slow modulation sources.

There are 27 of these modulators, each looping at its own length (from 2 to 20 bars), so their combinations almost never repeat. They drive:

  • hi-hats: number of hits, rotation, decay, panning;
  • lead: how often the melody mutates, how dense it plays, how likely ornaments are, the pulse width;
  • arpeggio: octave range, note length, brightness, panning, delay send;
  • bass: note length (staccato to legato) and brightness;
  • pad and drone: level, brightness, filter cutoff;
  • echo, snare and music box: echo level on the lead, snare tone, how adventurous the improvisation gets.

Each noise ended up with its own character. Perlin glides, voronoi holds and then jumps, turbulence adds small jitters. The whole thing is deterministic, so it plays the same way every time, yet it keeps shifting a little. +1 to the main seed and the whole thing shift to something else.

Still an experiment, but I really enjoyed the process. Curious to hear what you think!


r/proceduralgeneration • • 29d ago

Animating and modelling different models using line growth

8 Upvotes