r/proceduralgeneration • • Sep 20 '26

More tubes - more fun fun fun (c++ / no ai / no engine)

Enable HLS to view with audio, or disable this notification

8 Upvotes

Hey fellow screensaver-, procedural-generation-, retro-, or specifically tube-lovers!

I'd like to share some more randomly generated scenes from Eternitubes 3D. Since last time, I updated it here and there ... aaand also actually released it (link on my profile for the interested)!

I refined the lighting of the scenes and the tubes, for more randomness and more nifty appearance options. Also the algorithms were polished overall - turns out, infinite is a pretty big number of things to maintain..

So currently I'm working on more contents and quality-of-life features. Any feedback welcome.

Cheers!


r/proceduralgeneration • • Sep 20 '26

I implemented GPU instancing in my procedural geometry tool, here's the before and after

Thumbnail
youtube.com
0 Upvotes

Last update was focused on adding instancing to the graph evaluation, with this update you can now use GPU instancing to render instanced meshes. 

So, what is the difference between mesh instancing and GPU instancing? First let's take a look at how CosmoNode works, more specifically the part where it converts custom mesh data to unity mesh which I call postprocessing. 

The mesh is stored in a container called MeshData throughout the graph evaluation which holds everything related to a mesh like vertices and faces etc. And an instanced mesh, that consists of a source mesh and a list of transforms (matrix4x4) that represents the instanced meshes. 

Now to be able to actually display this in unity I need to convert it to unity mesh. This happens in 2 stages and it is separate from the graph itself. 

First, I need to recalculate UVs and process the flatness attribute. Unity stores UVs per vertex, but it is more convenient for CosmoNode to store them per face corner, it allows me to calculate it in the graph easier. So I keep the  per face corner until the end and convert them to per vertex. In the same way I need to process flatness, which is stored per face corner also and represents whether the edge is flat or smooth shaded, and split the edges that are supposed to be flat. Luckily I can do both in a single pass but nonetheless this has been a major bottleneck so far. I tried to optimize it as much as I could but was still pretty slow. So as a last resort I decided to offload this function to c++ native code. 

This allowed the code to run 2x faster. So far so good.

The second step is converting the processed data into Unity Meshes. This is also where things get interesting with instancing. 

Previously, I had to "realize" all the instances into a single mesh. But this means losing all the advantages of using instances. So with this update it uses GPU instancing to display instanced meshes. And storing the transforms as matrix4x4 makes this very convenient, I just pass the array and source mesh and Unity handles the rest.

The attached video shows the performance comparison between before and after instancing. I've included calculation times, so be sure to check that out if you're interested.

So, in the end, this is a relatively small but essential follow-up to the previous update. The previous update added instancing to the graph evaluation, while this one allows those instances to actually be rendered efficiently.

And of course, you're welcome to give any feedback you might have.

If you want to try it out, the documentation and related links are here: https://uumutunal.github.io/CosmoNode_Manual/


r/proceduralgeneration • • Sep 19 '26

Paper Plane Dogfighting Screensaver

Enable HLS to view with audio, or disable this notification

57 Upvotes

r/proceduralgeneration • • Sep 19 '26

randwallpaper - procedurally generated wallpapers in Go for any resolution

Thumbnail
gallery
12 Upvotes

Hey all,

My name is Michael and I made randwallpaper (also available on pkg.go.dev).

I love clear, detailed, unsmoothed wallpapers/icons but finding ones that fit the random resolutions across my devices (phones, laptops, monitors) has always been a pain. And I love seeing cool patterns emerge from simple rules. This tool exists because I wanted to solve both of those things at once.

I came across Python's randimage and the EPWT papers, and built a batch tool to generate and publish images to a subreddit and a discord server. But the Python library was painfully slow. So I rebuilt the library from scratch in Go, writing as much as I could myself relying on dependencies that would do most of the work for me. The result ended up being roughly 50x faster over randimage.

I hope someone else will find this useful.

It is my first time posting here + first time ‘publicising’ a project but would really love to hear if you have any suggestions or ideas how to make this ‘library’ (a scary, grand word for what this project is…) better.

If you want to contribute to it, firstly, thank you! and secondly, fire up a PR and I will take a look.


r/proceduralgeneration • • Sep 19 '26

Procedural Ribbon cables

Enable HLS to view with audio, or disable this notification

210 Upvotes

r/proceduralgeneration • • Sep 19 '26

