Questions tagged [procedural-generation]

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

64 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
1answer
954 views

Using PhysX, how can I predict where I will need to generate procedural terrain collision shapes?

In this situation, I have terrain height values I generate procedurally. For rendering, I use the camera's position to generate an appropriate sized height map. For collision, however, I need to have ...
5
votes
0answers
158 views

How can I create a set of collision points for an arbitrary mesh?

In my project I am working on automatically deforming an arbitrary mesh with respect to another arbitrary mesh, within the context of user generated content, similar to this deformer being developed ...
4
votes
1answer
206 views

Procedurally generated paths with intersections

The Problem I've been attempting to create some procedurally generated paths for a while now, but I've reached a problem when it comes to generating the intersections of the paths. The paths are ...
4
votes
0answers
2k views

Procedural Islands Voronoi Pattern

I'm trying to keep this as simple as possible, as I've found out the last few days this is a very difficult topic. I'd like to generate multiple flat islands, formed by a voronoi diagram. I've ...
4
votes
1answer
694 views

How do I apply domain warping to my marching cubes voxel terrain in Unity?

So, in GPU Gems 3 there is a cool warped terrain that I seek to replicate. Currently, I'm generating the terrain fine, but I want to add that warp effect. ...
3
votes
1answer
316 views

Workflow for creating spherical heightmaps

I'm wondering how I can create a spherical heightmap. In my ideal workflow, you'd see a 3D sphere that you can edit using procedural terrain techniques (like World Creator) and that spherical terrain ...
3
votes
1answer
269 views

Background made with procedural shapes

I would like to know how to make a background like Super Hexagon managed to do: a hexagon in the middle and equally sized trapezoids. There's a screenshot below & the here is the effect in motion....
3
votes
0answers
338 views

What is the optimal scene size?

I'm coding a small "Binding of Isaac"-like game, with a little help from the official "Scavengers" Unity tutorial, since it's my first game. In the tutorial every level is comprised of only one room. ...
3
votes
0answers
189 views

How to display procedurally created rooms as a schematic map?

In most games, a map can be generated by essentially doing a "top-down" view of the specific area. This will accurately show the size and positioning of any rooms, as well as how they connect.There ...
2
votes
0answers
33 views

Adding A Mesh Collider Async

I am building an infinite landscape and I generate all of the terrains procedurally. I recently offloaded my terrain generation code onto another thread to try to eliminate the freeze up when new ...
2
votes
0answers
107 views

uv tiling and offset for uvs not min-max 0-1

