r/proceduralgeneration • • 1h ago

How I fit a 3D game into 1KB of JavaScript

14 Upvotes

Skydreams is my endless 3D arcade game that won first place in JS1024 2026. The whole game is only 1019 bytes of JavaScript. No WebGL or libraries, just the 2D canvas.

I made a video that builds it up step by step: the 3D projection, the curving road, the track generator, the physics, and the tricks it took to pack it under 1KB. Hope you enjoy, thanks!

đŸ•č Play Skydreams: https://killedbyapixel.github.io/TinyCode/1K/Skydreams/
đŸ’Ÿ More size code experiments: https://github.com/KilledByAPixel/TinyCode
🏆 Official entry on JS1024: https://js1024.fun/demos/2026/25/bar


r/proceduralgeneration • • 7h ago

Organic 3D growth experiments (procedural generation)

Thumbnail
gallery
23 Upvotes

r/proceduralgeneration • • 12h ago

Explorable O'Neill Cylinder 3D worldspace using 100% code only, no models or assets

49 Upvotes

r/proceduralgeneration • • 17h ago

My procedural generator now generates rooms using parsing

56 Upvotes

The Labyrinth, a procedural generator that I've been working on for a bit over 2 years, pre-places Blueprints, 1x1 cells that occupy space and mark where rooms will go. Blueprint patterns are defined by the developer and use multiple techniques such as Delaunay Triangulation, pathfinding, and Drunkard's Walk.

A second pass, I call ParseGen, fits room shapes onto blueprint patterns using a parser modeled after recursive descent, an algorithm common in compilers. Essentially the algorithm can generate any room shape desired with little cost to efficiency.

Blog: https://ryancarpenterpf.dev/blog/parse-gen-blog/

I plan to release this tool as an asset on Unity's Asset Store in Q1 of 2027, along with a free version on GitHub. The Asset Store version will get ongoing updates and support.


r/proceduralgeneration • • 6m ago

Mandelheart: Fleshy, interactive mandelbulb

2 Upvotes

It's a bit of a GPU workout: https://moea.github.io/mandelheart/


r/proceduralgeneration • • 13m ago

Procedurally Generated Touge

3 Upvotes

The touge is entirely procedurally generated using Unity splines, pooling system and realtime mesh generation.


r/proceduralgeneration • • 22h ago

I got frustrated gluing separate Unity terrain, ocean, and cloud systems together, so I spent 6 months building a unified planet renderer

98 Upvotes

r/proceduralgeneration • • 1d ago

Lasers, mirrors, and glass

147 Upvotes

r/proceduralgeneration • • 1h ago

Environnements procĂ©duraux, villes et intĂ©rieurs entiĂšrement explorables – DĂ©veloppement prĂ©liminaire

0 Upvotes

I'm currently working on a procedural environment generation system in Godot, including natural landscapes, cities and buildings with fully explorable interiors.

Everything is still very basic. This is a very early development stage, mainly focused on procedural generation and making everything work together.

I'd love to hear your thoughts, suggestions or constructive criticism. Especially regarding technical approaches, procedural techniques, visual direction and overall aesthetics.

I'm still exploring the possibilities and trying to figure out the best direction to take the project.

Thanks for any feedback!


r/proceduralgeneration • • 1h ago

Procedural environments, cities and fully explorable interiors – Early development

Enable HLS to view with audio, or disable this notification

0 Upvotes

Procedural environments, cities and fully explorable interiors – Early development

I'm currently working on a procedural environment generation system in Godot, including natural landscapes, cities and buildings with fully explorable interiors.

Everything is still very basic. This is a very early development stage, mainly focused on procedural generation and making everything work together.

I'd love to hear your thoughts, suggestions or constructive criticism. Especially regarding technical approaches, procedural techniques, visual direction and overall aesthetics.

I'm still exploring the possibilities and trying to figure out the best direction to take the project.

Thanks for any feedback!

(Captured on mobile phone)


r/proceduralgeneration • • 15h ago

Terrains from real data: 2m lidar terrain with the roads cut and filled into it.

Thumbnail
gallery
12 Upvotes

The ground is USGS 3DEP elevation, about 2 m per vertex, and the roads are straight from OpenStreetMap. The procedural work is fitting the two together: each road carries its own smoothed height profile, the terrain under it gets cut and filled to match, and at junctions I blend the flat zones, nearest road winning when the heights are far apart and averaging when they're close. Bridges were the fun problem, since lidar keeps the embankment as "ground", so I read the terrain beside the road and call it a deck when the ground falls away on both sides.

Unreal plugin, Terrain Sampler, US only so far. Link's in the comments.


r/proceduralgeneration • • 6h ago

I added Orbital mode as an easter egg to my procedural coastline simulation, also reflections

1 Upvotes

r/proceduralgeneration • • 1d ago

Procedurally Generating a Coherent World for a Civ-like Game

Thumbnail
gallery
26 Upvotes

