pex-renderer icon indicating copy to clipboard operation
pex-renderer copied to clipboard

Agree on orbiter orientation

Open vorg opened this issue 6 years ago • 5 comments

Currently orbiter is using latlon-to-xyz and xyz-to-latlon to convert spherical coordinates to xyz position. How those 2 relate to each other is matter of convention. The convention assumed in the current implementation assumes that lat:0, lon:0 is point [0, 0, 1] therefore orbiter is located at +X axis looking towards -X axis. This is to make it compatible with lat/lon coordinates of a textured sphere from https://github.com/glo-js/primitive-sphere often used for globe rendering. The problem is that this is agains default OpenGL convention where default camera is positioned +Z axis looking towards -Z axis.

vorg avatar Jan 31 '19 14:01 vorg