Take the 2-minute tour ×

I would like to know how to generate a 3D render from a really simple file. In this file there is triplet of coordinates ({x, y, z}) that represent the height at a specific point, but there is something like 4 at 8 points for a 10000*10000 map.

The mounts that this points represent needs to be blunt, I mean that I can't place pyramids on the landscape.

My question is, how to make this?

I've been thinking about make a greyscale png (heightmap) and give it to unity.

PS: The engine should not provide a physics engine.

PSS: I can do this in any language and with any library

share|improve this question
Are your points on a grid or scattered randomly? –  Rob Agar Dec 19 '12 at 9:42
My points are precise points, so they are on a 10000*10000 grid. But i can't know where they are in advance –  Manny42 Dec 19 '12 at 9:44
add comment

closed as not a real question by Ocaso Protal, Daij-Djan, Levi Botelho, Johan, Linger Dec 19 '12 at 14:45


2 Answers

up vote 1 down vote accepted

There is no single way of mapping a random set of samples to a regular grid (which may be displayed as a greyscale graphic) - it really depends on the nature of your data and what you want to do with the end result.

There's a good overview here which describes the common techniques used in GIS applications. The easiest one to implement is "Inverse Distance Weighted" where you calculate the height at each grid point as a weighted sum of the closest sample points. The other techniques like "kriging" give better results, but are much more involved.

share|improve this answer
add comment

Have you tried interpolation.

I guess this might solve your problem. Have a look at this Interpolation

share|improve this answer
add comment