Hello, everyone!

I’ve been working for two weeks on procedurally generating a coherent world for the next game I’m developing with my girlfriend. And today I’d like to share my progress with you and, if possible, get some advice from you on how to proceed!

Example of a World I Generated

My basic idea is to generate textures using Unreal’s materials, specifically the vector Perlin noise function. This allows me to achieve a result that’s both truly random and quite organic:

Vector Perlin Noise

Another advantage of this method is that it allows you to generate a spherical world, enabling players to “travel around the world.” To do this, simply pass the textures coordinates of the spherical as input to the vector Perlin noise function:

Texture coordinate to spherical absolute location

Generated texture

The final advantage of this method is that it allows you to generate the same world for the same position if you add the object's position to the result. This makes it possible to simulate "seed" in the random generation process.

The idea is then to generate several textures: one for elevation, one for humidity, and one for temperature. And to process each pixel using a set of rules to create the appropriate, corresponding tile.

For the height, I want to generate deep water, shallow water, plains, valleys, and mountains. To do this, I modify my material to set up height tiers corresponding to the various desired heights:

Height map material modification

For the humidity texture, I use the same approach, but this time I create only two layers: one for the grasslands and one for the forests:

Humidity texture

As for temperature, I generate three levels: one for ice, one for desert, and one for temperate zones. The difference is that I use the distance from the equator to influence the result:

Temperature material

Temperature texture

Now that the three textures have been generated, all that's left is to generate the corresponding tile for each pixel based on a set of rules:

Rules

I'm pretty happy with the result, but I still have a lot of work to do:

- Generate strategic resources in logical locations (for example, oil can be found in the desert, in ice, and in the ocean).

- Generate rivers. If you have any ideas, I’d love to hear them! I thought about using local minima from my heightmap, but I’m really not sure if that’s a good idea.

- Generate viable and balanced starting positions: make sure players aren’t surrounded by mountains, aren’t on an island that’s too narrow, have a reasonable number of strategic resources, etc. If any of you have already tackled this issue, that would be great because it doesn’t seem straightforward to me.

An other generated world

Thanks for reading! Please don't hesitate if you have any questions or would like more details!


r/proceduralgeneration • • 10h ago

One parametric fish model drawn at 16, 32 and 48 px: what each size buys (89, 325 and 688 pixels)

Post image
1 Upvotes

All 130 fish in our fishing pack come from one side-view fish model. Nothing in it is stored as pixels, so the same code draws any grid size. The picture is a perch at 16, 32 and 48 px, each scaled to the same 96 px tile (6x, 3x and 2x, which is what a 1080p screen does to 320x180, 640x360 and 960x540 games).

How the model works:

  • A fish lives in body coordinates. u runs along the body from the tail base (0) to the snout (1), the tail fin is u < 0, and v is the height above the midline, both measured in body lengths.
  • Every mask (body, fins, patterns, eye) is a function of (u, v). Rendering at n px is just mapping each pixel to (u, v), so the grid size is a free parameter.
  • The body's height along u is one curve with a few numbers per species: where it's deepest, how thin the tail stalk gets, how fast it rises and the nose shape. A species is a small parameter dict on top of that: tail type, fin positions and shapes, eye size, patterns.
  • A swim frame only changes the pixel to (u, v) mapping: the rear of the body waves a little and the tail fin foreshortens as it sweeps. Facing left mirrors the mapping, not the picture, so the light stays at the top left.
  • Pixels come from supersampled shapes, dome shading on 5-tone ramps and one outline.

What the extra resolution buys, counted on the perch:

  • 16 px: 89 pixels, 21 colours. A striped shape with a tail and no room for an eye.
  • 32 px: 325 pixels, 30 colours. The eye, the stripes and the orange fins all read.
  • 48 px: 688 pixels, 34 colours. The spines of the back fin get pixels of their own.

That's 3.7x and then 7.7x the pixels of the 16 px fish, close to the 4x and 9x of the tile areas. The second picture is five more species from the same model at the three sizes.

(I make pixel-art tools and packs at Gridwright. The calculator I use to pair a tile size with a game resolution is linked below.)

The calculator that pairs a tile size with a game resolution and shows the scale and black bars from 720p to 4K: https://gridwright.dev/tools/pixel-art-size-calculator/?ref=reddit-proceduralgeneration


r/proceduralgeneration • • 3h 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 • • 20h ago

Entirely procedural ARPG end to end

3 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 • • 21h ago

Spherical polyhedron with pyramids

2 Upvotes

r/proceduralgeneration • • 2d ago Bravo

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

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

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

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

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

Thumbnail
gallery
2 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 • • 12h ago

Micro forest interactive world using 100% code

0 Upvotes

r/proceduralgeneration • • 1d ago Bravo

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

Thumbnail
youtube.com
33 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 • • 1d ago

Mossy Stone Wall

Thumbnail
gallery
11 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 • • 22h 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