Create X3D node with the given terrain shape.
InputRange determines the range of values (minimum and maximum X and Y) queried from the underlying terrain, that is: queried using the Height method.
OutputRange determines the span of the resulting shape in X and Z coordinates. Note that, when converting a heightmap to 3D, the 2nd dimension is Z. In 3D, we use Y for height, as this is the default in X3D and Castle Game Engine.
Often you will set InputRange and OutputRange to the same values, but you don't have to. Often they will at least have the same aspect ratio (actually, often they will be square), but you don't have to.
Divisions determines how dense is the mesh.
We return the node that you should insert to your scene.
It will use the given TAppearanceNode. The appearance is not configured in any way by this method, and it can even be Nil .
|