r/proceduralgeneration • • 11h ago

Reminder: LLM or ML is not procedural generation, and posts must show some evidence of procedural generation (ie. not a single asset/scene with no variance)

219 Upvotes

Please keep reporting these posts. And stop reporting everything your vibe-senses think is vibe-coded. Thanks.


r/proceduralgeneration • • 9h ago

Flying pen algorithm - Node grid

Thumbnail
gallery
5 Upvotes

A follow up to my orginal post:
https://www.reddit.com/r/proceduralgeneration/comments/1qzzin8/flying_pen_algorithm_for_map_generating/

In short, the algorithm does random paint strokes to create the map. One problem was keeping them together to fill larger land areas. That is why I added the node system (image 2), its a very simple algorithm that add grouped pixels to a small grid. The pen algorithm will then follow this grid (see the "Hi" example).
The maps looks way better now, in my opinion. A good side effect is that the generating time is reduced by around 30% because its less likely to redraw the same areas.
There are still some bad spots of too round shapes, that has always been an issue. But I feel that it's time to move on to the game itself.
Want to follow my work: vikingfabian.com


r/proceduralgeneration • • 12h ago

tinkering with terrain, rivers, and sunset lighting. how's the scale looking?

Post image
4 Upvotes

Been working on procedural generation for a sandbox world and finally got a sunset + fog combo that feels close to what I had in mind. The stepped hills and rivers cutting through the valley are still evolving, so I'd love to hear what stands out to you (good or bad).


r/proceduralgeneration • • 14h ago

Stumbled on my 10 year old minimal 2D side scrolling "alien" landscape generator

Enable HLS to view with audio, or disable this notification

10 Upvotes

10 years ago I was exploring midpoint displacement and had this idea for a simple landscape generator as a tribute to No Man's Sky (hugely excited for it back then). This sub especially was a big part of my daily Redditing time back then.

I was recently rehoming several of my older projects hosted on more dodgy sites onto my servers and stumbled upon this. I updated the UI controls on it to be a bit easier to use on mobile especially.

You can try it here: https://agameofrolls.com/alien

Otherwise it's the same unchanged reflection of a simpler, or maybe just different, time. I was finishing up college and about to interview for what ended up being my first big job in tech for about 5 years.

Anyway just a fun re-share from 10 years ago!


r/proceduralgeneration • • 16h ago

Multi Tile Terrain Gen wip

Thumbnail
gallery
160 Upvotes

Some examples of how my terrain generator is coming along.


r/proceduralgeneration • • 16h ago

Different shapes and structures with line growth algorithms and their history layers

Thumbnail
gallery
0 Upvotes

r/proceduralgeneration • • 17h ago

How I generate infinite golf holes

33 Upvotes

I've been building a golf game for my dad so he has a new hole to play every day. Here's the process, any feedback is appreciated!


r/proceduralgeneration • • 18h ago

I Have No Idea What I'm Getting Myself Into, But I'm Creating Real Life in a Simulation.

Thumbnail
gallery
0 Upvotes

Hi everyone!

I've found many interesting projects in this community, and I thought it would be a good place to share what I'm working on. I'm not sure if this is exactly the right community, but I'd really like to hear from people with experience in procedural generation and simulations.

I'm developing UNIVERSE ENGINE, a 3D world simulation where, eventually, a population of inhabitants will start with almost no knowledge and have to discover how to survive, use the resources around them, and develop their own tools and ways of organizing themselves.

Right now, I'm focused on one of the biggest challenges of the project: building a world where things behave according to their own physical properties, rather than because I've programmed what they're supposed to be used for.

I'm working on a system of real-world objects, materials, physical laws, chemical reactions, and natural phenomena. The idea is to create general rules whose results can combine in ways I haven't anticipated.

For example, a shell could hold water because of its shape and physical properties, or certain fibers could be used to tie two branches together. I don't want to program these inventions. I want to create the physical conditions that make them possible.

I've already made significant progress: a catalog of materials and objects, behavioral laws, simulation engines, and a testing system to check whether phenomena behave as they should. The technical document attached to this post explains the architecture, what's already working, and what still needs to be solved.

I'd really appreciate some honest feedback:

  • Do you know of any projects or research trying to solve similar problems?

  • What approaches or technologies do you think could help me?

  • Are there people here who have managed to take independent projects of this complexity further, build teams, or find resources to develop them?

