PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

E2DSURFACE::Landscape

Hi there,

could someone please provide further documentation or (ideally) an example of how to use E2DSURFACE::Landscape and GetLandscapePoint? I've tried using it but it will always cause an divide-by-zero error, regardless of the parameters I feed it.
Also, what exactly do the "pitch" and "horizon" parameters specify?

Any support is much appreciated, thanks in advance!
Hi,

The pitch parameter defines how the landscape is rotated towards the camera, the horizon parameter specifies the height the camera floats above the landscape.

In one of our samples we use -256 for the pitch and 1200 for the horizon.