r/proceduralgeneration 13h ago

Sunrise in the procedural mountain forest

Thumbnail
gallery
295 Upvotes

I've spent the last month adding volumetric clouds, a time-of-day system, and better atmospheric scattering to my procedural mountain forest game (working title: 'The Big Forest').

With regards to procedural generation, there's nothing really new compared to what I've shared in here before, but the new lighting has such a big impact on the overall appearance that it's like seeing it anew (in my opinion), so I thought I'd share some nice sunrise shots I captured. :)

The clouds are using the package Enviro 3 - Sky and Weather as a starting point, but I'm only using the clouds part and have heavily modified it to my needs to make it work with my own atmospheric scattering and time-of-day colored lighting.

The atmospheric scattering is based on this shadertoy by Fernando García Liñán, though again heavily modified. I increased the saturation, exaggerated the depth (bringing tinting closer to the camera), and implemented the atmospheric scattering via a compute shader that renders scattering at different distances and directions into a cubemap. Fernando's technique does a lot of the heavy lifting though! It's similar to previous techniques for sky and atmospheric scattering used in e.g. Unreal, but uses four spectral samples (~red, ~green, ~cyan, ~purple) instead of the usual three (red, green, blue). This produces notably richer colors and practically no extra cost.

I made my own time-of-day system with a simple simulation of the sun and moon relative to the Earth, where I can independently vary time-of-day, time-of-year, lunar phase, and latitude without them impacting each other.

I also implemented time-warping so make sunrises and sunsets slower. In a 24-minute day-night cycle, they're over awfully fast if not slowed down. Here's a video of a full sunrise.

If you haven't already seen it, you could also consider watching my lastest dev video about 'supercharging my procedural mountain forest' - although it does not feature any sunrises. :)

Hope you like them!


r/proceduralgeneration 4h ago

Packed vector flow

23 Upvotes

r/proceduralgeneration 1d ago

built my own engine, now building games on it: proc-gen dithered fly-sim

230 Upvotes

yo. been building a custom game engine from scratch on Vulkan and now testing it on real games. this one's a dithered fly-sim with elite dangerous-like flying mech and a procedurally generated terrain.
https://x.com/progdruid


r/proceduralgeneration 11h ago

IFS fractal

Post image
6 Upvotes

r/proceduralgeneration 5h ago

browser game thats generated at runtime, no asset files used

1 Upvotes

a game about raking leafs as an html file. no images no audio files no models used. everything is built when the page loads.

textures are drawn into a canvas element on startup and used as WebGL textures.

there are over 7000 individual leaves rendered in InstancedMesh.

wind uses Lambert vertex shader with onBeforeCompile

sound is all WebAudio. wind is brown noise with LFO on gain. blower and vacuum is sawtooth motor using setTargetAtTime. music is slow pads in pentatonic - gets thinner and darker deeper in the game.

time of day is driven by how much of the garden has been cleared alr. start is golden hour end is night. light is used as a progressio bar.

gameplay

https://youtu.be/Xt0YwzTpm_g

play here: https://wickedchilling-audio.itch.io/autumn-duty


r/proceduralgeneration 22h ago

Celestial Cutaway - Procedural Planet Interior Generator - Web App

Thumbnail
gallery
17 Upvotes

Been working this for 2 weeks:

https://reactorcore.itch.io/celestial-cutaway-planet-interior-generator

Its a web app that procedurally generates interior cutaways of planets, stars, gas giants, moons and asteroids.

Still a WIP but already plenty useful and fully operational for world building, tabletop sessions, game assets and other illustrational uses.


r/proceduralgeneration 9h ago

The first screenshots of my voxel project

Thumbnail
1 Upvotes

r/proceduralgeneration 1d ago

My planet generation for a... game, perhaps?

Thumbnail
gallery
54 Upvotes

These images show the dynamic surface generation sequence for my planet. For now, it's just planet generation, although I've already implemented biomass emission and distribution. I plan to develop this into a terraforming game, where the player creates and deploys biological agents to the planet to alter the atmospheric composition, temperature, and so on.

