Skip to content

Instantly share code, notes, and snippets.

@moonthug
Created March 16, 2014 13:59
Show Gist options
  • Save moonthug/9583671 to your computer and use it in GitHub Desktop.
Save moonthug/9583671 to your computer and use it in GitHub Desktop.
Basic camera setup in OpenFrameworks
camera.setPosition(
ofGetWidth() / 2,
ofGetHeight() / 2,
camera.getImagePlaneDistance(ofGetCurrentViewport())
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment