2022 Developer Survey is open! Take survey.

Questions tagged [procedural-generation]

Procedural generation is the construction of content based on algorithms and calculations rather than by hand.

Filter by
Sorted by
Tagged with
0 votes
2 answers
68 views

How to support run-time shader modification/code execution?

I would like to create an educational game, part of which involves allowing the user to modify code for procedurally generating geometry on the CPU and modify shader code and see the changes they make ...
user avatar
  • 101
8 votes
0 answers
146 views

How can I fit a tree graph into a grid?

I have a tree graph that I'd like to fit into a grid, the result being a grid-based maze that adheres to the tree graph. Are there any good maze algorithms that are able to start with a known ...
user avatar
  • 591
1 vote
1 answer
64 views

How to generate boards for a game like GamePigeon's Word Hunt?

Naively, I would assume that there's an even probability of any of the 26 given letters appearing in a tile and that each tile is generated independently. After playing around a hundred times, though, ...
user avatar
1 vote
1 answer
29 views

Updating chunk borders when generating new chunks

I am making an infinite voxel terrain that generates around the player. The blue boxes are the chunks that are currently loaded and the white ones are unloaded. When building the mesh for a chunk I ...
user avatar
  • 31
-1 votes
1 answer
42 views

Using perlin noise as a procedural voxel heightmap without a texture atlas in Unity

I was creating a heightmap for my procedural voxel world in Unity using 2D perlin noise. I don't want to use anything from a texture atlas, a brown Unity material is good enough for me. The issue is ...
user avatar
0 votes
0 answers
24 views

Pix2Pix implementation in URP

I wanted to implement this project (generating image with deep learning algorithm) in an URP project as a PostProcessing Effect. I did use ScriptableRenderPass, which sound like the correct way to do ...
user avatar
  • 53
2 votes
2 answers
76 views

Understanding use of "localUp" in planet mesh generation code

I'm following a tutorial on YouTube about procedural generation of planets. I'm puzzled in some aspects of the code shown. If any of you could explain the following points, I would be very pleased. ...
user avatar
0 votes
2 answers
49 views

How to check multiple rings of tiles around a center tile on a 2D grid

In my game project I create the terrain programmatically by creating tiles on a 2D grid as the player moves around the game map. I have it working where I select the current tile and check all 8 ...
user avatar
  • 145
1 vote
1 answer
46 views

UE4: How to make UProceduralMeshComponent a solid body, not just a surface around volume?

I generated the UProceduralMeshComponent and set collision enabled to ECollisionEnabled::QueryOnly. But I get ActorEndOverlapEvent if I stop touching the mesh border even if I still inside of mesh ...
user avatar
  • 231
0 votes
1 answer
62 views

How to write Perlin Noise to a vector in Rust?

Tell me if i need to be more specific. My program is advanced enough that it can read tile data from a .txt file and display a tile image for each tile ('~' = water), I am trying to make my game use a ...
user avatar
0 votes
0 answers
74 views

Generating a tilemap and A* grid in unity but they aren't updating correctly

So question is: Why is the unity editor behaving this way (not updating the tilemaps until I go though the scene and click on them) and why is A* not generating the proper grid when Scan() is called ...
user avatar
  • 153
1 vote
1 answer
63 views

How to make a code-generated mesh interact with a rigidbody?

I'm using a sphere and an empty game object that generates a mesh upon playing/starting. On the mesh, I place a Mesh Collider component with ...
user avatar
0 votes
1 answer
57 views

Finding where ground is in procedurally generated terrain