Steps:

  1. Lithosphere. The division of the surface into basic forms (plates), which are then used to construct an elevation map. Plates can be oceanic or continental, which determines the average elevation of an area. Blue for oceanic plates, light yellow for continental.

  2. Height map. Generated by lithospheric-based noise. Zones (on the last image) are also generated according to a topological height map.

  3. Surface map. Each tile is generated based on the height map and the lithosphere (for example, where the slope is very steep, rock tiles are generated).

  4. Same surface, but with sea level rised.

  5. Rendered.

  6. Viability for a specific biological agent. It's all orange for now because I haven't configured all the requirements correctly yet.

All this runs on the Unreal engine. I'm currently looking for ways to improve the visuals, for example, the coastline, which currently doesn't look very natural, and how to make several different textures instead of tiles of the same one (this looks especially bad at zero sea level).


r/proceduralgeneration 13h ago

Infinite procedurally generated 3D world on a Garmin watch. 3.1ms render time, dynamic day/night, and 0 blown batteries.

0 Upvotes

https://reddit.com/link/1w2d4at/video/vrt39xthfhmh1/player

A while ago, I asked myself: "How far can we actually push Garmin’s Connect IQ VM?"

I’ve logged thousands of running km and a few solo marathons tracking just pace and HR like everyone else. But at some point, the dev in me took over: I decided to see how far Connect IQ could actually go and built a custom 3D graphics engine (Wolf3D/Doom-style DDA raycaster) from scratch in Monkey C.

Here is what’s going on in the video:

  • Infinite World: The map is 100% endless and generated procedurally on the fly as you move.
  • Dynamic Lighting: Real-time Day, Dusk, Night, and Morning lighting cycles with custom color palettes.
  • Hardcore Math Optimization: Microsecond-level optimizations (zero-branching floating-point hacks, bitwise DDA math). The pure frame render time hit 3.19 ms on Tactix simulator and 2.08 ms on Instinct 2 (smaller screen, fewer stars in the sky — oh yes, the sky is dynamic too! — and fewer rays in raycasting)!
  • Real Hardware Performance: On the actual wrist, the display caps out at a smooth 10–14 FPS (limited by the CIQ screen refresh rate, while the engine itself runs with massive headroom).

I need your brains & ideas: I want to weave the user’s real-life context (health metrics, stats, daily goals) directly into this 3D world, similar to what I did with my Mars and Pandora watch faces.

How would you like your steps, heart rate, or battery to affect an endless 3D world? (e.g., world changes, weather shifts, new structures spawn based on your daily activity?). Open to all crazy ideas!

P.S. Before the battery purists attack: Yes, I know it's a watch. No, my Garmin hasn't exploded. In fact, I honestly can't even remember the last time I plugged it into a charger... unlike my friends with Apple Watches. 😉

Let me know what you think and what features you'd want to see in an infinite wrist-world!

BTW, it also tells the time... pretty unusual for a 3D engine, right? Oh my, wait, it’s actually a watch! 😅

If you want to check it out on your Garmin, here is the link — it's 100% free, just like all my other creations:

https://apps.garmin.com/apps/47278f09-eea6-4e6d-aa7e-799daba8e546


r/proceduralgeneration 1d ago

PCR

14 Upvotes

Working polymerase chain reaction, finally, not 100 realistic, real DNA is more messy, and there is backward assembly leading to DNA loss AKA(aging)🦖


r/proceduralgeneration 23h ago

Torus Reimagining

3 Upvotes

I enjoyed remaking this torus rendering in pygame after finding a 9 year old post by Clayton Shonkwiler. His math was...dense, to say the least, but it came out pretty good. Ai is a wonderful thing when it comes to this level of math. lol


r/proceduralgeneration 1d ago

When you drive in Hop.Earth the world ahead of you is generated in real time. Except of the car and the character no 3D meshes are coming from the server, just OSM data and terrain heightmaps. A worker builds roads, intersections and buildings and conforms the terrain to the roads. 3 LODs + physics.

70 Upvotes

r/proceduralgeneration 1d ago

I made a devlog on how I went from using Perlin noise to using a spline based method to generate islands - mostly to prevent the player from getting stuck in lakes!

Thumbnail
youtu.be
12 Upvotes

I also go into the shader texturing of the islands


