The download comes with a terrain making program and full documentation on how to use the dll.
Ex3d 2 download
You must first extract the files to a folder before getting started.
The dll uses DirectX 9.0, I have included the required d3dx9_35 dll which was downloaded from dll-files.com
Ex3d 2 can convert 3d coordinates to 2d and 2d to 3d
For example, after setting world projection values you could use
and Ex3d_getX(), Ex3d_getY() to get a corresponding point on the screen.
The dll also lets you find the height of a terrain for different coordinate systems e.g. where z is the up axis
or where y is the up axis.
The function Ex3d_getHeightAndAngles(model id, hor, vert) lets you retrieve both the height and angles of a point(hor,vert) and face on the terrain.
In addition you can do basic collision detection with lines(rays) in the 3d world and models.
the d3d_model_load2 function can help you with this to load a model created in some modelling program like Blender.
Here is a screenshot of the sample program:
Edited by doug25, 06 July 2011 - 08:54 PM.