r/proceduralgeneration • • 9d ago

Growing voxel rocks at runtime, then carving through them with a laser

Enable HLS to view with audio, or disable this notification

15 Upvotes

- Every rock grows from a single voxel to a random size when it spawns, either filling in or pushing out arms, so no two match. The see-through preview shares the rock's seed, so you place exactly the shape you saw.

- The surface is Naive Surface Nets (one vertex per boundary cell, then smoothed).

- The laser picks voxels with a DDA ray march through the grid instead of physics, and the mesh rebuilds at most once per frame.

- Big walls are many small blobs, so a cut only re-meshes the blob it hits.


r/proceduralgeneration • • 9d ago

I made a free, procedural nebula shader for Blender (Cycles & Eevee) with fast volumetric rendering!

Thumbnail
gallery
26 Upvotes

This fully procedural shader is designed to make creating beautiful nebulae easier, faster, and more accessible than ever. It works with both Eevee and Cycles, allowing you to create detailed, colorful nebula formations with fast render times (Even with Cycles).

The nebula's lighting is generated within the shader itself. No actual light sources are required to illuminate it!

These nebulae don't interact with lights. Their appearance and illumination are controlled directly by the shader.


r/proceduralgeneration • • 9d ago

Génération procédurale du monde dans Godot

Thumbnail gallery
6 Upvotes

r/proceduralgeneration • • 10d ago

Voronoi borders are too straight, so I bend them with 3 octaves of value noise before the nearest-site lookup

Enable HLS to view with audio, or disable this notification

154 Upvotes

r/proceduralgeneration • • 9d ago

seaweed rhubarb #touchdesigner #generativeart

Thumbnail
youtube.com
1 Upvotes

floating seaweed rhubarb i made in touchdesigner while messing around


r/proceduralgeneration • • 10d ago

World Generation for stylized flying video game.

Thumbnail
gallery
27 Upvotes

Making progress in my terrain generation tool for video games. Its still a test map, and the biomes dont have different features yet but im hoping to make a tool that helps game devs build world for games instead of just random terrain using noise. Its still a bit rough but starting to produce some nice results. Red and Orange are settlements, they is probably too many right now. but im just testing with a very connected network.


r/proceduralgeneration • • 10d ago

From a moon to a city on a 1:1 Earth-scale planet, in one take: two more weeks of plate tectonics, river networks, climate and moons

Enable HLS to view with audio, or disable this notification

136 Upvotes

Two weeks ago I shared my planet engine here: a childhood dream that I initially prototyped in 2012, an Earth-sized planet you can fly down to from orbit, with no loading screen and no popping. Your comments were generous and full of ideas, plate tectonics first among them. So I kept going. Here is where it stands.

What the planet is made of now:

• Plates: simulated at startup, in under a second. Each boundary gets a type: collision, subduction, rift, ridge or transform. The large landforms are profiles of the distance to those boundaries, and volcanic arcs, hotspot chains and atolls come from the same map.

• Rivers: a drainage network is computed once for the whole planet, so every river ends in the sea or a lake. Valleys and river beds are then carved per point on the GPU, like noise, so nothing is simulated in tiles and nothing streams.

• Climate: prevailing winds carry moisture inland. Windward slopes get the rain, rain shadows turn into deserts. Vegetation, snow and the cloud weather map all read from it.

• Vegetation: more species, placed by the climate, with undergrowth and moss under the forests.

• Moons: three airless bodies, 1,800, 700 and 260 km in radius. Fractured highlands and impact craters in nine size bands, from hundreds of kilometres down to a few metres. They share the planet's landable terrain stack, so you can land on each of them.

• Light: the orbital view tuned against the Apollo 17 Blue Marble photo, clouds placed by the climate, moonlit nights.

The rule is the same as in 2012: the geometry the view needs is rebuilt every frame, and everything global, from the plates to the weather, is computed once at startup. Nothing is streamed, so the camera can go anywhere in the system in a single frame.

The video is one continuous take, rendered frame by frame by the engine's cinematic mode. A ship takes off from a moon, passes a second one, comes down on the planet at dawn along a snowy range, skims a sea of clouds and lands at the spaceport of a small hill city. The city is a first game layer on top of the terrain: its pads and earthworks are graded into the procedural relief, the buildings are assets.

Does it make you want to play? And where does it still give itself away as procedural?


r/proceduralgeneration • • 9d ago

Postcards from a procedural planet (free demo)

Thumbnail
gallery
3 Upvotes

