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

How to recognize some parts of the terrain?

I created an island and want to check when I reach the island. How can I add a tag to the island? The island built from a set height of the terrain. I added a picture for better understanding:
noa
  • 1
  • 4
-1
votes
1 answer

Creating SCNPhysicsBody for SceneKit Terrain nodes?

I have a terrain created from a perlin noise in SceneKit, and now I want to add physics to the terrain. However, simply doing terrain.physicsBody = SCNPhysicsBody(type: .static, shape: nil) results in SceneKit converting the physics shape of the…
Neo
  • 11
  • 2
-1
votes
1 answer

2d Mountainy Terrain

Hi i am new on strackoverflow, could anyone help me with 2d Terrain trigonometry algorithm, how to achieve something like in screenshot? this tutorial helps me a lot but still can't figure out how to create mountain terrain My attempt evolved to…
wrRios
  • 104
  • 6
-1
votes
2 answers

How to blend a political map with a terrain?

How do some strategy games have a terrain that blends with a changeable map? I mean what is the technique that developers use? For example,
vaolez
  • 1
  • 2
-1
votes
1 answer

Java: My height map generator only writes binary

So today I started with a new project. I want to make a simple heightmap generator in java, so I tried the following: import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import…
Siarl
  • 44
  • 1
  • 7
-1
votes
1 answer

Pygame: How to create destructible terrain?

Currently I'm working on an artillery game for school. For the past few days I worked to create destructible terrain but I have no idea how to implement it. I want it so that every time the arty shell hits the ground a crater forms. I figured its…
-1
votes
2 answers

Hide/show terrain programmatically

How to hide/show terrain and other gameObjects during run-time (by C# code)? I want to show/hide terrain and gameObjects in a fade-in/out style
Al-Hanash Moataz
  • 385
  • 4
  • 14
-1
votes
2 answers

Weird blue/black things appearing on terrain on build

https://i.stack.imgur.com/mCe9D.jpg https://i.stack.imgur.com/RgI98.jpg I have been trying to find what causes this for two days now. The only thing I have found is that blue things sometimes disappear when I transform that part of the terrain.…
Deniz
  • 11
  • 1
  • 3
-1
votes
1 answer

How to create a repeatable terrain in cocos2d-x and box2d along a spline?

I am making a cocos2d-x game, and I am trying to create terrain like this: box2d terrain generator. How can this be accomplished?
GeeGoldz
  • 187
  • 2
  • 11
-1
votes
1 answer

Connect two procedurally generated landscape pieces

I'm working on a procedural generation of a continuous world. Recently I've been advised to use height map combinations to apply some constraints on my landscape. The next step is connecting two procedurally generated pieces to each other so that…
JeB
  • 11,653
  • 10
  • 58
  • 87
-1
votes
2 answers

Finding Closest coordinates on Terrain OpenGL

I am making a game in OpenGL with C++. I have a terrain that has hills and such and I want the character to be able to walk up and down the hill. To do this I have made a function that tries to find the the closest coordinates and return the…
-1
votes
1 answer

Irrlicht change terrain size (width + height)

I want to change the terrain size (width + height) in Irrlicht, but I didn't find any function for that. I want a dynamic map with one Texture. Am I using a wrong pattern / class for my case? Currently I have this: scene::ITerrainSceneNode* terrain…
Niklas
  • 23,674
  • 33
  • 131
  • 170
-1
votes
1 answer

is there a good tutorial on terrain editor?

I am new to 3D Game programming, now studying a lot on DirectX and OpenGL, on Windows. But I come up with making a terrain editor, But I cannot obtain any open tutorial or ideas on the web. is there a good tutorial or open source code for learning…
online.0227
  • 640
  • 4
  • 15
  • 29
-2
votes
1 answer

How to generate procedural terrain with Perlin Noise in OpenGL?

I need to generate procedural terrain using Noise (using Perlin noise) in OpenGL. Each time the application runs a new terrain, it needs to be generated using a new seed. (Do not use external library.) Is there a method/requirement needed when…
-2
votes
1 answer

How do i fix my program not responding?

My program keeps not responding when starting the program when generating the terrain. this is the code. I Believe that it's the for loop. Random Random = new Random(); int numberHeight = Random.nextInt(5); …
ZaneGlitch
  • 21
  • 2
1 2 3
38
39