r/proceduralgeneration • u/martec528 • 5h ago
r/proceduralgeneration • u/dev-rygy • 9h ago
My procedural generator now generates rooms using parsing
The Labyrinth, a procedural generator that I've been working on for a bit over 2 years, pre-places Blueprints, 1x1 cells that occupy space and mark where rooms will go. Blueprint patterns are defined by the developer and use multiple techniques such as Delaunay Triangulation, pathfinding, and Drunkard's Walk.
A second pass, I call ParseGen, fits room shapes onto blueprint patterns using a parser modeled after recursive descent, an algorithm common in compilers. Essentially the algorithm can generate any room shape desired with little cost to efficiency.
Blog: https://ryancarpenterpf.dev/blog/parse-gen-blog/
I plan to release this tool as an asset on Unity's Asset Store in Q1 of 2027, along with a free version on GitHub. The Asset Store version will get ongoing updates and support.
r/proceduralgeneration • u/Silent_Answer7889 • 15h ago
I got frustrated gluing separate Unity terrain, ocean, and cloud systems together, so I spent 6 months building a unified planet renderer
r/proceduralgeneration • u/Raven-Rabbit • 8h ago
Terrains from real data: 2m lidar terrain with the roads cut and filled into it.
The ground is USGS 3DEP elevation, about 2 m per vertex, and the roads are straight from OpenStreetMap. The procedural work is fitting the two together: each road carries its own smoothed height profile, the terrain under it gets cut and filled to match, and at junctions I blend the flat zones, nearest road winning when the heights are far apart and averaging when they're close. Bridges were the fun problem, since lidar keeps the embankment as "ground", so I read the terrain beside the road and call it a deck when the ground falls away on both sides.
Unreal plugin, Terrain Sampler, US only so far. Link's in the comments.
r/proceduralgeneration • u/DigitCell • 12m ago
Organic 3D growth experiments (procedural generation)
r/proceduralgeneration • u/GridwrightStudio • 2h ago
One parametric fish model drawn at 16, 32 and 48 px: what each size buys (89, 325 and 688 pixels)
All 130 fish in our fishing pack come from one side-view fish model. Nothing in it is stored as pixels, so the same code draws any grid size. The picture is a perch at 16, 32 and 48 px, each scaled to the same 96 px tile (6x, 3x and 2x, which is what a 1080p screen does to 320x180, 640x360 and 960x540 games).
How the model works:
- A fish lives in body coordinates. u runs along the body from the tail base (0) to the snout (1), the tail fin is u < 0, and v is the height above the midline, both measured in body lengths.
- Every mask (body, fins, patterns, eye) is a function of (u, v). Rendering at n px is just mapping each pixel to (u, v), so the grid size is a free parameter.
- The body's height along u is one curve with a few numbers per species: where it's deepest, how thin the tail stalk gets, how fast it rises and the nose shape. A species is a small parameter dict on top of that: tail type, fin positions and shapes, eye size, patterns.
- A swim frame only changes the pixel to (u, v) mapping: the rear of the body waves a little and the tail fin foreshortens as it sweeps. Facing left mirrors the mapping, not the picture, so the light stays at the top left.
- Pixels come from supersampled shapes, dome shading on 5-tone ramps and one outline.
What the extra resolution buys, counted on the perch:
- 16 px: 89 pixels, 21 colours. A striped shape with a tail and no room for an eye.
- 32 px: 325 pixels, 30 colours. The eye, the stripes and the orange fins all read.
- 48 px: 688 pixels, 34 colours. The spines of the back fin get pixels of their own.
That's 3.7x and then 7.7x the pixels of the 16 px fish, close to the 4x and 9x of the tile areas. The second picture is five more species from the same model at the three sizes.
(I make pixel-art tools and packs at Gridwright. The calculator I use to pair a tile size with a game resolution is linked below.)
The calculator that pairs a tile size with a game resolution and shows the scale and black bars from 720p to 4K: https://gridwright.dev/tools/pixel-art-size-calculator/?ref=reddit-proceduralgeneration
r/proceduralgeneration • u/CharlesSultan • 17h ago
Procedurally Generating a Coherent World for a Civ-like Game
Hello, everyone!
I’ve been working for two weeks on procedurally generating a coherent world for the next game I’m developing with my girlfriend. And today I’d like to share my progress with you and, if possible, get some advice from you on how to proceed!