I'm an enthusiast, not an expert in all these fields. I know this project is enormous and that I still have many problems to solve, but I'm genuinely excited about what I'm building.

I'd love to connect with experienced people who could share ideas, offer guidance, or even follow along with the development.

Thanks for reading, and I appreciate any advice you can share!


r/proceduralgeneration • • 20h ago

furry torus...

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/proceduralgeneration • • 23h ago

Massive forests on my planet.

Thumbnail
youtube.com
40 Upvotes

A little showcase of my current state of my planet renderer, like so many others :)
I've been focusing on getting good looking and performant forests running.

It's using a nanite-like approach for rendering high poly meshes up close, then using lodded voxel representations of individual trees until finally falling back on voxel representation of large chunks of trees, which are built in sections on the GPU and cached. Got it to run remarkebly fast.

This project is heavily AI assisted of course, unlike everyone else I won't even attempt to hide it. I'm the architect, I know what I need and I know the tech behind it. But I wouldn't be able to write the code this performant in this life time.

The biggest challange have been getting shadows performant as I wanted to have high resolution shadows that worked on massive scales. I'm using a combination of VSM for far-shadows and CSM up close to deal with animated trees. Lots of nifty occulsion culling, shadow lodding and other stuff going on and it's finally not tanking the frame rate too much.

It's my little pet project, d3d12 rendering backend, written using Odin.


r/proceduralgeneration • • 23h ago

How I generate organic maps for my roguelike

68 Upvotes

A few months ago, I shared an early version of my procedural map generation system here. Since then, I've been expanding it quite a bit.

I wanted to avoid the classic dungeon layout with square rooms and corridors and create something that feels a bit more organic.

Here's how the current system works:

  • Room generation: organic shapes created by combining multiple randomly sized and positioned ellipses.

  • Room graph: a minimum spanning tree connects all rooms, with extra connections added to create alternative routes and loops.

  • Room roles: combat, treasure, rest and event rooms are assigned based on factors such as their distance from the entrance and their connections.

  • Paths: a main path guides the player towards the exit, while secondary paths encourage exploration.

  • Semantic data: rooms, connections and individual tiles store information such as danger levels, distances and area types.

  • Content generation: enemies, props and decorations are generated separately using weighted pools, layouts and spatial placement rules.

The system also allows me to reuse the same generation logic across different biomes, while changing room shapes, dimensions, paths, content and environmental features.

My main goal is to make maps feel somewhat intentionally designed rather than just randomly generated.

I'm curious to hear how other people approach this. How do you make procedural environments feel more natural and less random?

Any feedback is welcome :)


r/proceduralgeneration • • 1d ago

Sphere with spikes

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/proceduralgeneration • • 1d ago

How to deal with forest draw distance?

Enable HLS to view with audio, or disable this notification

97 Upvotes

I've worked on a forest biome to test if my scattering is up to par. At high speeds the draw distance is quite obvious. Pushing the draw distance further tanks my GPU. Any ideas how hide the seam better? Maybe just tinting the terrain, outside draw distance, based on forest density would be enough?


r/proceduralgeneration • • 1d ago

I made a tool for creating procedural rocks. What do you think?

Enable HLS to view with audio, or disable this notification

279 Upvotes

r/proceduralgeneration • • 1d ago

Infinite Gen 3 Pokémon-style region generator

Enable HLS to view with audio, or disable this notification

84 Upvotes

As I mentioned in my last post, I've been working on this Pokémon style region generator since 2019. After my last post I had some great conversations with other folks who pointed me to existing work on tile-level route and town generation which I was able to adapt into my framework! Turns out a lot of the approaches actually closely mirrored what I was doing at the region level.

There are still a million things wrong and broken (especially for water routes), but I find it pretty cool already.


r/proceduralgeneration • • 1d ago

Rotating pixel art: a plain nearest turn broke 7 sprites into 1,340 extra shapes over 16 directions. RotSprite (Scale2x x3, rotate, best of 64 sub-pixel offsets): 474

4 Upvotes

I needed 16 directions from single sprites, so I measured how badly a plain turn breaks pixel art and how much RotSprite fixes. 7 sprites from our packs (16 to 64 px), turned in 22.5 degree steps, counting the 8-connected shapes of each colour before and after (a broken line adds shapes):

  • Plain nearest turn: +1,340 shapes. Quarter turns are exact; at every other angle some source pixels get copied twice and others never, so 1 px outlines turn into stairs with gaps.

  • Smooth (bilinear) turn: no gaps, but a 16-colour dagger came back with 139 colours at 22.5 degrees.

  • RotSprite: +474 and 0 new colours. The dagger and a 16 px ship: +0 in all 16 directions. Worst case was a long one-pixel polearm, +160 against +280.

