Programmatic generation of content (graphics, sounds, level-design,...) using random or pseudo-random processes, usually on the fly.
Questions tagged [procedural-generation]
535 questions
2
votes
1 answer
What are the potential problems with this multithreaded procedural generation algorithm?
I know this is game design related, but I have read the StackOverflow FAQ and it states software algorithm questions can be asked here. If this is better off in game design then I hope someone can help me move it, thanks!
I am designing a…
user427390
2
votes
0 answers
Procedural generation using Unity's terrain system?
I'm having trouble figuring out how why this script won't generate chunks seamlessly next to each over based on a Perlin noise
I am quite new to procedural generation but not new to Unity and C#.
I have made this script here, It will generate chunks…

TyNAnd
- 21
- 2
2
votes
0 answers
How to smoothly interpolate colors in a Voronoi diagram to remove cell borders?
I am trying to create a Voronoi diagram where the color of each cell smoothly interpolates between the colors of its nearest control points. Currently, there are visible borders between the cells in the diagram. How can I get rid of these borders…

Memory1
- 67
- 1
- 1
- 8
2
votes
0 answers
How do I get rid of seams in my procedural asteroid generator?
I am coding a procedural asteroid generator in Unity using a custom mesh.
The main idea is taken from this YouTube series, where you basically create your own cube with six evenly sub-divided sites, then normalize the vertices and apply a noise…

Johannes R.
- 41
- 4
2
votes
0 answers
hash function for a set of 2d curves
I am looking for some spatial hashing algorithms that can hash a list of 2d curves (bezier splines) and have following properties:
Tolerance: since control points are expressed in float3 (where z is always 0), I need some kind of threshold to…

bitinn
- 9,188
- 10
- 38
- 64
2
votes
0 answers
Godot: Rendering Terrain In Separate Thread Slower Than Main Thread?
I'll admit, I'm new to multithreading and I was hoping to dabble in it with my C++ project first but I've hit a snag in my Godot game project where rendering the terrain gave me a small lag spike every time new terrain was generated so I wanted to…

Artur S.
- 25
- 7
2
votes
1 answer
How to constuct complex mesh from premade list of vertices?
I am trying to create a procedual dungeon generator.
I have the floor working perfectly and have created a list of edge vertices for the walls.
I duplicate the edge vertices and raise them up by the wall height and now I want to fill in the vertices…

Lyraedan
- 41
- 1
- 6
2
votes
1 answer
What is the best approach to make procedural world generation in three.js?
I have the function CreateChunk(x,z) that creates a "chunk" of terrain in the specified coordinates x and z that is a plane, whose vertex heights are modified with Perlin noise and then painted based on their height (a layer of water is added too)…

alon
- 50
- 7
2
votes
1 answer
How can I rotate a square to minimize the distance between each point and four arbitrary points?
I have been trying to follow this article:
https://andersource.dev/2020/11/06/organic-grid.html
Specifically, the appendix. But my understanding of calculus and its notation is limited.
So I tried also to understand and adapt/rewrite the source…

marcusround
- 75
- 6
2
votes
1 answer
How to create a Save / Load system for Unity Tilemaps?
I am making a game that procedurally generates a level and sets tiles via Tilemap.SetTile().
I've been reading and watching tutorials about saving in unity and from what I understand I need to serialize data so it can be saved in a binary file.…

caleidon
- 239
- 4
- 13
2
votes
1 answer
How to fill out a procedurally generated mesh with quads of varying sizes?
I'm generating meshes based of color coded areas on an image.
In the following picture, the semi-transparent image is a representation of what a color coded section might look like, with the black dots being natural 2d vertex…

Vosheck
- 29
- 5
2
votes
0 answers
Calulating The derivative of an fbm function and applying
I'm creating a 2D mesh based off of an fbm function in unity. I know a good thing to implement is using the derivative of the function to smooth the side of steeper mountains and hills accordingly for more realistic effects.
My question is given my…

Alexander Waters
- 73
- 5
2
votes
0 answers
generate procedural floating island in unity
I want make simple lowpoly procedural generation floating island in unity,like this:
So I decided to make a simple sphere then I flattened the top and randomly generated the bottom noise but several times I tried I did not get the results I wanted,…

good112233
- 144
- 1
- 10
2
votes
1 answer
2D procedural dungeon generation game
I am currently messing around with a procedural 2D game in unity. Below are the scripts i am using to generate the dungeon and wanted to know if there was anyway of specifying a standard starting room. I have prefab room built but would like to have…

the ghost
- 31
- 1
2
votes
1 answer
How can I take an algorithm that works very well in a 2D space and adapt it for 3D environments?
I liked the technique Spelunky used to generate the levels in the game, and I want to adapt it for a 3D space, so that I can use it to help me design something in that 3D space. I'm just not sure how to approach this kind of problem. I feel like a…

chexo3
- 33
- 6