r/proceduralgeneration • • 15h ago

Procedural pixel-art ocean

158 Upvotes

r/proceduralgeneration • • 6h ago

Preview screenshots of Brickadia's upcoming procedural terrain

Thumbnail
gallery
18 Upvotes

r/proceduralgeneration • • 17h ago

Procedural race circuits: the racing line, then the world grown around it

42 Upvotes

I have posted here my first work a few months ago on my procedural track generator.

I have reached the v2 of the generator, and thought I would post here again.
How it works, roughly:

- I measured 173 real circuits (corner radii and angles, straights, length, compactness) and the generator samples corners and straights from those distributions.

- The sequence is solved so the lap closes, then rejected or repaired if it fails. Up to 24 candidates per seed are scored against the statistics of their grade, and the best one wins.

- The pit lane is designed with the lap.

- The racing line is a minimum-curvature path, and the colours come from the speed profile computed on the circuit.

- The surroundings come last: run-off, barriers, service roads, grandstands, car parks, fields


r/proceduralgeneration • • 3h ago

Pixel outlines generated from a sampled curve get an extra pixel at every bend. The 3-pixel rule that removes them (61 to 43 px)

Post image
3 Upvotes

If you generate sprites by sampling a parametric curve and flooring each sample to a cell (blobs, slimes, rocks, planets), the outline comes out lumpy: thick on the curves, clean on the straight parts.

The cause: on a slope, a sample almost never crosses a cell exactly at its corner. The path steps one cell sideways, then one cell down, and both cells get set. That's an L: three pixels where two touching at a corner would do.

On the 32x32 slime in the picture (x = 15.5 - 12.6 cos t, y = 24.4 - 17.2 sin(t)^0.92, 2,001 samples over the top half), the raw path had 61 pixels, and 18 of them were L elbows. After the rule below: 43, one pixel wide all the way round.

The rule is the one pixel-art editors call "pixel-perfect": walk the path, and whenever the last three pixels a, b, c have a and c touching diagonally while b is a side neighbour of both, delete b.

def is_corner(a, b, c):  
 return abs(a[0]-c[0]) == 1 and abs(a[1]-c[1]) == 1 and ((b[0] == a[0] and b[1] == c[1]) or (b[1] == a[1] and b[0] == c[0]))

def pixel_perfect(pts):  
 out = []  
 for p in pts:  
 if out and out[-1] == p: continue  
 out.append(p)  
 if len(out) \>= 3 and is_corner(out[-3], out[-2], p): del out[-2]  
 return out  

It only ever deletes the elbow of an L, so straight runs and diagonal steps survive, and it costs O(1) per point.

One more check for generated curves: the run lengths. Along a curve they should only shrink or only grow (4, 3, 2, 2, 1, 1). If they jump around (4, 2, 1, 3, 1, 2), the curve reads as dented even at one pixel wide (bottom of the picture).

(I make pixel-art tools at Gridwright; our browser pixel editor runs this rule on every pencil stroke. Linked below.)

The browser pixel editor that applies this rule as you draw: https://gridwright.dev/tools/pixel-art-editor/?ref=reddit-proceduralgeneration


r/proceduralgeneration • • 12h ago

Spherical polyhedron with prisms

9 Upvotes

r/proceduralgeneration • • 14h ago

Asteroid GJ 445–ISO 019

Thumbnail gallery
5 Upvotes

r/proceduralgeneration • • 11h ago

A generated mountain for a base-defence game: the same seed gives the same world in every browser

Post image
0 Upvotes

Each run of my browser game Rock & Hold is a new mountain: a 60 × 60 grid of rock with caverns, passages between them and mineral deposits. A few things I had to solve, in case they help someone:

- The same seed must give the same world everywhere. JavaScript engines round Math.sin, cos and exp differently, so the game uses its own versions of them and never sorts with a random comparator.

- Nobody may start trapped. Generation checks that no open cell is closed in by deposits and bedrock alone; a deposit on such an edge turns back into rock, so the miner can always walk or dig out.

- New content must not move old worlds. Indestructible "Old walls" were added later: they are rolled last, from their own stream of the seed, so a seed's caverns and deposits stay where they were. A wall is kept only if every floor cell is still as short a dig from the start as before.

- Hidden things leave a hint. Rock near a hidden cavern's deposit shows flecks of that deposit's colour, on about one cell in four, so a few catch your eye.

The picture is a generated world open in the game's map editor. You can type any seed there and look at its world: https://rockandhold.com/?ref=reddit-proceduralgeneration

How do you keep old seeds stable when you add a new generation step?

Made with AI: I design the game and tune it by playing it; the code, art and sound are written with AI tools.


r/proceduralgeneration • • 1d ago

Free Opensource Tool to generate plants and funghi [opensource]

33 Upvotes

r/proceduralgeneration • • 2d ago

I generated a 40 km alpine massif for my ski resort game, down to what every 10 m of ground is made of

Thumbnail
gallery
97 Upvotes

Solo dev here, making a ski resort management game in Unreal 5. I just replaced my old hand-sculpted 6 km map with a full massif: 40.8 x 40.8 km, one height point every 2.5 m, from 616 m to 4,786 m.