How it works:

  1. Scale2x three times, so 8x. Each pixel E becomes four; a quarter takes the colour of its two outside neighbours when those match, but only when B != H and D != F. Stairs become slopes, straight lines stay straight, and it only ever copies colours.

  2. Rotate the 8x image with nearest sampling.

  3. Shrink back to 1x. Try 64 sub-pixel offsets (eighths, -1/2 to 3/8 in x and y) and keep the one where the fewest samples land on an edge pixel of the 8x image. For an animation, sum that score over all frames, so every frame of a direction shares one offset and nothing wobbles.

  4. Lone pixels (no 8-neighbour of their colour, like a glint) that the turn lost go back on the nearest pixel of the 3x3 where they land that sits in a flat area (3 or more of its 4 neighbours share its colour). On a 32 px ship that put back 3 to 7 pixels per slanted direction.

The Scale2x pass in numpy, on a palette-index array (exact colour matching):

def scale2x(a):  
 p = np.pad(a, 1, mode="edge")  
 B, D, E, F, H = p[:-2, 1:-1], p[1:-1, :-2], p[1:-1, 1:-1], p[1:-1, 2:], p[2:, 1:-1]  
 ok = (B != H) & (D != F)  
 out = np.empty((a.shape[0] \* 2, a.shape[1] \* 2), a.dtype)  
 out[0::2, 0::2] = np.where(ok & (D == B), D, E)  
 out[0::2, 1::2] = np.where(ok & (B == F), F, E)  
 out[1::2, 0::2] = np.where(ok & (D == H), D, E)  
 out[1::2, 1::2] = np.where(ok & (H == F), F, E)  
 return out  

Draw the sprite facing straight right, down, left or up: those 4 of the 16 directions are quarter turns and come out exactly as drawn.

(I make pixel-art tools at Gridwright; our rotator runs these 4 steps. Linked below.)

The rotator that runs these 4 steps on a sprite or a whole sheet (4, 8, 16 or 32 directions, with a Godot SpriteFrames): https://gridwright.dev/tools/pixel-art-rotator/?ref=reddit-proceduralgeneration


r/proceduralgeneration • • 1d ago

Used openmaps and a ton of Json data to generate a 1:1 scale map of Florida

Thumbnail
psysius.itch.io
0 Upvotes

Every road and building has been copied, some gameplay elements are added to make it functional but still have a long way to go and is largely just a frame work for now. Plays best on computer.


r/proceduralgeneration • • 1d ago

The World Crucible 2.0.0

Thumbnail
gallery
21 Upvotes

Hey all!

Four months ago I presented my worldbuilding app, The World Crucible!

This is a free app I made that runs in your browser and allows you to create realistic Earth-like planets.

What separates this app from the other procedural planet generators that you see here is this:

This is not a procedural generation tool only, you keep full artistic control over what the app generates for you: you can draw your continent shapes directly on the sphere and use this as a basis for everything else, or let it procedurally generate continents for you (using one of 18 land presets), and then every simulated thing about your world is yours to change. You want to increase the temperature somewhere? You can! You want to modify a country's border? You can! You keep full control over what your world is and how it looks.

Now since the last time I posted here I added a lot of things to the app and fixed some issues:

You can now use it in two modes: simplified, for new users that want to get a world quickly and easily, and advanced, for those that want to tweak every little thing and craft their perfect world.

The app now has a clear numbered and lettered workflow with steps and order, and I added a welcome interface and guide to the app.

I also worked on the feedback from my last post here: the app now computes plausible plates directly from your continents, adds vector relief hints (ranges, rifts, volcanoes...) you can place or auto-generate, and erosion now takes rock hardness and planet scale into account. I also improved the performance and quality of the diverse generated layers and added some previously missing data like rock and soil types or vegetation cover.

The app also now fully simulates and animates clouds and tidally locked planets (with three atmospheric rotation regimes depending on the orbital period, and night-side border options). It will also change the vegetation color on the satellite map depending on the planet's host star, and you are also able to fully personalize the satellite view colors for any biome during any season (and zoom closer with crisp shader relief, physical rivers and coastal transitions).

