Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 2.42 KB

README.md

File metadata and controls

32 lines (25 loc) · 2.42 KB

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.

How does it work?

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:
image
This frsutum's vectors are then intersected with the earth's surface using Three.js' Raycaster helper.

Accuracy

Unity uses math.gl to build a WGS84 compatible earth ellipsoid:
image
And calculates according to the WGS84 geodetic coordinates ([X, Y, Z])

Earth's surface resolution

The accuracy is also affected by the earth's surface resolution, that can be fine-tuned according to the need.
Screenshot 2023-10-04 at 21 30 37
Screenshot 2023-10-04 at 21 30 24

Sampling rate

The sampling rate can also be modified. For example:
Screenshot 2023-10-04 at 21 34 00
Screenshot 2023-10-04 at 21 34 07

accounting for path curvature

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.
Screenshot 2023-10-04 at 21 11 34