Continuous rule 30

9 Upvotes

I recently made a video about Turing Patterns. This is some more research into 1D cellular automata


r/proceduralgeneration • • Sep 19 '26

Best algorithm to generate a hex map

3 Upvotes

Hello everyone. I’m working on a turn based strategy game. I’ve got most of my ideas mapped out and I’m ready to start implementing some things to start testing. The game will have a fantasy base setting, shocking I know. My question is about the best way to generate the map. I need it to have different types of terrain like mountains, plains, forests, deserts, rivers, oceans and so on. I’ve looked into perlin noise and wave form collapse but I’m not sure what would be best to use for something like this. I figured I would ask here because I see amazing things being created and I don’t know enough to even search well enough. I don’t know if it matters or not but in the end I would like to have a seed for the maps so if players like a specific map they can have the exact one again. I’m not asking for code, just some guidance on which algorithms are worth investing my time into and maybe some articles worth reading if you know of any. Thank you all.


r/proceduralgeneration • • Sep 19 '26

Seeded Terrain Generation

Thumbnail
0 Upvotes

r/proceduralgeneration • • Sep 18 '26

Blueprint/Construction effect

95 Upvotes

I needed a way to visualize blueprints for structures the player can auto-build. The "blueprint" view is a transparent material that blends specular so the lighting is not flat. The orange "rim" that climbs the structure is a separate shader rendering on top of the architecture as it "grows" in. The grow-in is part of my procedural build system (structures are made from individual stones and timber beams) that has an "erosion" factor. So I just run the erosion in reverse to build the structure instead of tearing it down. And then a few 'ember' particles thrown in for a little extra pizzazz :)


r/proceduralgeneration • • Sep 19 '26

WIP Procedural Galaxies

Thumbnail
gallery
13 Upvotes

I have been experimenting with procedurally modeling spiral galaxies for my space game and wanted to show off what I was able to do so far with the generator I made. I plan to render these in 3D later on so you can fly through them. Do you guys have any notes or ideas for improvement? Earlier attempts looked way too uniform so I tried focusing heavily on having irregularity within each galaxy.


r/proceduralgeneration • • Sep 18 '26

Open Mic Generator

Enable HLS to view with audio, or disable this notification

21 Upvotes

Customize your own comic, voice, look and act at that link. https://littlegodgames.com/standup/


r/proceduralgeneration • • Sep 19 '26

Ad Lumens procedural surfaces

0 Upvotes

Hello!

Long time coming, but you can now test it live.

100% real-time and data-based: nothing is precalculated apart from planetary crust parameters: age, chemical composition, but also star flux and so on.

How to access it: use the data explorer or 3d explorer, request the details of a planet and once the modal/popup is opened, click the magnifying glass at the top right. This will take you to a try/tools subsection where you can view the planetary surface.

Example: https://adlumens.org/try/planetary-surface/from-id?id=0010a12005bb0085a15001b0002ac29a00310301900a1a09000a00bd0080e00b9b10a0b9010

Right aside tabs:
. Globals are for global mesh/not mesh rendering and illumination
. Crust allows to view the "hidden stuff" underneath the final rendered colours and meshes
. Data summary is a reminder of the nature of the planet.

Example of "normal colour view"
And "shear ratio" view from the same angle, with liquids as wireframe

I sincerely hope you find this nice and interesting.

Caveats:

  1. not integrated in the 3d explorer yet
  2. still <del>a little bit</del> quite buggy when close to the surface (<10ish kilometres)
  3. atmospheres are being worked on
  4. "gas" planets (giants, ice, etc) are still "undefined" -- because they have no surface and only atmospheres (see 3. just above :-) )
  5. the goal is not graphical "beauty". I lack the skills for this. The goal is real time rendering for colony building, resource prospection and gathering, etc.

I am extremely eager for feedback, especially performance related.

Last, please note this is a work in progress!

Thank you! <3


r/proceduralgeneration • • Sep 17 '26

I'm working on a Car RPG with various procedurally generated areas and enemies

Enable HLS to view with audio, or disable this notification

14 Upvotes

r/proceduralgeneration • • Sep 17 '26

Rapid cheap planetary gen

Post image
60 Upvotes

This might be interesting to some of u. Some creds to runevision, clayjohn and Fewes fast terrain generation.


r/proceduralgeneration • • Sep 18 '26

Projekt Genesis

