Questions tagged [procedural-generation]

Programmatic generation of content (graphics, sounds, level-design,...) using random or pseudo-random processes, usually on the fly.

535 questions
0
votes
2 answers

How to generate a key for a procedurally generated map using diamond-square algorithm?

I don't know if key is the right word for this but I implemented a version of the Diamond-Square algorithm and I was wondering if there is any way to "save" the current output and recreate it using a simple (6 to 10 characters) key. The only way I…
AntoineO
  • 3
  • 5
0
votes
1 answer

Diamond-Square algorithm: How do I determine what tiles I need to run a diamond function and what tiles I need to run a square function on?

I'm working on a diamond-square heightmap generator and I've been stuck on a certain part for a while now. I'm having trouble determining which tiles I need to run a square() function on and which tiles I need to run a diamond() function on. I took…
user8431577
0
votes
3 answers

How to manage 2D data in a procedural game world

I’m building a Starflight-inspired 2D space exploration game with a procedural world. The gameplay is divided into different « scenes » (to use Godot terminology) to manage the different « depths » of the game. For example, interstellar flight is…
0
votes
0 answers

Create random pattern gradient maps?

So I have been working on some procedural generating and i managed to create a circular monochrome gradient map which i use to generate other maps. def create_circular_gradient(self, world): center_x, center_y = self.mapSize[1] // 2,…
Nick
  • 545
  • 12
  • 31
0
votes
0 answers

Prevent Array List Overlap?

I am creating a Binding of Isaac-esque Roguelike that is generated using an Array List using four Booleans. The four Booleans being North, East, South, and West. Corresponding to which doors is open. The problem with Array Lists is that it can…
224634
  • 11
  • 5
0
votes
0 answers

Three.js scene on remote server shows up differently than scene on local server

I have a Three.js scene set up in a git repository on my computer, which I run with a local python server in the mac terminal when I'm developing it, before pushing it to my github repository. As of now, my github repository code is identical to my…
0
votes
1 answer

Procedural texture uv error

I am creating a game with procedural generated plane and uv, it works mostly fine, but there is one place where the uv seems distorted in a very confusing way. Intro: the uv is mapped in a "Global" uv coordinates, instead of a local one, because the…
0
votes
2 answers

Translating Brute-Force Voronoi Diagram into Python from Javascript Example

I'm trying to translate code that generates a Voronoi Diagram from Javascript into Python. This is a struggle because I don't know Javascript. I think I can sort-of make it out, but I'm still running into issues with things I don't understand.…
LuminousNutria
  • 1,883
  • 2
  • 18
  • 44
0
votes
0 answers

What are the applications(uses) of Procedurally Generated Graphics other than video games?

I understand that procedural graphics are widely used in video games and in the film industry to rapidly develop virtual worlds and randomizing various content within the game. Other than the game and film industry, does it have any application(use)…
Shreyas Yakhob
  • 321
  • 1
  • 3
  • 15
0
votes
1 answer

Voxel circles using a noise function

I'm creating a 2D space game where the map is made up of square tiles. I would like a noise function that I can use to generate circular planet, by circular planets I mean 'circles' made out of squares (basically like a circle in Minecraft). The…
0
votes
1 answer

Generating eroded mountain terrain in a local / 'bottom-up' way

I'm picturing a typical random polygon hillside with ridges that come together into bigger ridges as you ascend and canyons that come together into bigger canyons as you descend. The way you normally make something like this is to start with the top…
blerg
  • 159
  • 3
  • 10
0
votes
0 answers

An error in my while loop that does not always show

I am trying to make a random map generator. The map is 24x24. The error does not always show. When it does show it is in the "Do/While" loop at the end of the function. Specifically in the "while" line. function randKeyRoomsLoc(tempMap, dir,…
0
votes
0 answers

Diamond Square Algorithm Python

I'm in the process of creating a DS algorithm in python but I believe I'm having trouble correctly populating the Matrix. I'm getting 0's in every-other index. My code is as follows and a sample output is provided after. I'm using this to generate…
Infiniti
  • 339
  • 1
  • 2
  • 7
0
votes
1 answer

how can I get the cell membranes for a 3D voronoï?

To be able to do biome transitions in procedural generation, I need to know when chosen coordinates (x, y, z) are within a distance d of an other cell. I can make a simple 3D voronoï by placing cell cores in a volume and then for each given (x, y,…
0
votes
1 answer

applying noise to voronoï for procedural generation

I know how to generate a Voronoï / cell noise such as this one using Delaunay Triangles : But how do I apply noise to the lines to make them more natural ? I cannot have sharp edges for procedural generation as it would look very out of place and…