Programmatic generation of content (graphics, sounds, level-design,...) using random or pseudo-random processes, usually on the fly.
Questions tagged [procedural-generation]
535 questions
0
votes
1 answer
programmatically assembling paragraphs for descriptions
I have a number of dynamically created pages, each has a number of keywords associated with it. I want to be able to create method that will assemble a little description of each page but I don't want them to all be the same.
I have a pool of…

alexandercannon
- 544
- 5
- 24
0
votes
2 answers
Randomly generated obstacles sometimes placed at the same position
Below code is to generate the random positions for the obstacles. Obstacles are moving from right to left,so i am using its x coordinate to move it in left direction. When obstacles reaches left side of screen it again placed at some random…

pravin
- 454
- 1
- 6
- 19
0
votes
1 answer
Having problems with a 2d terrain generator in Java
For some reason the blocks keep being rendered in the same position. Can anybody help me?
Block[][] chunk = new Block[Chunk.CHUNK_WIDTH_BLOCKS][Chunk.CHUNK_HEIGHT_BLOCKS];
float[][] positions = new…

Domecraft
- 1,645
- 15
- 26
0
votes
1 answer
Dealing with infinite/huge worlds in actionscript 2
How are infinite/huge procedural generated worlds achieved with minimal lag in actionscript 2? In a game like Terraria or Minecraft for example. What would the best way to go about handling huge world like this be?
Obviously looping through every…

Mike Hunter
- 37
- 7
0
votes
1 answer
threeJS procedural plane vertices not aligning
I'm using threeJS combined with a Simplex noise algorithm to generate a tile system of 50x50 planes. At the moment, I'm looping through x+y and adding each plane. I then use the Simplex noise algorithm to calculate the four vertices z position of…

yoshimitsu
- 3
- 3
0
votes
1 answer
Unity3d. Instantiate prefabs before runtime with parameters
I've recently started learning unity3d.
I'd like to procedurally generate some stuff (a forest made of tree prefabs) in the editor and then bake on the lighting. So the stuff needs to be instantiated before runtime.
This article was good for…

Guye Incognito
- 2,726
- 6
- 38
- 72
0
votes
1 answer
Better understanding of Simplex Noise
Well it's needless to say that I've recently found simplex noise. The algorithm for an absolute different amount of possibilities and so on which is great for creating textures, height maps and time-dependent graphics.
I already have the function in…

Jader J Rivera
- 409
- 2
- 7
- 13
0
votes
1 answer
C# Procedural Generation - Check for neighbours
As part of some procedural generation code, I have a function that checks if a cell in a grid has any neighbouring cells.
The grid is a 2D array, if it was printed it would look like this (# = cell and . = empty and the # around the edge is a…

user9993
- 5,833
- 11
- 56
- 117
0
votes
1 answer
Simplex noise displaying incorrectly with BufferedImage
I finally got a working tile-able version of Simplex noise working after much work, but I can't seem to get it to record and display correctly when using a BufferedImage. Whenever I try to create an image, it ends up with bands or rings of black and…

SethSR
- 59
- 4
0
votes
3 answers
How to create side scrollable 2d terrain in unity?
Hi iam trying to build a game in which the skater will skate on the irregular terrain which is 2D and side scrolling. Iam not getting how to instantiate a terrain dynamically and in different shapes along x-axis.. I want to achieve something like…

RakeshChatra
- 105
- 1
- 4
- 9
0
votes
3 answers
artefacts during heightmap generation using plasma style fractal
I've spent a few hours today researching how random terrain generation tends to be done and after reading about the plasma fractal (midpoint displacement and diamond square algo's) I decided to try and have a go at implementing one. My result was…

David Burford
- 791
- 2
- 8
- 17
0
votes
2 answers
Procedurally generated texture for Particle with three.js
My goal is to create a particle system that involve procedurally generated texture for each particle (vertices), but I find it difficult to create a prototype of such particle system that works under both Canvas and WebGL renderer with…

bitinn
- 9,188
- 10
- 38
- 64
0
votes
1 answer
Flash Stage3D: Render/Update procedural textures?
I need to update the texture of a 3D object frequently.
(it is a procedurally generated pattern, so it cannot be cached, it has to be dynamically generated each frame)
What is the fastest way of doing this?
First I thought of updating a bitmapData…

Martin K
- 765
- 1
- 6
- 15
0
votes
1 answer
Generating tileable 2D texture from non-tileable 3D texture
I am working on a library for procedural texture generation (https://github.com/mikera/clisk) which is starting to come together quite nicely.
I'm now trying to work out good ways of producing tileable 2D textures.
One approach that seems plausible…

mikera
- 105,238
- 25
- 256
- 415
-1
votes
1 answer
Unity - Random generation from prefabs
I'm trying to make random generation similar to a game called Spooky's Jumpscare Mansion in Unity but I have no idea how to do that. I want to make a script that randomly selects from a list of rooms and then inserts it into the game and then when…

Smoothbrick578
- 1
- 3