Questions tagged [procedural-generation]

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

81 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
1answer
1k 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
166 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
449 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
881 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
337 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
448 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 ...
3
votes
0answers
194 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
87 views

How can I create hemisphere worlds (floating islands?) with 3d (or 2d)? Noise (Perlin/OpenSimplex)

I've been experimenting with noise for a while and I've gotten some terrain up: It looks like this: What I'd like instead is to have planets like this (currently mine is in a cube shape) My ...
2
votes
0answers
103 views

Godot Procedural map, Need help to avoid overlapping areas

I have piece of code that using a tile set, i can draw an area of what is going to be a small town/city. The code seed_cities, make an X number of cities randomly on the map, whereas draw_city just ...
2
votes
0answers
74 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
337 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 ...
2
votes
0answers
110 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
384 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
272 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
1answer
77 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 ...
1
vote
0answers
58 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 ...
1
vote
0answers
27 views

Tagging "regions" in rot.js map generator

I'm working on a small roguelike and I'd like to be able to tag the various "regions" generated via the Map generators so that I can use it as a lookup to environment descriptions. I see ...
1
vote
0answers
418 views

How can I generate mesh distance fields at runtime on a procedural mesh in unreal engine 4.26?

I am building a simulation game that and I that allows the player to create procedural buildings rather than placing static scenery items. If possible, I would like to write a shader that can take the ...
1
vote
0answers
24 views

IK script causing glitchy movement

I have a FPS character game object, which consists of just the arms. I made this IK script off of a tutorial. ...
1
vote
0answers
157 views

Dynamically Generated Mesh Not Visible Unless In Wireframe Mode

I'm trying to create a dynamic mesh using ArrayMesh but my mesh isn't visible unless I turn on wireframe debug mode. Here is a minimal example of a plane mesh consisting of 2 triangles (this script is ...
1
vote
0answers
127 views

Procedural terrain in the Style of "Zelda: A Link to the Past"

I am working to create a system that randomly generates pseudo-3d terrain on a tile grid using the methods used in the legend of zelda games between link to the past and minish cap. I have created a ...
1
vote
0answers
146 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
0answers
688 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
459 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
38 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
93 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
43 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
205 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
149 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
220 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
204 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
243 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
91 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
226 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
728 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
409 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
471 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
747 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
878 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
97 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
465 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
267 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
652 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
0answers
642 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 in ...
1
vote
0answers
275 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
20 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
33 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 ...