My basic idea is to generate textures using Unreal’s materials, specifically the vector Perlin noise function. This allows me to achieve a result that’s both truly random and quite organic:

Another advantage of this method is that it allows you to generate a spherical world, enabling players to “travel around the world.” To do this, simply pass the textures coordinates of the spherical as input to the vector Perlin noise function:


The final advantage of this method is that it allows you to generate the same world for the same position if you add the object's position to the result. This makes it possible to simulate "seed" in the random generation process.
The idea is then to generate several textures: one for elevation, one for humidity, and one for temperature. And to process each pixel using a set of rules to create the appropriate, corresponding tile.
For the height, I want to generate deep water, shallow water, plains, valleys, and mountains. To do this, I modify my material to set up height tiers corresponding to the various desired heights:

For the humidity texture, I use the same approach, but this time I create only two layers: one for the grasslands and one for the forests:

As for temperature, I generate three levels: one for ice, one for desert, and one for temperate zones. The difference is that I use the distance from the equator to influence the result:


Now that the three textures have been generated, all that's left is to generate the corresponding tile for each pixel based on a set of rules:

I'm pretty happy with the result, but I still have a lot of work to do:
- Generate strategic resources in logical locations (for example, oil can be found in the desert, in ice, and in the ocean).
- Generate rivers. If you have any ideas, I’d love to hear them! I thought about using local minima from my heightmap, but I’m really not sure if that’s a good idea.
- Generate viable and balanced starting positions: make sure players aren’t surrounded by mountains, aren’t on an island that’s too narrow, have a reasonable number of strategic resources, etc. If any of you have already tackled this issue, that would be great because it doesn’t seem straightforward to me.