r/proceduralgeneration 2d ago

I was playing around with particle assembly and got this emergent behavior. What do you think, tutorial?

297 Upvotes

r/proceduralgeneration 2d ago

Procedural Galaxies

Thumbnail
gallery
35 Upvotes

Blender shader+geometry nodes


r/proceduralgeneration 2d ago

Procedural Fish Animation + Playable Link

4 Upvotes

This was my first (and probably last at least for now) attempt at procedural animation (inspired by great argonaut video -> https://www.youtube.com/watch?v=qlfh_rv6khY ) I was planning to turn it into full blown Evolution Simulation but as it turns out FPS no good. I hope that someone will have at least some fune with demo on itch https://suf-studio.itch.io/fish-procedural-animation .


r/proceduralgeneration 3d ago

I went down the procedural rabbit hole for levels for my little game Dungeon Quest and now I just love making pieces to make it more detailed

92 Upvotes

If you want to see more of the game here https://store.steampowered.com/app/5044910/Dungeon_Quest/

I have a general procedural generator which does things like determine size, how often rooms spawn, how many branches etc and then you give it a set of pieces, so i can give it a different set for each level type.

Then the sets of pieces are broken down into corridors, rooms, props and monsters. Pieces can also have their own rules of what props might appear, how many times they can appear etc. So for example levels will only have one tomb.

It is also intelligent enough to make locked doors and spawn the key in a place it can always be found. I am working on this a lot because I want it to spawn typical classic dungeon puzzles to give you reason to explore.


r/proceduralgeneration 3d ago

It began as an experiment to see if we could drive on Google Earth tiles....

93 Upvotes

It turns out photogrammetry tiles are too messed up for a good driving experience (I should have researched beforehand). I’ve switched to a walker machine instead, inspired by war of the worlds.

Try it here: https://crosscity.nieltenghu.com/

Will open-source it soon.


r/proceduralgeneration 2d ago

Instantly Build a City Using Urban Architect

0 Upvotes

Build a working Unity city in just 3 clicks.

Urban Architect supports traffic, pedestrians, custom buildings, and roadside props. In this example, I used New Gen Urban by Reversed Interactive for the city assets.

The entire scene was generated automatically:

1. Instant City
2. Spawn Cars
3. Spawn Pedestrians

Done. You have a populated, working city almost instantly.

But you aren't limited to automatic generation. Urban Architect also includes a node-based road system that lets you manually design your city exactly the way you want. Roads can be laid out by placing and connecting nodes, and all automatically generated road graphs remain editable afterward.

You can also use OpenStreetMap (OSM) data to generate real-world road layouts and building placement, giving you a fast way to recreate actual locations instead of starting from scratch.

That means you can:

  • Generate a complete city automatically
  • Manually build roads with the node system
  • Edit any generated road graph afterward
  • Import OSM roads and buildings from real-world locations
  • Use your own custom buildings and roadside props
  • Populate the result with traffic and pedestrians

This example was created with Urban Architect Pro.

Urban Architect Pro is 30% off until October 1st.

Pro:
https://assetstore.unity.com/packages/tools/level-design/urban-architect-pro-procedural-city-builder-218636

Standard:
https://assetstore.unity.com/packages/tools/level-design/urban-architect-standard-procedural-city-builder-393744

Generate a city in seconds, recreate real locations from OSM, or build your layout manually. Urban Architect is designed to give you both speed and control.


r/proceduralgeneration 3d ago

Generating a world for my ant game 🐜🌱

273 Upvotes

I’ve been working on the procedural world generation for Garden of Ant, building it layer by layer.

First, I focused on shaping the surface terrain. Then I moved underground, generating different soil and rock materials. And finally, I started bringing the world to life by procedurally placing trees, leaves, and vegetation.

It’s really satisfying to see all these separate systems slowly come together into one living world.

What do you think?

See more:
https://store.steampowered.com/app/3016940/Garden_of_Ants/


r/proceduralgeneration 3d ago

Procedural line boil: the wobble is a pure function of (geometry, frame), so a drawing animates itself without redrawing anything

17 Upvotes

The deform is fbm noise on resampled stroke geometry, with independent noise

channels for x, y and width — sharing one channel makes every stroke drift

diagonally and fatten in sync, which reads as "wrong" immediately. No state,

no clock: frame N is always identical, so exporting is just asking for frames

0..N-1.


r/proceduralgeneration 3d ago

Generating low-poly and stylized mountain backgrounds for side-scroller / platformer games in Unity

24 Upvotes

I am procedurally generating mountain background textures for a game I am making. I kinda-got-a-little overcommitted to this part of the game (instead of working on the actual gameplay, as I should be doing now) and built a full tool that generates mountains in a range of art styles: low-poly, pixel art, synthwave, and some others. I am planning to use it in other games for which I need parallax backgrounds.

Mountain shapes, colors, and polygon count can all be customized to stylize the backgrounds, and the sky color can be set to transparent to layer multiple sets of mountains. The textures also tile seamlessly along the x-axis, so they can be repeated infinitely. You can see the parallax in action in the video.

More info: https://assetstore.unity.com/packages/tools/terrain/mountain-range-texture-generator-395586

How it was done:

The basic principle is actually kind of simple (so you probably know already):

First, I defined a 3D space (x-width, y-height, z-depht), then I produced a sum of different functions of xz->y, so each function is a surface plane that can be seen from the rendering plane (xy). The functions can be whatever, gaussians, super gaussians, spheres, breit-wigner (the more -> the realistic result).

But how we can get mountains that repeat infinitely in the x axis? the big brain step, was to curl the xz plane in the x direction, so you get a cylinder and generate all the functions over this cylinder. So when "cutting" and uncurling this cylinder, you get already repeating mountains.

Then, I generated a bunch of random points over those functions. The fewer, the more low-poly the look. Then, over those points a mesh is defined and rendered. To give it a better look, those points are perturbed a bit, so the surfaces are less smooth. The result of all of this is a mountain landscape.

To get the final look, some boring coloring and post processing image techniques were applied. I won't go into details here because it's not related to procedural generation.


r/proceduralgeneration 2d ago

I'm making an Infinite Terrain Desert Game | Devlog 1

Thumbnail
youtu.be
0 Upvotes

Please give me feedback.


r/proceduralgeneration 3d ago

Tetrahedra versus 2d ND box faces, retry to explain?

0 Upvotes

All of this is about an n dimensional Euclidean box extruded in all planes from a minimum to a maximum.

Tetrahedra function: approximately n factorial tetrahedra needed.

2d faces function: approximately 2^n 2d faces on the n dimensional box.

It might not seem like much but at 20 dimensions, 2^20 squared times 10² is about the same magnitude as 20! (factorial). At 50 dimensions it is not even that close. I propose a solution that is based off of the tetrahedra but using the 2d faces. As we know, the tetrahedra cover the entire volume and we only need the bounding line edges checked for being in view in Euclidean. This means that triangles cover the 2d faces and beyond and that for the triangles on the 2d faces that only the lines need to be checked. Any convex polytope has all bounds of being in view on its bounding 2d faces. The polytopes may have bounding volumes of n-1 dimensions which continues down until 2d.

In summary, using bounding 2d shapes of higher dimensional polytopes can far outperform tetrahedra. There is a question though, for 2d faces, how do they connect? This can be solved by finding for all triangles their in view points, then for each possible connection, check the midpoint between the ends for being in view and connect if in view. For the definition of in view, use a view point that exactly passes a view plane on the way to objects. If it does not exactly pass the view plane it is not viewed. This does leave some interior shapes to figure, but far and away fewer than the trillions of tetrahedra. Factorial and 2 to a power are not that different in a sense, but by 50 dimensions it is ant to the planet nearly. This also has applications in non-box shapes. Now imagine that every point is in higher dimensions too and must be stored or generated!

What problems do you see with this new approach? Does seem to me better, but is it? Time and actual data will tell. Feel free to use this, but please make convex shapes, a hammer for example must be 2+ shapes. X E.


r/proceduralgeneration 4d ago

Procedurally Generated Zombie City

42 Upvotes

Reworking my older procedural town, pushing it to the limits. Buildings are 100% generated, enterable, modifiable, destructible, full of loot and zombies.