The first picture is the whole map from above. The second is the part I'm most proud of: a ground map. Every 10 m cell (16.6 million of them) gets:

- what it's made of: granite or limestone bedrock, scree under the cliffs, moraine on the gentle slopes of the big valleys, river gravel along the streams, bare rock where it's too steep, ice up high

- how deep its soil is

- how wet it gets, from the water flowing down the terrain (about 1,300 km of streams come out of it)

- how acidic it is

The forest grows from that. Each of the 11 tree species has its own altitude range, light, water and soil needs, so larch and stone pine end up near the treeline, Scots pine on the dry sunny slopes, beech and fir in the damp shade.

The last picture is the same massif in game, in February.

The whole ground map takes 35 seconds to compute. Happy to answer questions about how any of it works.


r/proceduralgeneration • • 2d ago

glass, curves and lenses.

Thumbnail
gallery
13 Upvotes

Real-time renders from my own Vulkan ray tracer: glass rings, curves and lenses where light bends, refracts and splits into color.


r/proceduralgeneration • • 3d ago Mindblown

I created a highly-detailed procedural plant generator in threejs

399 Upvotes

r/proceduralgeneration • • 1d ago

Making realistic moons

Thumbnail
youtu.be
0 Upvotes

r/proceduralgeneration • • 2d ago

cubism girl

Post image
19 Upvotes

r/proceduralgeneration • • 2d ago

GeoTime history: day 1 - day 18

Thumbnail
gallery
3 Upvotes

On August 20, 2026 I pick up a RXT 5070 Ti to port over my CPU bound iteration on GeoTime. I satartex the project some time around June or July as a CPU bound solver

on September 8-9, 2026 I got the first out put of the system.

It immediately became obvious some was wrong as picked of metamorphic rock where not eroding away


r/proceduralgeneration • • 1d ago

Genetic algorithm recreates a photo with discs, polygons, voronoi, mosaic, strokes and glyphs

Thumbnail
gallery
0 Upvotes

Genome: one row per element (position, size, colour, alpha), drawn in row order.
Fitness: pixel MSE between the render and the target.
Mutations move or reshape an element, change colour or alpha, add or remove elements, or change the overlap order.
Crossover swaps the tails of two element lists. Elements shrink from coarse to fine over the run.

Gallery: https://carmelolg.github.io/GAPoly/
Code: https://github.com/carmelolg/GAPoly


r/proceduralgeneration • • 2d ago

Procedurally generated highway, bike sounds, animations. Unity WIP

47 Upvotes

The highway is procedurally generated and so are the bike sounds. Different bikes have different engines. Loved creating the side and rear view mirrors and you can see the bikes approaching to try and swerve around the cars. The AI for the bikes is quite simple as you can probably see, they find the best route and stick to that unless the traffic intersects their spline path they've calculated. Headphones recommended to hear the doppler effect and panning of the bikes whizzing past. Riders fall at 1:05, had to swerve around. I also have not animated the hands, they react to the speed of the car. The cars are also randomly placed on the highway and have different speeds and take decisions to change lanes or take the exit.


r/proceduralgeneration • • 1d ago

I built a lightweight, 100% Blueprint infinite world & biome generator using Perlin noise and Instanced Static Meshes.

Thumbnail
youtube.com
0 Upvotes

Hey everyone! I wanted to share a procedural chunk generation framework I've been working on under Stellar Cloud Studios.

My goal was to create a clean, modular, and deterministic world-building system without relying on heavy C++ setups or external plugins.

How it works under the hood:

  • Coordinate & Memory Management (BP_WorldManager): Converts continuous 3D player locations into discrete 2D grid coordinates (IntPoint), checks against an active TSet memory cache on a 0.25s timer, and spawns missing chunks within a configurable Render Distance.
  • Deterministic Scattering (BP_Chunk): Uses localized Random Streams seeded with world coordinates so biomes and foliage generate identically whenever a player revisits an area.
  • Noise & Normalization: Evaluates continuous 1D Perlin Noise layers for biome transitions and vegetation density thresholds, normalizing raw probability weights so custom asset pools always scale cleanly to 1.0.
  • Performance: Everything spawns via Instanced Static Mesh (ISM) batching to keep draw calls low.

It’s fully data-driven using Primary Data Assets (PDA_ChunkAssets), so you can easily swap out the placeholder meshes and ground materials for your own custom art assets.

If anyone wants to check it out or use it for prototyping/production, it is live on Fab

https://www.fab.com/listings/975c03e0-a803-4b00-9ad8-f45dfb91ae0c

Happy to answer any questions about the Blueprint math or setup!


r/proceduralgeneration • • 1d ago

5-plane parallax Hokusai woodblock scene + zero-sample ocean audio in vanilla 2D Canvas & Web Audio (0 PNGs, 0 MP3s)

0 Upvotes

Everything in this clip - both the Hokusai woodblock diorama and the ocean/garden audio underneath - is generated live in the browser with vanilla 2D Canvas and the Web Audio API (0 image files, 0 audio samples).

