Questions tagged [terrain]

Terrain, or land relief, is the vertical and horizontal dimension of land surface. Terrain is used as a general term in physical geography, referring to the lie of the land. This is usually expressed in terms of the elevation, slope, and orientation of terrain features. In games, terrain is the "land" or "world" on which the game environment, roads, buildings, vehicles, characters are placed and interact with each other.

Terrain, or land relief, is the vertical and horizontal dimension of land surface. Terrain is used as a general term in physical geography, referring to the lie of the land. This is usually expressed in terms of the elevation, slope, and orientation of terrain features. In games, terrain is the "land" or "world" on which the game environment, roads, buildings, vehicles, characters are placed and interact with each other.

This tag is for question related to terrain, its properties, problems related to setting different properties, lighting, textures, simulating gravity, friction etc for use in games or simulations.

574 questions
0
votes
0 answers

Artifacts using midpoint displacement generation

I am trying to generate terrain for a simple game I'm making using midpoint displacement, and it's working well so far, but I keep getting weird artifacts that I don't see in most of the examples that I see online and I don't really know what is…
0
votes
1 answer

ERROR: Property 'UnityEngine.Component.constantForce' is read only in Monodevelop Unity

function Start () { var linkedTerrain:Terrain = gameObject.GetComponent(Terrain); _terrainGrid[0,0] = Terrain.CreateTerrainGameObject(linkedTerrain.terrainData).GetComponent(Terrain); _terrainGrid[0,1] =…
UA_PPS
  • 29
  • 9
0
votes
1 answer

how to Make FirstPersonController object Static/not moving when Placed over Moving Terrain in unity 3D

I created a terrain and applied constantForce on this terrain, then I Placed FirstPersonController Object Over this Terrain. FirstPersonController Object moves or change its position due it is over moving terrain, I wanna make FirstPersonController…
UA_PPS
  • 29
  • 9
0
votes
1 answer

Issue displaying OpenGL terrain mesh in C

I am having issues making my openGL terrain display in the window. I just get a see-through window, and I'm not sure what I'm missing. Here is my code: #ifdef __APPLE__ #include #else #include #endif #include…
JayBee
  • 540
  • 1
  • 5
  • 22
0
votes
0 answers

OpenGL - rendering particles and terrain works, but not a tthe same time

I am working on a school laboration whereas my task is to render a basic terrain using a heightmap, and also some sort of particle system (right now I'm just blasting away points that are drawn into flat squares). The problem is that while I can…
0
votes
1 answer

HLSL heightmap terrain normal recalculation for diffuse light

I need to apply diffuse light to heightmap based terrain, but I can't figure out how to recalculate normals. Shader code: http://pastebin.com/S8hQm67D
fwriteErr
  • 73
  • 2
0
votes
1 answer

C# Xna Noise for terrain-generation

I struggle making my own map generator, generating 2d maps like in terraria. My problem is that the result of this looks very unnatural (the caves are mostly really big and round) while the open source simplex noise makes nice long and natural caves…
crush3dice
  • 198
  • 1
  • 2
  • 15
0
votes
1 answer

Procedurally Generated Structures over large quantitys of chunks in 3D Terrain Generator

I am creating large scale worlds using 16*16*16 voxel chunks which are stacked up to 32*32*32 in dimensions and I have hit a bit of a Bump in the road so to speak. I want to create large structures that span 20+*20+*20+ chunks in volume which are…
0
votes
1 answer

Diamond Square Terrain Generation for large areas

I'm trying to implement the diamond-square terrain generation algorithm in OpenGL. So far I have a 2D plane (actually a 3D but all Z coordinates are set to 0) made of up to 1024 different squares. The coordinates are organised into 2-dimensional…
Eugen
  • 1,537
  • 7
  • 29
  • 57
0
votes
1 answer

How to convert a regular height grid to a triangular irregular network?

I'm looking for an algorithm that converts a regular grid of heights (e.g. 1024x1024) to a triangular irregular network. Here is an image showing an example of a triangular irregular network: I've looked in the internet for an algorithms to convert…
0
votes
1 answer

Rendering Height Map, glDrawElements Issues

I've got this class which I'm developing which I hope to eventually use to draw a terrain map. The code currently looks like this: IntBuffer ib = BufferUtils.createIntBuffer(3); int vHandle = ib.get(0); int cHandle = ib.get(1); int iHandle =…
Peter
  • 33
  • 7
0
votes
1 answer

Java LWJGL + Noise 3D Terrain Generation

I'm new with the OpenGL code and I wanted to learn how to make a simple terrain, more of a chunk of blocks. I want to use SimplexNoise for this, and it's pretty difficult for me to understand how to do it. I divided my files, to a main file that…
OrrGorenn
  • 347
  • 1
  • 5
  • 15
0
votes
1 answer

How to detect unseen triangles on screen

I'm having a very simple terrain map with tiles! All the tiles are same size, just different height (z value) ! I can render them OK, but there are thousands of tiles , but not all of them are on screen, only a portion (that ahead of view)! So i'm…
greenpig83
  • 13
  • 4
0
votes
0 answers

Detect mouse pos on terrain

I have a very simple terrain map, 256x256 tiles for example, it's divided into tiles (same squares...). every tile have height, slope... Something like figure below. My default look will be an iso view. (Each tile can be divied into smaller tiles…
greenpig83
  • 13
  • 4
0
votes
0 answers

unity c#-- rotation problems when snapping to terrain

I'm working on some objects can be moved around by the user via the mouse. They snap to the terrain whenever dragging so they can't actually be pulled off the terrain. This was in place before I was put on the project. My task is to make the objects…
gord0
  • 1
  • 1