Terrain in my voxel game is generated by combining 2d and 3d perlin noise. if (y < (noise2d(x, z) + noise3d(x, y, z)) * amplitude) { // place block } To ...
user avatar
0 votes
1 answer
113 views

Interpolate colors between vertex in a plane

So I have this plane generated with two different Perlin noises. It has mainly 3 regions, divided by color. I want to smooth out the lines, to create a "gradient" so there are no abrupt ...
user avatar
  • 5
2 votes
1 answer
95 views

Best Practice for Procedural Generation and Code Updates

I am using an initial seed to generate data. The question I have though is what is the best way to mantain the information with code updates. For example if I have something similar to: ...
user avatar
  • 121
0 votes
1 answer
166 views

Assign biomes to areas with a Voronoi noise function

I've created this terrain based on a Voronoi noise function: This is how it looks without the elevation: I want to assign biomes to the polygons following certain rules and use the slope on the ...
user avatar
  • 5
0 votes
0 answers
39 views

How should I modify my terrain according to the biome? [duplicate]

I have this terrain I generated using Perlin Noise layers whose colors are applied based on the height of the vertex, just for reference before I am done being clear about how I will implement the ...
user avatar
  • 5
1 vote
0 answers
37 views

How to make a cloudy looking planet?

In my game you navigate in space and you can come across planets. You can approach the planet and then land on it. At first I wanted the planets to be spheres, but then I realised how unpractical this ...
user avatar
1 vote
0 answers
63 views

I need an algorithm to build roads

I'm building a game (with TIC-80) for my 4yo daughter. Aim of the game collecting some items from the shops and delivering them to houses. I've built some levels by hand but I think that a need to ...
user avatar
0 votes
0 answers
67 views

How can I implement procedural generation with an undetermined amount of types of terrain?

I'm trying to create a very modifiable game starting with terrain in the form of a tilemap. Any type of tile can be removed, modified, or created by the user. The problem is that I can't find a way to ...
user avatar
5 votes
2 answers
135 views

2D topdown generating stairs (access) to generated hill

I'm doing 2d topdown procedurally generated world. I'm generating perlin height values, and when certain value is crossed I'm generating one level higher, while edging biomes creates cliff of the ...
user avatar
0 votes
1 answer
246 views

How to handle octave & frequency in the Perlin noise algorithm?

I would like to implement a Perlin noise algorithm into my MonoGame project in order to procedurally generate 2D terrain. I've been using engines in the past (Godot, mostly) where there was an API to ...
user avatar
  • 103
0 votes
0 answers
346 views

Unity - how Default Line material can be applied to line constructed using code, without using inpector to pass default material?

I have scene with camera, light source and empty object with an attached script. I generate red line but its material is never set. Ho can I set, in script, its material as Default-Line? Without this ...
user avatar
1 vote
0 answers
23 views

Splitting the mesh of a plane into submeshes

I am struggling a bit with this. I am trying to split a plane recursively into subplanes, so that frustum culling is more efficient. I am doing that by dividing the indices into the 4 subplanes for ...
user avatar
0 votes
0 answers
43 views

How to manage huge number of vegetation positions across the world

How to manage positions of huge number of vegetation (grass in particular) in games? Do the positions have to be memorized or do they have to be generated on the fly? If so, can the grass always have ...
user avatar
0 votes
0 answers
44 views

Unreal Engine - Looping Procedural Mesh Terrain

We are building a procedural voxel terrain based game and have been doing really well. However we have hit a challenge that we have half the solution for. We need to figure out how to loop the terrain ...
user avatar
0 votes
1 answer
70 views

Check if a procedurally generated maze built out of cubes is solvable

I have created a procedural level generator in unity. However, occasionally the algorithm creates a level that is impossible to solve. Therefore, I tried to implement a navmesh agent to check if it is ...
user avatar
3 votes
2 answers
191 views

Should in-game events (raids) be announced?

Many survival games such as Rimworld will announce when significant events happen in-game. For example, when a raid, a disaster or a significant event occurs, the game will send a notification and ...
user avatar
1 vote
1 answer
121 views

How do I carve rooms and corridors into my map to connect exits placed at the edges?

I'm creating an adventure/RPG top down game where the map is randomly generated divided into zones. A major problem I'm having trouble figuring out is creating exits placed at the edges. The game is ...
user avatar
0 votes
0 answers
71 views

How do I generate random worlds like Yoda Stories and Indiana Jones? [duplicate]

Hello I'm working on an adventure/RPG in C with solvable puzzles in the vein of Indiana Jones and His Desktop Adventures and Yoda Stories. I'm trying to generate a random world from maps pre-made in ...
user avatar
1 vote
1 answer
151 views

Generating consistent terrain chunks with unpredictable per-chunk seeds

I am working on an automatically generated (theoretically) infinite 2D world. The grid would be separated in chunks made of thousands of world tiles. We plan to use a Perlin noise function to generate ...
user avatar
  • 113
6 votes
3 answers
2k views

How does Terraria generate such large worlds initially?

I understand how large worlds can be rendered and drawn efficiently by splitting things into chunks, but as I understand it Terraria generates the entire world when you first create it. The largest ...
user avatar
0 votes
0 answers
77 views

Performant way to generate a cylindrical mesh along a dynamic spline

I am working on a mobile game, in which I am tiling a cylindrical mesh along a dynamic spline. The points of the spline are changing each frame, so the vertex positions and normals of the tiled mesh ...
user avatar
0 votes
1 answer
83 views

Find Largest Room in 2d World

I'm currently working on a generated(Perlin Noise) 2D Cave System with Unity. The Caves currently look like this: What I want to do is spawn the Player (and other stuff) in the big Part of the Cave ...
user avatar
0 votes
2 answers
145 views

How can I increase the amount of peaks in Perlin noise without decreasing sampling frequency?

I'm generating my game's map using Perlin noise. It's an infinite 2D world with terrain data loaded on demand. I'm using Perlin noise to generate terrain. However, I've noticed that the Perlin noise ...
user avatar
2 votes
1 answer
246 views

Is it a legal concern if a procedural name generator might generate the names of real people?

(This question is similar in spirit to this question, but I think this case is sufficiently different and specific enough to warrant a new question.) Background In one of my current side projects, I ...
user avatar
  • 534
0 votes
1 answer
422 views

Blending Biomes in Procedural terrain generation

I've recently picked up procedural generation and it's been going great - until I decided to give Biomes a shot. With my current setup, I can assign a specific point in my world a biome based on its ...
user avatar
1 vote
0 answers
104 views

Which algorithms to use for drawing procedural paint splatters?

I want to create procedural paint splatters on textures. I want somewhat similar effect like in Splatoon 2. I think I need to modify albedo image - drawing splatters there. Right now I came up with ...
user avatar
  • 145
1 vote
1 answer
154 views

Procedural Dungeon Generation with set room sizes and no hallways

I am working on a generator for a Dungeon game. Basically, I have different types of rooms, and different shapes of rooms. The different types contain a list of allowed shapes, and each shape contains ...
user avatar
0 votes
0 answers
55 views

How to implement Minecraft's terrain generation?

I'm working on a server-compatible Minecraft client. That's quite easy right now, as most of the gameplay is handled server-side, and the client simply has to take care of the rendering. Since the ...
user avatar
  • 101
0 votes
0 answers
87 views

Python Opengl Procedural Terrain Rendering

I am rendering procedural terrain in Python using OpenGL. Once generated, data for each terrain tile is stored in lists. However currently I am only getting around 25fps despite rendering only around ...
user avatar
0 votes
0 answers
299 views

How to texture procedurally generated custom terrain mesh

I am making an infinite procedural terrain for my game and currently trying to apply textures to it. The generated terrain has different biomes, so I want to texturize the terrain based on biome and ...
user avatar
0 votes
0 answers
43 views

How realistic are procedural textures in sandbox?

I'm working with Unreal and want to make a Minecraft-Style Block-Sandbox with HD-textures. Since at that resolution the repetitive pattern becomes too noticable, I'd like the game to generate the ...
user avatar
  • 101
0 votes
1 answer
248 views

Procedurally generated mesh makes weird shapes

I'm developping a procedural terrain generator in Unity 2020.3, using Sebastian Lague's tutorials and knowledge i've gathered through college projects. The heightmap looks just fine, and i had no ...
user avatar
0 votes
1 answer
255 views

Problems blending biomes together in relation to moisture/temperature

I am trying to achieve smooth biomes blending for my procedural 3D terrain. I've been doing some research on this creating biomes topic and I found some good sources that talk about creating biomes by ...
user avatar
1 vote
2 answers
97 views

How can we generate 3D architecture in a racing game's background procedurally with respect/similar to the real world?

In the last few days, I jumped into searching is there a conventional/convenient way to build 3D architecture quickly, most likely by some accessory software like CityEngine, BIGEMAP, or google maps' ...
user avatar
1 vote
1 answer
264 views

Problems creating a biomes map

I am working on an infinite procedural terrain generator and at the moment I am trying to generate a proper heightmap from a biomes map. I'm not sure what is the best way in creating a proper biomes ...
user avatar
0 votes
2 answers
114 views

How do I program procedural generation with objects that must fit together in specific ways?

I'm working on a game where I have to procedurally generate a large open room building. I'm using Unity, but I think this applies to any engine. The room is made up of different wall segments. What ...
user avatar
  • 1
2 votes
3 answers
298 views

Place Buildings to represent village

I try to convert an array of Buildings into a representation of a small village. There are several different buildings in a village, like factories that are located on the outside of the village, ...
user avatar
0 votes
0 answers
47 views

Unity procedural mesh with different colours/texture per layer

I'm generating a procedural mesh, which is a 9x9 grid of cubes. I've written it so that none of the internal faces are rendered, until a cube above it has been removed, at which point the new faces ...
user avatar
  • 101

1
2 3 4 5
15