Skip to content

Instantly share code, notes, and snippets.

@companje
Created May 13, 2020 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save companje/a263fce3dfbc4a6e1c12c5a0d5d283e3 to your computer and use it in GitHub Desktop.
Save companje/a263fce3dfbc4a6e1c12c5a0d5d283e3 to your computer and use it in GitHub Desktop.
Globe4D gx1000 perspective
float w=1200, h=1200, wd2=w/2, hd2=h/2, wdh=w/h;
float distToCam = 1900;
perspective(atan(hd2/distToCam)*2, wdh, distToCam, 10000);
camera(0, 0, -distToCam, 0, 0, 0, 0, 1, 0);
scale(-1, 1, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment