Questions tagged [heightmap]

Heightmap is texture containing individual heights used to store terrain data.

Heightmaps textures are used to store geometric detail like terrain, object surface etc. It is used to simplify manipulation of such geometry and even speed up its rendering (if mesh generation moved into shaders).

In case the heightmap is stored in common raster image formats then for proper geometry restoration we need also additional info like: scale,position and orientation for such textures which are not stored in them. So those are usually stored in some separate config file, encoded into filename, or hardcoded into application that uses them.

196 questions
-1
votes
1 answer

The size of the terrain rendered from heightmap

I'm quite new to XNA so excuse me if I ask a 'silly' question but I couldn't find an answer. I have a problem with the terrain rendered from a heightmap: the terrain I get is too small, I need something larger for my game but I'd like to keep the…
Apex
  • 43
  • 6
-1
votes
1 answer

How can I create heightmap for QHeightMapSurfaceDataProxy from 2D array to show 2D Fourier transform results

I have the data - 2D discrete Fourier transform results. I want to gain heightmap but i dont know how to form heightmap. I need plot this data as surface in Q3DSurface through heightmap (not just 2D array).
penny
  • 67
  • 6
-1
votes
1 answer

How to sample height map which is stored in the alpha channel of the normal map?

error X3523: DX9-style intrinsics are disabled when not in dx9 compatibility mode how to use the tex2Dgrad() function in dx10?
Nico
  • 11
  • 3
-1
votes
1 answer

Calculation of normals on a bumped sphere shows strange diagonal shadow infront of light source

In the picture below you will see my current setup. I am rendering a sphere with heightmap information. The mesh is a square that is wrapped around a sphere. The source of light is located directly at the camera position. The problem that I have at…
-1
votes
1 answer

Terrain Generation with Realistic Height Map

I am having troubles finding out the best way to add realism to a terrain generator. At this point I have a flood fill that works perfectly, however if I want to add any sort of realism I will need to add in height variables. I have seen the…
Hunter
  • 201
  • 3
  • 17
-1
votes
1 answer

Unexpected Diamond square Algorithm results

I'm currently trying to implement the Diamond Square algorithm and while the thing is somewhat working, I'm confused by the HeightMap. Here it is : As you can see the squares are clearly outlined by brighters values, while the losanges are…
GlorfSf
  • 370
  • 1
  • 2
  • 12
-1
votes
1 answer

Drawing triangle grid with glDrawArrays() - deformation of triangles

I am creating and storingthe position of the vertices of a 256*256 grid in a simple for loop like this: ind=0; for(i=0, i<256, i++){ for(j=0, j<256, j++){ vertexPosition[ind].x= i; vertexPosition[ind].y= 1.0; …
-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
2 answers

Threejs make a displaced mesh (terrain model)

So I have around 59k data points that I'm visualizing. Currently I'm making them into a texture, and then applying them to a plane geometry. Now the issue is that I need to show a heightmap, each datapoint has a height value, and I need to apply…
Keith M
  • 1,199
  • 2
  • 18
  • 38
-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
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
-1
votes
1 answer

Three.js, GLSL, HeightMaps + Alphamaps

I am using three.js to attempt and learn more about OpenGL. Anyway, I've created a fragment shader which actually works for blending textures with an alphamap but I am having issues with the heightmap portion. If anyone has any ideas please let me…
-1
votes
1 answer

What are some good algorithms to generate a dynamic heightmap?

I want to research some algorithms for dynamic heightmap generation but I'm not familiar with any. Getting even more dynamic. Whats some theory on how multi-dimensional heightmaps work? i.e. Caves and overhangs. Should I use multiple heightmap…
Tyler Benzing
  • 1,116
  • 11
  • 25
-2
votes
1 answer

Convert colormap(RGBa) to height matrix

everyone, I am trying to convert a height colormap image (RGBA) into a 2D matrix so we can do something about it. I thought this would be a well-developed procedure but I cannot find any existing function to do this. Here is the same of my colormap,…
Five
  • 1
  • 1
-2
votes
1 answer

How to get hight (int16) value back to rgb form?

I have int16 * heights[width * height] array, that hold the terrain height, i load them form a file directly as int16 *. I need to write the heights into a bmp file. How do i get int16 back into rgb format considering they came form a bmp file (rgb…
Balan Narcis
  • 139
  • 1
  • 10
1 2 3
13
14