Thanks for reading! Please don't hesitate if you have any questions or would like more details!
r/proceduralgeneration • u/Imaginary_Article33 • 12h ago
Entirely procedural ARPG end to end
Hey my name is Gary a software engineer for 17 years and a music composer, when i first got into programming it was because i wanted to make games, but ive never had the time to do so.
Until 4 years ago, when me and my ex broke post covid so i had a lot of free time and didn't know what to do with it so i started working on a game, first it was unity then godot, then unreal engine but not one of those engines was suitable for me cause they we're too visual and the kinda of game i wanted to make required a lot of performance and i cant draw so that was my first problem and to be honest drawing its pretty tedious and boring job for me so kudos to the artists out there that draw shit those are champions to me but i didnt have budget to pay anyone of them so back then i read the word "procedural generation" somewhere in reddit so i decided to deep dive to understand what the fuck is this, to my surprise it was exactly what i was looking for i ditched visual engines and as a hardcore software monkey i decided to code from scratch a really tedious job but not boring to me since this is what i was good at and it seems to be working better than i expected for me.
So what was the process, pretty simple i started hacking together code to create how shit work once i got deep understanding of proc gen i decided its time to venture deep into making a game i grew up on diablo 2, fate and path of exile and i loved them but after a while every game turned into same repetitive grind, same monsters same areas, and it was becoming boring for me i didnt see a reason to keep grinding wasting my time on game that will reset in 3 months with slight refresh of things and again the same content and same grind to greatness it felt like those games didnt have goal but where made to suck out as much time as they can from you with dimnishing returns of fun and dopamine, same story, same content every run.
I wanted to strip that part away and build a game where nothing is predefined and anything can happen. Basically limitless content I could play over and over myself while still enjoying the fun of the game.
So thats how i came up with the idea where the whole game and everything is generated by the machine on the go, but not the shitty LLM AI type(the plague of 21 first century which kills all the creativity and everything looks and sound the same)
Single player no network or shit you can play offline on the flight to miami and still enjoy, permadeath it means its over once you die you have to start a new story and you can never play the same story again, dark fantasy cause im very fond of Dark souls this game strips away the grind and delivers briliant worlds and graphics and really immerse in the game while still being an ARPG and i didn't want to create a single asset for the game beside code and slowly i started chopping away at systems that the game needed.
First challenge came how to build classes that arent prebuilt in the game how this would go, probably the hardest part of everything, was very tedious and hard task to achieve but in the end i managed that.
Then it came how do we built unique hero every time that you can customise how it looks while keeping it 2d, so i came up with paperdoll method heroes where assembled from pieces of limbs and interchangable body parts this would make customisation a brieze , next the animation i didn't want to have assets so how would i animate everything so i decided no clips no clips walking, standing and every attack are computed from the body rig and real movement which would allow me for unlimited animations no matter what i do.
Ok after characters, animations where a breeze but then monsters came and the paper doll method really wasn't working that well because monsters wherent humanoids in a sense and if i wanted to have unlimited content for a dark fantasy rpg i couldn't simply do humanoid mobs as this was going to be very boring, so i pulled my researcher hat and dived deep again to see was there any information how people do it, but i couldnt find anything in details there was interesting article how the rain world was doing it(Shootout to Videocult) then i decided to change the approach for the monsters and instead of 2d paperdoll i decided to go with 3d generated monsters from primitives that are turned into pixel art via shading so every monster can be unique in a way, and the animation would be easier.
ok ok that part done easier said than done but it was done took long long time.
Boring part itemisation, pretty standart except there is no set items or unique items everything is generated on the go with affix suffix tables like the arpg does it, but every look of item is procedurally generated on the go so you might have two similar in property items that look completely different or vice versa, and every item is generated based on the paper doll of the human for that fashion souls swag, so every item in game that drops is unique visually.
Spells i still work on them to this day but the core part of them is done procedurally generated in game, with effects built from GPU particles instead of hand-made animations, and stylised shading.
Dungeons and worlds we have bound to story and premise of the game couple of biomes, but every dungeon is uniquely generated on the go there is unlimited amount of props around the game unique generated per dungeon to build unique dungeon every run, again no assets drawn here everything is code, still not perfect but very playable experience.
Where the game is at the moment and what are the future plans
Combat is next, then abilities, talent trees, NPC, quests, and the final boss, because there is objective for the final boss so we have a full circle of game and procedural sound system, based on my music theory knowledge i can create auto scoring tracks with samples.
Another plan for the future is npc will be procedurally generated with their own dialog and relationships, and you will be able to kinda interact via chat with them something like how you interact with generative ai but without the generative part it will be most likely grep system of strings where it finds what you type and respond based on words wont be perfect but will add edge to the experience, relationship systems where you kill a monster and get his brother couple levels down talking to you because you killed his brohter with unique dialogue, procedurally generated quests, vendors on the road with which you can interact.
if you have an idea or proposition and your passionate about the game you can let me know here: https://docs.google.com/forms/d/e/1FAIpQLScFGWt_xHzBN3rK9KTa-lLonqyP8GrXDv_9Nx7LHqXbrQdTLw/viewform?usp=dialog
r/proceduralgeneration • u/PurpleCat-29 • 14h ago
Spherical polyhedron with pyramids
Thanks to https://www.youtube.com/@auraliummusic for the music!
r/proceduralgeneration
•
u/Last-Description9599
•
1d ago
been working on this medieval house generator for about a year, you draw a street and it builds the houses
hey, first time posting my stuff on reddit
started this about a year ago with a professor of mine and kept building it since. it's medieval paris around 1500: you draw a street and it fills it with houses, each one is generated (storeys, roofs, timber framing, shop fronts, little props on the street etc). the core is written in rust and runs in the browser with three.js
still struggling a lot with the 3d side honestly, making the houses look less blocky and more like real old buildings. if anyone has tips on that, especially on modelling or procedural architecture, it'd help a lot
r/proceduralgeneration • u/El-Jomo • 1d ago
Did some work on near-surface rendering of my procedural planet. Took the opportunity to add walking as well
I'm targeting 60fps on RTX 3070 at 1440p native. Grass and Water are the big budget breakers right now and will need some optimization.
r/proceduralgeneration • u/starfallowgame • 17h ago
Same biome, different seeds, testing how much terrain variety I can get from world gen
Working on the world gen for Starfallow right now and testing different seeds within the same biome to see how the hills, water, and terrain shapes turn out.
What’s your honest take on how the generation looks right now? Always open to feedback on what works or what could feel more natural.
r/proceduralgeneration • u/martec528 • 5h ago
Micro forest interactive world using 100% code
r/proceduralgeneration
•
u/ExplorareStudios
•
1d ago
New massive scale Voxel engine in C++ and Vulkan.
Been working on this project for about 2 months, and excited to share my progress so far! Some things in life allowed to take a chance, and make the game and engine we have been dreaming about since playing Minecraft for the first time over a decade ago (sheesh, time really flies). It is not much of a "game" yet, but building the groundwork for the engine has been a huge learning experience, and has been quite enjoyable for me.
So far, my goal with the project is to achieve massive scale environments and worlds that feel like they are living. With a fully simulated mix of living biomes where your outside knowledge can actually be applied in the world to help survive, and your actions impact the world around you permanently. For now, it is a fun little walking simulator at the very least.
The current world scale is fully adjustable (depending on what your hardware can support), up to 64km x 64km x 3km for pre-streamed worlds and support for infinite world generation, with currently 8 different Macro-biomes. Currently uses around 3-4 GB, with a 25% upscale to 4K and a 3000m viewing distance.
Voxel scale is 0.1m so my goal is to really push the limits, but tons of challenges with getting memory and performance optimized so far.
Written in C++ and Vulkan, running and recorded on an Nvidia GTX 3060.
If you have any questions about the project, do not hesitate to ask! I would love to dive into any of the technical details or plans for the project.
r/proceduralgeneration • u/hichamom • 1d ago
Mossy Stone Wall
Hey Guys,
Excited to share my latest material Mossy stone wall done in Designer and rendered in Toolbag .
More renders and breakdown on ArtStation:
https://www.artstation.com/artwork/EYNqwK
r/proceduralgeneration • u/Puzzled_Bandicoot_66 • 14h ago
Terrain on my site: fBm baked once into a 2048x1024 target, shaded as screen-space halftone
The continents are fractal noise rendered once at load into a render target on the GPU, then sampled every frame. Every lit surface is halftone computed from gl_FragCoord, so the dot size stays constant at any camera distance; dot radius is sqrt(tone) so dot area tracks brightness, with fwidth for AA.
The rest of the site is one camera path keyframed per chapter: a cutaway core cut by discarding a wedge in the planet shader and capping it with two strata planes, a moon, a sun, and a night side.
Live: https://kohli.world
r/proceduralgeneration • u/Ok_Head5182 • 1d ago
I'm making a Car RPG with procedurally generated locations, enemies and equippable items. Feedback is appreciated
r/proceduralgeneration • u/Velocity_LP • 2d ago
Preview screenshots of Brickadia's upcoming procedural terrain
r/proceduralgeneration • u/InformationFormer840 • 1d ago
I built a 24/7 1:1 Earth simulation where autonomous beings evolve with no human language or intervention (Year 39 live + 20 control runs)
r/proceduralgeneration • u/Suspicious_Ad1407 • 1d ago
Cornucopia fractal
galleryPart of the procedural fractal generation engine based on the residual ñ = π − 3.
The original Πñ fractal begins with an open heptagon constructed from three one-radian steps around a unit circle. Its seven edges follow the sequence αβαβαβγ.
Hemp Ferñ generalizes the original construction by introducing an adjustable terminal endpoint, allowing the contraction ratios and resulting morphology to vary.
Cornucopias is an extension of this family further through independently rotating endpoints, selectable recursive edges, midpoint and true-chord similarities, and compound leaflet assemblies.
The same underlying geometry produces fern-like structures, spiraling horns, nested cavities, branching trees and intricate organic formations without relying on procedural noise.
Every specimen has a reproducible mathematical recipe. Repeating symbolic addresses generate nested self-similar structures, while address-based coloring reveals their recursive ancestry.
The interactive engine includes adjustable symmetry, contraction parameters, 37 diagnostic fields, deep zoom, horn isolation and image exports.
I'm particularly interested in its applications to procedural vegetation, organic architecture and worldbuilding.
Interactive Πñ HEMP Ferñ · Cornucopia engine:
https://red-cake-f8c8.howmuchdifferencedoes.workers.dev/
Original research paper and tool:
https://zenodo.org/records/23247320
HEMP fern paper and tool:
https://zenodo.org/records/24280209
Happy Thanksgiving! Feel free to experiment with the mathematics and share your discoveries.
r/proceduralgeneration • u/Staz-GameDev • 2d ago
Procedural race circuits: the racing line, then the world grown around it
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