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
1 answer

Spawn GameObjects accroding to player movement- Unity

I am making a game arcade style where there is a plane and I want prefabs which are walls to get spawned or instantiated according to the player movement, as of now there is a code that helps in getting the walls generated in one direction, The main…
0
votes
2 answers

Strange shading behaviour with normal maps in UE4

I've been having some very strange lighting behaviour in Unreal 4. In short, here's what I mean: Fig 1, First, without any normal mapping on the bricks. Fig 2, Now with a normal map applied, generated based on the same black-and-white brick…
JkyCosten
  • 23
  • 10
0
votes
1 answer

Formula for procedurally generating the location of planets in a game

I want to develop a game where the universe is a maximum 65536 x 65536 grid. I do not want the universe to be random, what I want is for it to be procedurally generated according to location. What it should generate is a number from 0 to 15. 0…
0
votes
1 answer

Perlin worm between two specific points 3D. Or how to generate a tunnel between two points

My question title may seem like a XY problem, so let me explain it. I am making a game that requires a cave group (Some caves that are connected with tunnels). For now I have caves that are generated by a sphere with perlin noise offsets, so it is…
danirod12
  • 11
  • 1
0
votes
1 answer

Could you generate procedural textures in Unity2D?

First question, so excuse me if I miss some basic etiquette. I'm messing around in Unity2D with a 2D terrain generator for something like a DnD world map. However, I'd like to texture this map with something along the lines of a procedural paper…
Vallith
  • 1
  • 2
0
votes
1 answer

how to procedurally generate a disjointed maze in unity 3d

I am creating a game in Unity that is a FPS/Horror game that takes place in the SCP Universe. one of the levels I am making is The Backrooms and I cant find a maze generation algorithm for Disjointed Mazes. Does anyone have an algorithm that would…
0
votes
1 answer

I keep getting the "Cannot read properties of undefined (reading 'Linear')" error in my threejs code

I found a procedural generation library for threejs Link: https://github.com/IceCreamYou/THREE.Terrain I am following the tutorial given in the ReadMe.md file but I keep getting this error: Cannot read properties of undefined (reading 'Linear') I am…
0
votes
1 answer

Godot TileMap.set_cell() : In which order are the transformations done? (flip then transpose or the opposite?)

I'm trying to procedurally generate a 2d terrain in Godot with a tilemap. I'm using a tileset without tile rotated, but want to be able to flip/transpose/rotate my tiles when I place them, and be able to retrieve the transformation applied to an…
Azireo
  • 145
  • 1
  • 5
0
votes
1 answer

Is it possible to use a heightmap like Mathf.PerlinNoise();?

I am relatively new to Terrain Generation in Unity, and am currently stuck in one place. I have followed Brackey's tutorial on terrain generation, and in that tutorial, he uses something like this: float y = Mathf.PerlinNoise(x, z) * 2f; To…
0
votes
2 answers

2D dungeon map generation

I'm currently working on a text-based dungeon-crawler game. My question is: What is the simplest method to make a randomly generated dungeon (say, like the binding of isaac), where there are 4 possible directions to go (north, south, east, west)?…
0
votes
1 answer

Pick up a specific point on the object to connect it with another object?

I am doing a project to create a plant through different parts selection randomly. The project randomly selects a trunk, and each trunk has a specific place for fruit. What are your thoughts on setting a point on each trunk, so the fruit (another 3D…
0
votes
2 answers

Suggestion on NavMesh 2D generation at runtime with infinite procedural generation

Let me start off by saying I began my jounrey of programming within the last year and Unity about the same time. I have come a long way since then, but I still come across walls that I cant seem to get across, this is one of them. I'm making a 2D…
0
votes
0 answers

Spawning an asset nearby group of assets

I am spawning a bunch of assets randomly on my map and then spawning 4 random positions on the map which I will use to calculate the closest assets to those four random positions to "group" or "cluster" the assets. My goal is to have each…
Krellex
  • 613
  • 2
  • 7
  • 20
0
votes
1 answer

Algo. terrain generation - evaporation calculation issue

Creating procedural terrain I cannot get an evaporation matrix and find why my algorithm is wrong. How my program works: A user loads a map chunk. If it exists it loads its data. If it doesn't exist, it creates the chunk and returns the generated…
Lucas F
  • 15
  • 6
0
votes
1 answer

Threading UI Application

To start, I'm new to Threads, never worked with them before, but since the current project is severely impacted by slow runtimes, I wanted to take a peek into multithreading and this post is a question on whether it is possible given my current…