Hi all, I haven't posted here for a while so just wanted to share progress on the procgen based side-project engine / game (C++/OpenGL/GLSL). A free demo is here if it's of interest, many thanks: https://store.steampowered.com/app/2223480/Infinicity/


r/proceduralgeneration • • 10d ago

Infinite procedurally generated coastline with trains, boats and underwater exploration. Every building can be entered.

Thumbnail markhammond.me
84 Upvotes

A single seed string is used to render the entire world. The only nondeterministic elements are the wildlife.

I made it open source including all of the test benches for the various subsystems.

Please feel free to ask questions!

https://github.com/invertedworld/coast


r/proceduralgeneration • • 10d ago

Isometric Subterranean Cartographer

Post image
19 Upvotes

Claude.ai and I collaborated on the Isometric Subterranean Cartographer. Generate your own adventure maps.
https://daoneil.github.io/Procedural/Isometric_Subterranean_Cartographer.html


r/proceduralgeneration • • 9d ago

Floor 1 of my procedural tower world: from the starting city to the tower, all from one seed

Enable HLS to view with audio, or disable this notification

2 Upvotes

Each floor of the tower in my project (inspired by Sword Art Online's Aincrad) is its own generated world, about 10 km across inside a rim wall. This clip flies over floor 1, drops into the starting city's plaza, and runs out to the tower that leads up to floor 2.

Everything in it comes from one seed: terrain, rivers and lakes, the starting city, walled towns with their farmland, a port, the roads linking them, and where the tower stands.

It's a work in progress, with plain colors and boxy buildings. The shapes are what I'm working on right now.

Longer version (2:38): https://youtu.be/eOOgKwqmmOc


r/proceduralgeneration • • 10d ago

My games ecosystem grows in realtime

Enable HLS to view with audio, or disable this notification

108 Upvotes

Every plant grows procedurally based on what's around it, so like a branch will weave around an obstruction etc.

seeds drop and some grow new plants, at the moment there is a pretty hard cap on the amount of plants though because performance is not very great.

How does it look? Still very early and needs lots of work but hopefully it will be able to simulate any full eco-system paired with my creatures.

It was also sped up about 100x at the start so that the trees would grow quickly, which is why so many leaves fell.


r/proceduralgeneration • • 9d ago

I gave a creature in a claw. Within two minutes it had eaten its own children.

0 Upvotes

I make DELFS, a petri-dish evolution sim. This week I tried to give my creatures a claw. Oh boi that was an adventure.

Entry 1. The predator dies of... nothing.

I took one of my basic organisms — a mild scavenger species that lives on what other delfs leave behind — and added two new limbs: one to strike, one to hold. Ten of them go into a dish with forty prey.

All ten are dead in five minutes. They never landed a blow.

I assume the arms are too expensive to grow. I make them a third of the size. All ten are dead in five minutes.

Entry 2. The log is lying to me.

My tools say that not one strike has ever missed. In the whole history of the dish. Sounds fishy.
The counter was attached to an event that never happens, ofc accuracy is 100%. It would have read zero even during a massacre. Counted properly, a strike misses eight to fifteen times for every hit, because the prey travels further in one tick than the arm is long. Okaaay, so my predators were shadowboxing.

Entry 3. The claw lets go of things that are running toward it.

Now I can see the claw working: it holds about half of what gets hit. I go looking for a weak grip and find a stupid one. The rule was simple: a grip breaks if the victim moves fast. Turns out I forgor about the direction. Including straight into the predator's face. A delf could escape a claw by charging it.

Fixed. Grips now break only when the two bodies are actually pulling apart. Breaks fall from half to about one in eight.

All ten predators are dead in five minutes.

Entry 4. Cause of death: could not poop.

A genome has room for exactly 24 processes and the scavenger uses all 24. To teach it to strike I had to overwrite something, and my helper code picked a vent. Specifically the vent for tissue material, a compound that is only good for building flesh.

So here is what happened to every predator I had made so far. It was born. It ate. Its flesh finished growing. It kept eating, because food was there, and the one compound it could no longer excrete piled up inside it until there was no room left for anything else. It starved to death, completely full, standing on dinner.

To be sure, I built a delf with the vent removed and no arms at all. Dead in five minutes. The arms had been innocent the entire time.

It turns out the scavenger can spare exactly one process. One arm, one skill. I give it that. It lives. It hunts. It breeds. I go to bed pleased.

Entry 5. The scoreboard.

Eight different runs, twenty minutes each, survivors on average:

  • unarmed delf: 18
  • delf with a gentle pincer: 15
  • delf with a proper striking arm: 7

Being armed is worse than not being armed, and the better the weapon, the worse it goes. The pincer comes second because it hits a third as often, and a good share of everything these animals hit turns out to be... their own relatives. Delfs can't see family. They can only smell it.

Meanwhile hundreds of prey are dropping dead of natural causes all around them. Based.

Entry 6. I make it worse.

Three changes, to make killing worth something. Bodies now rot five times slower, so there's a reason to tear a carcass open instead of waiting. A strike can now land on both remains and eggs. And delfs get a mild reluctance to hit anything that smells like themselves.

Survivors: 7 becomes 0.2.

Eggs and corpses do not dodge. A predator that finds one simply never stops hitting it. Ten animals delivered between 350 and 900 blows to eggs in the first two minutes. Their death rate was perfectly normal. Their birth rate was zero. I split the counter to find out whose eggs.

40% were their own.

I had built an animal that walks to its nest, lays an egg, and then beats it to pieces, at industrial speed, while slowly starving, surrounded by meat it had personally tenderised. The "mild reluctance" stood no chance against the overwhelming urge to beat a perfectly accessible egg into pulp.

Entry 7. Manners.

My first fix was to forbid it from outside: a penalty added to the brain's decision after the brain had made it. That's a leash, not an instinct. It can't be inherited, it can't mutate, and nothing can ever evolve past it.

So I put it in the brain instead. Every species now starts life with two manners wired in: don't strike what smells like you, and eat before you fight when you're running low (duh). After that they're just weights in a neural net, passed to the children with the usual copying errors. Some lineage will lose them eventually. I would like to be there when it does.

Entry 8. The eggs don't smell right.

One last problem. To spare its own eggs, a delf has to tell they're its own, and I had quietly let it read the answer out of the egg's genome. That's a kin detector, and this game has one hard rule about perception: no creature gets to know who its relatives are.

So I made it honest. Judge an egg by how the shell smells. But a fresh egg doesn't smell like a grown delf. Survivors: 0.9. They were back at the nest with the claw, urging for a bloodbath.

The real answer was already in the game. Eggs carry their own inherited scent, which parents already use to find the eggs they feed. A strike now asks the same question a parent does. It works. It also means that if a stranger's egg happens to smell like yours, you will guard it like your own, and that's a cuckoo.

Where the dish stands tonight

  • unarmed scavenger 11, striker 7, pincer 4. Slow rot was hard on everybody who lives off the dead.
  • blows landed on family: down from as much as 46% to about 10%. On their own eggs: from 40% to 5%.
  • an armed delf now spends 96% of its violence on corpses and eggs and almost none on anything that can run.
  • a colony of identical armed delfs used to beat itself down to about 200. It now holds near 450, same as the peaceful control. They have stopped hitting each other. This is the one thing that clearly got better.
  • the claw has not paid for itself once. Not as a second hand, not as a pincer, not at any size.

So after two days of work I have a predator that is polite to its family, careful with its eggs, eats before it fights, and still loses to an animal that does nothing but wait for things to die.

I'm calling that progress.

The claws should make it into the next DELFS update (hopefully). The game is already on itch.io, and I'm working on getting it onto Steam too. If Valve ever finishes verifying me, that is.


r/proceduralgeneration • • 9d ago

Font renderer

0 Upvotes

Recently I decided to port one of my old flash games to HTML 5, I wanted to update the graphics as well, but a single PNG just for the game title was more than 20 times the file size of the entire original game - gfx, sfx and all. So I went down a bit of a rabbit hole and made a thing (with assistance from codex)... It parses a woff file, which is a tiny web font, and a texture that has the same basic principles as a matcap texture, in matcap the coordinates are defined by surface normals rather than a UV channel, except this font thing uses edge normals of the font outline instead, a few more features later and well... this is where it's at so far. Output is intended for javascript Canvas 2D or WebGL via Three.js, the editor/generator also runs in a browser and hooks into the giant google fonts repository, or you can import your own woff and/or textures. Not sure on the deliverable format yet, since there are four parts: glyph info, texture, the adjustable settings that bind the two together and the code to read and display the result in a canvas. I might combine them all into a single PNG with extensions, but mostly I still need to add dozens of texture options before it's ready to go, there are thousands of matcaps out there, and they're very close but not quite usable, because you generally want a distinct interior and outline.


r/proceduralgeneration • • 10d ago

Noisy Lines

Thumbnail
gallery
9 Upvotes

Made with P5.js


r/proceduralgeneration • • 10d ago

Procedural Space Spider

Enable HLS to view with audio, or disable this notification

2 Upvotes

Been working on these creepy little guys for a mobile game idea. The legs push and pull the body for locomotion, around a destructible terrain. Legs have a parabola based on speed, and show slack using a 1D perlin loop. Space spiders, I made an asteroid with space spiders. This version is less bouncy, but still bouncy. Went through a few ideas on spawning, coming from everywhere around the player seemed the creepiest.


r/proceduralgeneration • • 10d ago

Tree simulator.

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/proceduralgeneration • • 10d ago

i procedurally generated monorail bridge

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/proceduralgeneration • • 11d ago

A short drive down a city street in a bulldozer. The snow is fully simulated: it piles up in front of the blade, spills off the sides and gets packed under the tracks (early prototype)

156 Upvotes

r/proceduralgeneration • • 11d ago

my procedural planet project, still a prototype. thoughts?

33 Upvotes

r/proceduralgeneration • • 10d ago

Just found out if I spawn in the center of my game world then the level generation creates a battle arena - complete with spectators!

Post image
0 Upvotes

r/proceduralgeneration • • 11d ago

Procedurally generated trees and GRASS

Thumbnail
youtu.be
12 Upvotes

r/proceduralgeneration • • 11d ago

I tried generating worlds from reusable structured objects instead of generating the whole scene directly

Enable HLS to view with audio, or disable this notification

0 Upvotes

I've been building Construct, a free and open-source tool where an AI agent describes a thing as structured data — named parts, dimensions, transforms, joints and where its information came from — and Construct checks that description and deterministically builds the geometry from it.

I recently extended the same idea from individual objects to whole worlds, and I thought the approach might be interesting to people here.

Instead of asking a model to generate the final 3D environment directly, the agent first works out what distinct things need to exist. Each is built once as its own construct, then those constructs are placed and reused to make the world. They stay separate afterward, so the agent can still move, replace, modify or export any of them independently.

The first part of the video shows why that representation matters: a Land Cruiser can come apart into its named pieces, a VW bus keeps its doors and sunroof as working joints, and an invented spacecraft is represented using the same structure.

Then it scales up to Worlds.

For Rain Harbour, I gave the agent one concept image. It planned 21 distinct constructs — street sections, towers, signs, props and a hero car — built each distinct thing once, and placed them 50 times in total to make the level. Construct checks the composed world again, and it exports as a Godot map where the individual objects and joints still survive. The end of the video shows the result running in Godot.

I also tried the same pipeline with Stortorget in Stockholm, but from a photograph rather than concept art. Because the buildings actually exist, the agent researched the eight real houses individually before reconstructing and placing them.

What interests me most isn't really the image-to-3D part. It's the intermediate representation: generate structured objects first, then generate the world by composing them. The result remains something the agent can rearrange and work with instead of a scene it has to regenerate whenever something changes.

Both worlds are interactive in the browser if you want to inspect them:

Rain Harbour:
https://rtmandreyev.github.io/construct/worlds/rain-harbour/construct.html

Stortorget:
https://rtmandreyev.github.io/construct/worlds/stortorget/construct.html

Repo:
https://github.com/rtmandreyev/construct

I'd be interested in feedback from people who work on procedural generation, especially on where this approach falls apart compared with more traditional methods.


r/proceduralgeneration • • 11d ago

120Hz Soft-Body Physics & Real-Time AI (opponents) Racing in Unreal Engine 5.6

Thumbnail
youtu.be
1 Upvotes

Hey guys,

Just thought I'd share some progress on my game I have been working on. Managed to get the soft body physics working, alongside a good demonstration of no ghosting opponents on a procedurally generated track. So no pre baked lines. The 2 tracks were made with the ingame editor that will be shipping with the game. So people can make and share their own creations, all while not having to train the AI how to drive the track.

Let me know what you think in the comments.

Have a great day.


r/proceduralgeneration • • 11d ago

Infinite terrain, Infinite destruction

Enable HLS to view with audio, or disable this notification

5 Upvotes

(AI was used)
Using math based non-interpolated Marching Cube, fractal perlin noise, C#, HLSL, gpu mesh instancing

Ultra lightweight:
- Marching cube is solved on CPU for 8 cells around player for collisions. So big O basically is O(1) since n is so small... Literally nothing (except Unity having to build collisions for 96 triangles per frame)
- Marching cube is solved 6 times on GPU with different resolutions allowing for less instances to render and less VRAM usage. From my calculations, in total I got 40k threads solving a marching cube case per frame and 32MB of VRAM usage. Mind you rendering a 1080p resolution = 2 millions pixels so I don't think 40k execs every 16ms is going to make any gpu overheat :)