Unity - demo
Airborne sensor projection simulator
Unity is an Airborne/Satellite sensor projection simulator.
It can be used to simulate the projected vieweing polygon on the surface of the earth, given a set of sensor paremeters.
Unity uses Three.js to perform rendering and vector manipulation.
For every given camera position, Unity "sends" an array of vectors to the surface of the earth, and creates aFrustum:
This frsutum's vectors are then intersected with the earth's surface using Three.js' Raycaster helper.
Unity uses math.gl to build a WGS84 compatible earth ellipsoid:
And calculates according to the WGS84 geodetic coordinates ([X, Y, Z]
)
The accuracy is also affected by the earth's surface resolution, that can be fine-tuned according to the need.
The sampling rate can also be modified. For example:
The given path, inputed as a GeoJSON LineString, is Spherically Linearly Interpolated (SLERP) According to earth's curvature.
This interpolation can be performed at a given rate.