For the purpose of the question, a unit = 1 meter. So, I have a triangle strip that is 4x8 meters (for argument's sake; it is procedurally generated by player). I also have a texture which is ...
2
votes
0answers
368 views

Mapping heightmap to spherical clipmap

How would you map the points on a spherical clipmap to a heightmap? My coarsest clipmap has an outer radius of PI and an inner radius of PI/2. My coarsest heightmap goes from -PI, PI on the x axis and ...
2
votes
1answer
204 views

Determine the startposition for Perlin worms

I want to implement Perlin worms for the level generation of my 2D game and I was wondering, which options exist to find the startposition for the worms. My idea was to randomly start zero to X (...
1
vote
0answers
85 views

Generate road mesh from a graph

I want to generate a mesh for the entire road network(later I'll probably want to split it into chunks but for now this will do). My road network is stored as a ...
1
vote
1answer
91 views

Generating lakes and rivers on 2D grid

I recently posted a question about how to technically represent a generated terrain similar to the game kingdoms and castles. I got some great advice and decided to create a 1x1 cube at each ...
1
vote
0answers
108 views

UE4 - UProceduralMeshComponent - texturing issues

I am having a lot of trouble texturing a procedural mesh in UE4. I am using perlin noise from Accidental Noise Library with PolyVox to generate randomized marching cube terrain. Accidental Noise ...
1
vote
0answers
34 views

How to make Procedual Context Sensitive Mesh Generation during Runtime

In the game that i am trying to make i essentially generate an infinitely generating maze that has no dead ends and each corridor is of the same width. i have successfully managed to create this ...
1
vote
0answers
213 views

Generating Mesh using Compute Shaders

I am working on a game project in unity which has a procedurally generated terrain made up of 16*128*16 chunks of blocks. The map size is going to be finite (Possibly up to ~100*100 chunks). Currently ...
1
vote
0answers
31 views

Seaming between procedurally generated terrain meshes in Unity

I have been generating procedural terrain for an upcoming project however I am coming across a seaming effect between the tiles: I have searched for solutions including this video. Here is the code (...
1
vote
0answers
74 views

Connecting varying tilemap layouts at possible connection points?

I'm building an isometric 3D ARPG in Unity3D, and I have a tilemap, for example a dungeon. I have tiles marked where a door could be placed. I select a random "could-be-a-door" tile from the ...
1
vote
0answers
31 views

Discrete line inside a 3D matrix

First of all a little premise: I'm following this tutorial on YouTube for procedural 2d cave generation in unity using cellular automata and I'm extending it in order to make caves in all three ...
1
vote
0answers
118 views

Unity3D - How to create flat map render based on endless noise data

The Project I'm working actually on a Endless Map Generator (with chunks, height-map noise, threading system, etc..) This is actually what "dev data display" look like: The Goal Now I want to ...
1
vote
0answers
116 views

Spawn network objects in generated map

In my game, the server generates a procedural map, after send generation seed to generate it on the client. The client generates exactly the same map. In the map, I need to synchronize objects with ...
1
vote
0answers
189 views

How is terrain editing implemented like a sculpt tool?

Some creativity/sandbox games have a terrain editing feature. When thinking of a terrain, I'm thinking of a grid of vertices. The elevation of each vertex is then determined by a heightmap (image). ...
1
vote
0answers
180 views

2D Sideview Procedural Water Generation

How can I generate water in a procedural 2D sideview landscape? Here's what I currently have: First generate the heightmap of the land Then generate the water, based on the land Here's how I ...
1
vote
0answers
172 views

Using binary space partition to lay out scenes in game

Q: How can I randomly lay out these house scenes in the larger scene such that they don't overlap? I'm using the Godot Engine to create a little 2D RPG kind of game. I'm laying out a village in a ...
1
vote
0answers
76 views

How to procedurally create an extruded cube mesh's indicies?

I'm working on a tool that allows the user to create rails(basically an extruded cube) by placing 3d points where the vertices of rail would be. The picture below shows what I'm talking about. The ...
1
vote
0answers
217 views

Random environment runtime generation in Unity

I need a tip for a project: basically I need to randomly generate an environment (a map) for a game. As generating a full map completely procedural is impossible for me, I thought to create a static ...
1
vote
0answers
616 views

GPU instancing vs combining meshes for performance

I have a relatively low poly procedurally generated scene in which I reuse a bunch of the same objects (walls, floors, etc). I've been writing some code to combine a room's floor tiles into one mesh, ...
1
vote
0answers
354 views

Sampling procedural texture generated in shader?

We have a custom Unity surface shader which generates some procedural patterns. However we are getting very bad moire effects when the pattern frequency is too high (made worse by distance, surface ...
1
vote
0answers
362 views

Generating 3D models / meshes

In LibGDX how can I construct a 3D terrain model that has Position Normal Color The model does not require a texture, it is colored on a per vertex basis. I've looked into LibGDX's ModelBuilder and ...
1
vote
0answers
658 views

Using Perlin/Simplex noise in a 2d tile game for terrain generation

I've been doing a bunch of research regarding procedural 2d terrain generation and have come to the conclusion that the use of perlin/simplex noise seems to be the way to go for most things. I've ...
1
vote
0answers
691 views

Terrain Generation - Diamond Square Algorithm

I'm trying to implement a Map Generator in Java. Since it´s said to be simple I wanted to use the Diamond Square Algorithm [2D] for that purpose. However, I can´t find any complete understandable ...
1
vote
0answers
83 views

Generate and then rasterize vector shape in Monogame/XNA

I apologize if this is too broad, but I can't seem to find information on this anywhere (perhaps I am searching for the wrong thing?) Anyways, I'm making a simple game where the player visits ...
1
vote
0answers
385 views

How to generate mesh at runtime using raycast points?

I'm trying to make a clone of the trail/line renderer with the difference that everything is perfectly flat, i.e. the faces are not designed to face the camera. I'm using two raycasts to get the ...
1
vote
0answers
238 views

Climate / weather generation on 3d hex map

I am working on 3d hex map game. I am aiming to dynamical generate map (as new players joins). To make the map realistic I am looking for some climate/weather models which possibly I could use so that ...
1
vote
0answers
613 views

DirectX 11 GenerateMips only works with premultiplied alpha?

The GenerateMips method in the ID3D11DeviceContext allows generation of mipmaps at runtime, which is fine for fully opaque textures. However, when this method is used with transparent textures that do ...
1
vote
2answers
1k views

Perlin Noise Variations

Currently I'm making a voxel survival game. About a month ago I embarked on procedurally generating terrain using Perlin noise. I understand how to use and apply it for the most part. However I do not ...
1
vote
0answers
620 views

Texture artifacts and GLSL bump mapping

I'm working on a 3d terrain. I tried out some existing GLSL implementations for bump mapping using normal maps from a Procedural Infinite 3D Cave Generation tutorial. The actual code that I used is ...
1
vote
0answers
267 views

Remove “dots” noise (like from dot-matrix printer)

I have 2D array of floats. Using the floats, I generate image by doing proportional selection of color from between COLOR_MIN, COLOR_MAX – for maximal float value at given (x,y), I choose COLOR_MAX ...
0
votes
0answers
9 views

Painting a tilemap through scripts

I'm pretty new to Unity so please excuse me if I have the wrong idea here or I'm mistaken about some concepts. I have read through the Unity documentation for Tilemaps as well as the Grid GameObject ...
0
votes
0answers
23 views

How to make a procedural tilemap island with more than one tile in unity?

I have been working on a simple survival game. I made the character and some basic elements (I'm new to the field though). But what I could figure out how to make is the world generation. I just ...
0
votes
0answers
42 views

How to create a procedural dungeon crawler like the binding of isaac? (javafx)

I want to create a procedural dungeon crawler map, like the binding of isaac. The aim is to connect multiple rooms in a 2D-array, where the player can traverse through. Each room will have doors, such ...
0
votes
0answers
24 views

Possible sizes of N in tiled Wave Function Collapse

I've been attempting to implement tiled WFC, but I'm having trouble differentiating between the different flavors of the algorithm. When it comes to using tiles instead of pixels, most articles (...
0
votes
0answers
26 views

Why isn't this script that removes duplicate faces from voxel generated mesh not working?

Hey this is my first post here. I'm trying to make a voxel world generation project for personal experience like minecraft like games. But I cannot find out why my script is not working as intended ...
0
votes
0answers
57 views

Procedural dungeon generation

Im making a rouge like game, and I need a better way of generating a dungeon. My requirements for a dungeon must be: Have multiple rooms and corridors All rooms and corridors must be accessible My ...
0
votes
0answers
37 views

Can I rely on a Navmesh for X/Z movement and manually place my agent on the Y axis?

I'm generating my terrain mesh around the player (along with collision mesh and Navmesh). It's tile based, when the player moved enough I generate necessary tiles render meshes, then collision meshes ...
0
votes
0answers
52 views

Multithreading or compute shaders for procedurally generated terrain

I'm trying to code a game in Unity with a procedurally generated terrain that is divided into chunks. Is it faster to use multithreading or compute shaders to generate the terrain and mesh? If it ...
0
votes
0answers
42 views

Map Generation Biome - 3D Zonation Altitude/Temperature/Moisture

I'm working on an endless map generator and I have a question about biomes selection. I already have all the work done to generate PerlinNoise (actually for map altitude and moisture) but every graph ...
0
votes
1answer
95 views

Blend different biomes using linear interpolation

I've been scouring the internet for hours looking for a solution to blending biomes that have different amplitudes and frequencies together to create a seamless world. A recurring theme I'm seeing is ...