Skip to content

Instantly share code, notes, and snippets.

@suitougreentea
Last active April 1, 2020 15:10
Show Gist options
  • Save suitougreentea/4d7f7a79d84dc6216230cc8093f6d733 to your computer and use it in GitHub Desktop.
Save suitougreentea/4d7f7a79d84dc6216230cc8093f6d733 to your computer and use it in GitHub Desktop.
Assume X-Y bounding box: [-1, 1]*[-1, 1] -> 2*2 size
Orthographic camera scale: 2*sqrt(2)=2.82843
Camera X, Y: (1, 1)
Camera Z: 2*sqrt(2)*tan(30deg)=1.63299 (<- looking at (-1, -1, 0) from (1, 1, Z))
Camera Rot: (60deg, 0deg, 135deg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment