Check old forum raytracing
Simplest is good old raycasting
Or you mean from 3d camera
Cg programs i have can input 2d greyscale maps and produce 3d landscape
Possible to code 3d grid making and read greymap pixels to put in y coordinates
, or in tiny scale bumpmap for details combined with 3d meshes