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

Object spawn on procedural terrain spawns on unspecified area

I've managed to put together a procedural terrain with defined regions and I am looking to procedurally place objects within the world within these regions. The regions are defined by their height and I am trying to utilise this to correctly place…
0
votes
1 answer

Register click and hold on a tile in Unity

I have a procedurally generated tilemap that the player can interact with through mouse clicks. Each time the player clicks I get its screen position convert it to world cords and find the correct tile. This is fine but only works with single clicks…
user12368065
0
votes
1 answer

Flipping Face Normal ThreeJS but not on floor

I try to build a house generator based on a floorplan. Generating the mesh works fine, but now I need to flip the normals on some faces. buildRoomMeshFromPoints(planeScalar, heightScalar){ var pointsAsVector2 = [] this.points.map(e => { …
0
votes
2 answers

How to use perlin noise for 2D Tile map in top down game in Unity?

As the title suggests I want to use perlin noise to make a randomly generated terrain using tiles that I have made with a pixel width of 32x32, I've had a little look at perlin noise but it seems very confusing and it would be great if anyone could…
0
votes
1 answer

Unity procedural generation spawning overlapping objects issues

I have 2 scripts one that check if an area is free one that spawn an object if the area is free this is to prevent overlapping checker script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpaceCheck :…
0
votes
2 answers

How to spawn in loop like snail but in square

Hello I am French so excuse my bad English please, I created a generation of land with a seed with prefabricated gameobjects but they spawn from column to column so I would like to create this but starting from the center to outside like a snail but…
Lokosse73
  • 3
  • 1
0
votes
1 answer

Only Spawn tree on flat ground

What I'm trying to do I'm trying to spawn a tree only on flat ground but GetSteepness() isn't working and GetInterpolatedNormal() also doesn't seem to be working The Problem the trees always seem to spawn on places I don't want them to like on…
0
votes
0 answers

Text generation

Other than context-free grammar, NLG and Markov chain is there another way to generate text? My problem is that I would like to generate fragment of descriptions for my RPG. I would like to start with some words like the location, the weather and…
0
votes
1 answer

Procedurally generated cave in Unreal Engine 4

I am making a procedurally generated cave in UE. I have a question regarding what's the most optimised way to do it. I already have a function that creates the verticies and triangles for a cave section from point a A to point B (The final cave…
glad_hd
  • 27
  • 3
0
votes
2 answers

How do you attach a camera to a spawned player in unity 2d?

So I'm working on a simple platformer in unity 2d. I created a level generator that generates random terrain, enemies, and player character right at the start of the level. I want to have the camera follow the player character. I tried using the…
0
votes
4 answers

OpenGL: Texture size and video memory

I'm making a Worms-style bitmap destructible terrain game using OpenGL. I'd like to know where the limitiations in terms of video memory are for the size of the worlds. Currently, I use blocks of 512*512 RGBA textures for the terrain. How much…
Hars
  • 1
  • 1
  • 1
0
votes
1 answer

Why cube mesh becomes a plane when in high resolution?

I use the following code to generate a Cube as a single mesh. My purpose is to generate a sphere from it by normalizing as I have shown in the commented line (I just have to do that to all those statements in the following lines). The problem here…
Deamonpog
  • 805
  • 1
  • 10
  • 24
0
votes
0 answers

How do I add Biomes to a Procedurally Generated Terrain with Open Simplex Noise in Godot

I have an Open Simplex Terrain generation in Godot system based on the one showed in this video, and I was wondering the most simple way I could implement biomes like mesas, mountains, plains, etc. How would I alter the height different segments of…
0
votes
0 answers

How do I improve my RBX.Lua procedural generation code?

This is my first post in stack overflow, and I have no clue whether I can post stuff about roblox development here. But anyways, here I go. I'm making a top-down pixel art survival game, and am procedurally generating "flat" worlds with many…
0
votes
1 answer

How can you plot a graph where each vertices is a rectangle with given size but edges can be any length?

This question is part of a procedural generated dungeon algorithm I'm trying. I want to randomly generate a graph (representing rooms and corridors), assign size to each vertices/rooms and plot them on a 2d plane. One requirement is I don't want the…