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

OpenGL /w tessellation(shaders) lagg - terrain

I'm reworking my terrain renderer, now it uses gpu tessellation with shaders, with a projected grid style approach: grid centered the and positioned around the camera by finding the nearest gridpoint behind it, at making it as the center.(skytiger's…
David Szalai
  • 2,363
  • 28
  • 47
0
votes
0 answers

Threejs: Terrain texture happens invisible/transparent

Three.js r62 I have a scene from .obj file with a few meshes. https://dl.dropboxusercontent.com/u/8913924/terrain/index.html I try to apply a texture to the "terrain" object. Result is an invisible/transparent texture. (if a texture applied to any…
0
votes
0 answers

Terrain generation array - C#

So, I'm trying to make a small program that generates chunks, as in 2 Texture2Ds'. I Made another class called Terrain_Plains. Constructor (you can guess I already made the variables): public Terrain_Plains(Texture2D chunkSprite, int y) { …
0
votes
1 answer

2D 'Terrain' generated by using coordinates

Hey guys so I thought of an idea and so far I've made some progress. I want to be able to change my levels terrain based on coordinates. The coordinates are selected based on where you click and is added on an ArrayList of Points. These points are…
Duncan Palmer
  • 2,865
  • 11
  • 63
  • 91
0
votes
1 answer

Having problems with a 2d terrain generator in Java

For some reason the blocks keep being rendered in the same position. Can anybody help me? Block[][] chunk = new Block[Chunk.CHUNK_WIDTH_BLOCKS][Chunk.CHUNK_HEIGHT_BLOCKS]; float[][] positions = new…
Domecraft
  • 1,645
  • 15
  • 26
0
votes
1 answer

Java 2D Side-View Terrain Generation

I am trying to create a game with a Terraria like feel and I have browsed many threads/forums and can't seem to get anything working for myself. I've chosen the Simplex Noise algorithm to try and generate a side view game like Terraria but it's just…
0
votes
1 answer

Vertex Texture Fetch always return 0

I'm developing a shader based terrain. Use VTF to fetch the height data in vertex shader. My problem is when I sample heightmap in vertex shader the returned value always is zero. Texture2D texture; SamplerState sampleType; float height =…
0
votes
1 answer

Create terrain using longitude latitude in three.js

I would like to create a terrain on top of a cube geometry based on latitude and longitude data. I have an array of objects that contain the latitude, longitude, and amount to deform a specific coordinate. var geo = new THREE.CubeGeometry( 10, 20,…
theblueone
  • 681
  • 1
  • 6
  • 9
0
votes
0 answers

Texture splatting masks

I'm planning on implementing texture splatting in a project of mine (C# and opengl (tk)) for my terrain. What is a good way to store my splatting textures? Ideally I would like to store them as data and generate the splatting mask at runtime. What…
Perry
  • 98
  • 7
0
votes
1 answer

cant project framebuffer for Reflection

water reflection just using scaling glScalef(1, 1, -1) is being blocked by terrain under water. So i think it would be better if reflection is first stored in framebuffer. but how can i project the rendered texture on the water
Rakesh Malik
  • 607
  • 1
  • 6
  • 27
0
votes
1 answer

Blender place holder mesh data - need help, mesh is resizing

Currently using Blender V2.67 I'm following a tutorial at https://www.youtube.com/watch?v=SUcpgDVBLDQ&list=SP9FE4ACC7E521FBBF Around 17:00 is when it starts explaining what I'm attempting to do. 20:05-22:30 Shows how to make a low-poly place holder.…
0
votes
1 answer

how to use glFogCoordEXT in GLSL

I used glFogCoordEXT to distinguish explored and unexplored terrain. But after i use a shader for normal mapping on terrain, its working fine but the fog is no more there. can some one help me, (i don't know glsl).
Rakesh Malik
  • 607
  • 1
  • 6
  • 27
0
votes
1 answer

open scence graph non-uniform terrain support

I would like to add terrain to my project, which uses OSG. I've read osgTerrain documentation. As I understand from it's interface, it treats data as uniform height field -- grid of heights. I want terrain to be non-uniform. It would be represented…
kassak
  • 3,974
  • 1
  • 25
  • 36
0
votes
0 answers

Finding the height on virtual terrain

I generated a virtual terrain consisting of quads in my code I am now trying to find the height of the terrain at a certain point. To clarify: I have a terrain with a width and depth in X and Y directions, and a height in the Z direction. I want to…
Perry
  • 98
  • 7
0
votes
2 answers

How do I apply generated normals to a bitmap?

I am going "backwards" for terrain generation: I am procedurally generating a terrain and its normals. I am then generating a bitmap of the terrain to be used as a 2D map. This is all working correctly and generating the results I want. But right…
tvwxyz
  • 195
  • 3
  • 14