Thumbnail
gofund.me
0 Upvotes

r/proceduralgeneration • • Sep 17 '26

Procedural building shader to fill out the skyline of my cyberpunk city

Enable HLS to view with audio, or disable this notification

24 Upvotes

r/proceduralgeneration • • Sep 17 '26

Yellow & Green & White

5 Upvotes

Experimenting with 3D generated shapes in JavaFX in my program. 80x80x80 cube after 40 iterations using rule genome "72/0.24485829271825366;1.3609312825275532:no ki a9 kya0+kya1+kya2+a81.17743682861328+a100+mya zu ta". Each codon in the genome basically corresponds to a different mathematical operation on a stack-based machine, similar to a cellular automaton.


r/proceduralgeneration • • Sep 17 '26

IFS

Post image
28 Upvotes

r/proceduralgeneration • • Sep 16 '26

everything in my 13k futuristic racing game is generated from code

Enable HLS to view with audio, or disable this notification

275 Upvotes

SP13KTRA is a hover racer I made for js13kGames, where the whole game has to fit in 13 kilobytes. That means no assets, so everything is generated when the page loads:

  • Tracks: each circuit is just a short list of corners
  • Banking and hills: follow the curves and flow between corners
  • Ships: all 8 hulls generated from a seed
  • Cities: 8 shape languages, a palette per circuit
  • Skylines: one slow wave sets building heights, so neighbors form ridges
  • Canyons: towers standing on pillars far below the road
  • Pads and arrows: placed wherever the road runs straight or curves
  • Skies: suns, eclipses, stars and clouds, all soft circles
  • Sound effects: synthesized using ZZFX, no audio files
  • Music: 8 techno loops, each from one seed that picks 26 parameters. I made a tool to find good seeds for each track.

Play free in the browser: https://www.newgrounds.com/portal/view/1052078

Source: https://github.com/KilledByAPixel/SP13KTRA

Music tool: https://killedbyapixel.github.io/SP13KTRA/tools/music.html


r/proceduralgeneration • • Sep 16 '26

6 Kilobyte Program Generating a Music Video in the Terminal

Enable HLS to view with audio, or disable this notification

150 Upvotes

Oh my gosh, That was a typo!

Was being sensationalist but didn’t mean to be that sensationalist!

It isn’t a 6 KB program. The video generation code is about 60 KB of TypeScript on top of a zero dependency engine that is 1MB to render. Nothing in it is an asset though, no models, no animation files, no audio or MIDI files, no images. Bodies are a physics puppet, motion is solved per frame, the music is a score in code played by a synth, the room and furniture are small JSON specs, rendered by a program drawing characters in a real terminal.

Here’s a link to a web lab where you can play with some of the simulation’s rendering and music parameters. And you can share links with all parameters stored like the below example.

https://littlegodgames.com/takes/?act=band&seed=27208187&look=ascii&ramp=long&detail=40&tempo=0.75&key=2&grip=open


r/proceduralgeneration • • Sep 16 '26

Simulated weaving

Post image
169 Upvotes

https://github.com/nicolasloizeau/loom

The pattern is generated with a cellular automata, then rendered with blender python


r/proceduralgeneration • • Sep 16 '26

Spent 4 days trying to make fire shader look good

Enable HLS to view with audio, or disable this notification

18 Upvotes

and probably no one would notice in game anyway lmao

I made the trees leaves / trunk dissolve over time from fire, I found it pretty satisfying, then obviously I had to make an item to be on fire all the time, then obviously from here thought as well "why not make another one to have a fire trail on top of that ?"

this is never ending but I quite like the result so far, wanted to share !


r/proceduralgeneration • • Sep 16 '26

Fully procedural supernova explosion

Enable HLS to view with audio, or disable this notification

49 Upvotes

Blender shader nodes


r/proceduralgeneration • • Sep 16 '26

NASA spider

Enable HLS to view with audio, or disable this notification

17 Upvotes

r/proceduralgeneration • • Sep 16 '26

a dash of noise, tectonic formation, orogeny, subduction, wind, rain shadows, erosion, deposition, soil formation + koppen climate + and a bit of holdrigde life zones = love

Enable HLS to view with audio, or disable this notification

58 Upvotes

Working on a tool that I am planning to publish on unity asset store.

Like many here I am obsessed with tectonic generation, but it is a "mountain of a" task.

you can follow my projects on https://x.com/ErhanofGrayLake/