I recorded the 20-second debug mode I built for this scene so you can see how the 5 parallax plates stack up at 60fps without tanking CPU:

  1. Plate 0: Procedural washi paper grain, gradient sky wash, and Mount Fuji cached to an offscreen canvas.
  2. Plate 1: Halftone stipple distant swell + wooden skiff.
  3. Plate 2: Cubic Bezier wave barrel + 4 radial foam-claw clusters (the red/blue wireframe shows the Bezier control polygon and claw radii).
  4. Plates 3 & 4: Foreground wave mound, sea-spray particles, and swaying sakura branches with falling petals, followed by swapping palettes across 4 colorways.

The audio is procedural too (built because I got tired of hearing the 60-90 second crossfade seams in looped ambient MP3s). The surf, receding pebble wash, bamboo wind chimes, and shishi-odoshi water fountain all run off filtered pink/brown noise and sine frequencies.

Live link if you want to mess around with it in the browser (no login or install):

https://soundscapestudio.adveniresoftware.com/?world=kanagawa-wave&var=washi-sakura

If you're on desktop and want to trigger the breakdowns yourself inside that scene, hold Shift+D for 10 seconds for this visual plate view, or hold Shift+A for 10 seconds to solo the audio and watch the 4-stage sound build on a spectrum analyzer. Happy to answer any questions on how it's put together.


r/proceduralgeneration • • 2d ago

Seeded dungeon and overworld generator that opens straight in Godot or Tiled, with collision and spawn points set

Post image
0 Upvotes

The problem I kept hitting: laying out every dungeon room by hand.

So I made a generator for dungeons, caves and overworlds as pixel-art tile maps. The same seed always gives the same map, and the export opens in Godot or Tiled with the layers split (floor, water, walls, decor), collision set, and spawn points marked for start, exit, boss, traps and treasure.

There's a demo on the page that runs in the browser with no sign-up. The full version is part of the Gridwright app (paid). Link below.

Demo (runs in the browser, no account): https://gridwright.dev/tools/mapgen/?ref=reddit-procgen


r/proceduralgeneration • • 2d ago

How I generate underground maps for my upcoming mining roguelike

9 Upvotes

r/proceduralgeneration • • 2d ago

I added procedural space backgrounds and planets to my Godot game

5 Upvotes

I've been working on procedural space backgrounds for my pixel art game, StarFaction. I wanted each battle to feel a little different instead of always having the same static background.

The nebulas are generated with shaders using layered noise and domain warping, while the stars are generated separately. I also added parallax scrolling and subtle animations to give the backgrounds more depth. The colors vary depending on the faction and sector.

For the planets, I used Deep-Fold's Pixel Planet Generator as a starting point and adapted it for my game, adding different planet types, color palettes, and seed-based variations.

I'm still working on balancing the visuals so the backgrounds look interesting without distracting from the battles. What do you think? Are the nebulas or stars too distracting?

You can also check out StarFaction on Steam if you're interested:

https://store.steampowered.com/app/5446020/


r/proceduralgeneration • • 3d ago

Terrain, water and atmosphere done for my procedural planet generator

228 Upvotes

Planet biomes and terrain types are distributed using Wave Function Collapse on a irregular grid covering the planet sphere.


r/proceduralgeneration • • 3d ago

I pointed my OpenStreetMap to Minecraft generator at a fictional map: all of GTA 6's Leonida, 12k x 18k blocks

Thumbnail
gallery
121 Upvotes

Arnis is an open source project of mine that normally takes OpenStreetMap and elevation data and generates a Minecraft world from it. I wanted to see what happens with a place that doesn't exist, so I tried making a Minecraft fan made map of Leonida from GTA 6.

The tricky part is that a fictional map has none of the data Arnis usually relies on (such as OpenStreetMap). So I manually created an OSM file of the map data and elevation data and fed it into Arnis. Lots of props to mapofleonida for reference.

The result is 12,416 x 18,176 blocks and a 1.7 GB file. Might not be super accurate, but I thought it was cool to share!

Free download: https://louisss.itch.io/gta-6-map-in-minecraft-all-of-leonida


r/proceduralgeneration • • 3d ago

Procedural tectonic planets

28 Upvotes

Just wanted to share the project I’ve been working on because I finally got it to work. Been following a paper called Procedural Tectonic Planets to make planets with semi-realistic distribution of oceans and continents. It has oceanic crust generation at diverging boundaries, uplift from subduction plates, continental collisions, and plate rifting when the plates get too big.

Still a WIP, currently tweaking a bunch of the settings to get it working the way I want, but it’s looking good. I’m enforcing a constant ocean volume so the continents tend to sink into the ocean as new, higher oceanic crust is formed and the sea level rises, but that’s one of the settings I’ll be tweaking.

My first attempt at doing this was three years ago but I dropped it because I hit some roadblocks that I didn’t know how to get past, so I’m glad that this new attempt is going much better.

Oh yeah, and I’m doing this in the Blender Python API because I enjoy slamming my head against a brick wall for days at a time.