Skip to content

Instantly share code, notes, and snippets.

@zhangwc
Created November 27, 2013 05:56
Show Gist options
  • Save zhangwc/7671287 to your computer and use it in GitHub Desktop.
Save zhangwc/7671287 to your computer and use it in GitHub Desktop.
the relation of camera depth and FOV(field of view)
D = d*W/w;
d = (w/2)/tan(fov/2);
===>
D = (W/2)/tan(fov/2);
(D: the distance between camera and 3d-objects
d: the distance between camera and screen
W: 3d-objects size
w: screen size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment