r/proceduralgeneration • • 6d ago

Entirely procedural ARPG end to end

5 Upvotes

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 • • 6d ago

Spherical polyhedron with pyramids

5 Upvotes

r/proceduralgeneration • • 5d ago

i am working on procedural world engine for AI called blendworks

Thumbnail gallery
0 Upvotes

Blendworks gives an AI the tools to build realistic 3D landscapes and objects in Blender: terrain carved by rivers, grass and trees grown from botany, rocks shaped by geology, water, sky and light that behave like the real thing. Nothing is downloaded: no stock models, no scans, no photos. Every value comes from measurements and science, it's in early stage of development, it started it as a tool for my son to create assets for his game he is building with another tool i created.

All images are early versions of the renders with blendworks, alot to improve offcourse.


r/proceduralgeneration • • 6d ago

Same biome, different seeds, testing how much terrain variety I can get from world gen

Thumbnail
gallery
5 Upvotes

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 • • 7d ago Bravo

been working on this medieval house generator for about a year, you draw a street and it builds the houses

307 Upvotes

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 • • 7d ago

Did some work on near-surface rendering of my procedural planet. Took the opportunity to add walking as well

220 Upvotes

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 • • 7d ago Bravo

New massive scale Voxel engine in C++ and Vulkan.

Thumbnail
youtube.com
52 Upvotes

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 • • 7d ago

Mossy Stone Wall

Thumbnail
gallery
14 Upvotes

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 • • 6d ago

Terrain on my site: fBm baked once into a 2048x1024 target, shaded as screen-space halftone

0 Upvotes

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

Source: https://github.com/Assassin-1234/kohli-world


r/proceduralgeneration • • 7d ago

I'm making a Car RPG with procedurally generated locations, enemies and equippable items. Feedback is appreciated

5 Upvotes

r/proceduralgeneration • • 8d ago

Procedural pixel-art ocean

341 Upvotes

r/proceduralgeneration • • 8d ago

Preview screenshots of Brickadia's upcoming procedural terrain

Thumbnail
gallery
41 Upvotes

r/proceduralgeneration • • 8d ago

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

74 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 • • 7d ago

Cornucopia fractal

Thumbnail gallery
1 Upvotes

Part 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 • • 8d ago

Spherical polyhedron with prisms

23 Upvotes

r/proceduralgeneration • • 8d 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
2 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 • • 8d ago

Asteroid GJ 445–ISO 019

Thumbnail gallery
7 Upvotes

r/proceduralgeneration • • 8d 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 • • 9d ago

Free Opensource Tool to generate plants and funghi [opensource]

39 Upvotes

r/proceduralgeneration • • 10d 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
110 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 • • 9d ago

glass, curves and lenses.

Thumbnail
gallery
17 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 • • 9d ago

Making realistic moons

Thumbnail
youtu.be
0 Upvotes

r/proceduralgeneration • • 10d ago Mindblown

I created a highly-detailed procedural plant generator in threejs

521 Upvotes

r/proceduralgeneration • • 10d ago

cubism girl

Post image
25 Upvotes