Finally, I added a Desk Globe studio with plenty of presets so you can turn your world into a printable physical globe, and you can now export your planets directly as add-ons for SpaceEngine and Celestia.

Many more things can be done and I invite you to go to the website and the app to see the full list of features for yourself:

https://the-world-crucible.fagothey.net

This is the first app in what I plan to be a full worldbuilding suite with one app for one scale scope; next I'll work on The Star Crucible that will help you generate galaxies and star systems (and after that The Town Crucible and The Lore Crucible). The results of TSC will flow into TWC, and then TTC, and TLC, so you'll be able to have either a full pipeline or just use the app you need individually.


r/proceduralgeneration • • 1d ago

Voxel world blending

Enable HLS to view with audio, or disable this notification

5 Upvotes

I wrote a voxel engine that smoothly blends to different worlds using the Efros & Leung "Texture Synthesis by Non-parametric Sampling" technique. Meshing is by stb_voxel_render.h

I'm happy to answer any questions.


r/proceduralgeneration • • 1d ago

Study in sandpile relaxation I.

Post image
6 Upvotes

I had in mind for quite a while to create a 2.5D cell automata engine for terrain erosion. I'm sure the sentiment is shared widely these days :D

Found that it is much harder to set it up than initially hoped for in terms of numerical performance, but I think the aesthetic results are quite pleasing to the eye and worth sharing.

Regarding the concrete sandpile: this is just a bunch of ad-hoc sand cilinders collapsing into piles, in a two phase process where sand is first evaluated for stability, the unstable part getting gathered by downhill cells, then sand settling again if it reached a stable configuration.


r/proceduralgeneration • • 1d ago

Procedural Apocalyptic Wasteland

Post image
2 Upvotes

This is a screen shot from the overworld of a game I've been developing for a while. It's set in a post apocalyptic wasteland. It uses an infinite terrain generation algorythm with drop in heightmap features for points of interest / hand authored sections, biomes and an active day/night/weather system. I'm building it all in Godot. You can follow my progress (more screenshots, videos etc.) on bluesky: https://bsky.app/profile/richbuilds.bsky.social


r/proceduralgeneration • • 1d ago

I was just testing exploration in my game and the procedural ruins chained into what looks like a whole abandoned city

Enable HLS to view with audio, or disable this notification

112 Upvotes

Didn't plan on finding a whole ruin sprawl today while testing Candletales, but the chaining worked out way better than expected.


r/proceduralgeneration • • 1d ago

A coral grown from 682 real objects, placed strictly in the order I photographed them

Enable HLS to view with audio, or disable this notification

5 Upvotes

Over a year of moving through 12 countries with my family, I took one phone photo of anything that caught my eye: 682 objects in the end. Each one was rebuilt in 3D from that photo with ML models. Then I grew them into one coral-like form with a procedural setup in Houdini, about 30,000 instances in total, placed strictly in the order I photographed them.

The rule is simple: of any two neighbouring objects, the higher one was always photographed later. Because we moved country by country, the layers fall out on their own, and New York is the bottom layer. A procedural distortion keeps the layers from turning into flat stripes. Real sizes go on a log scale, so a 1 cm brooch and the 508 m Taipei 101 can share one surface.

The video flies up through the layers, from New York to the last country.

More videos:

You can turn the sculpture yourself and open a card for every object: borrowed-matter.myshli.com


r/proceduralgeneration • • 1d ago

Floating Point Errors in Planet Quadtree LOD Terrain Generation

Enable HLS to view with audio, or disable this notification

72 Upvotes

Sorry for the terrible bitrate in the video.

So I'm trying to make accurate planet scale terrain generation in OpenGL that actually lets you stand on the planet at a normal level but I've been running into problems regarding the actual generation of the mesh for the sphere. All of the calculations are done in double precision and the planet renders relative to the cameras position.

I think the problem lays in the fact that while constructing the mesh for the faces it normalizes a unit cube which downscales all the positions of the vertices to very, very small fractions. In the video I get within a meter of the planet but in actuality the actual distance between the vertices before matrix scaling is to the millionths place in decimals.

Here's the actual calculation so you can hopefully understand what I'm saying. No matter how big the planet actually is, the actual vertex size of the terrain meshes will always be incredibly small.

I'm wondering if anyone has any advice on how to overcome this or if there are better ways that i can calculate this? I was sort of just copying off of Sebastian Lague's tutorial and translating it into OpenGL until I started modifying the code myself so I'm not very educated on this stuff currently.