Skip to content

Viewport.turnCameraOn #528

Answered by kabentley
paprophet asked this question in Q&A
Discussion options

You must be logged in to vote

As Paul says, toggling the camera on and off necessarily changes the viewing volume. That process is not deterministic, since views with "camera off" effectively have the camera positioned at infinity and when we turn "camera on" we have to infer a camera position based on the contents of the scene. Perhaps an illustration of what happens will help.

Let's say you start with the camera on with this view:

on the left is what the user sees. On the right shows the camera position and lens angle shown by the dot and the blue lines. The green line is the "focus plane", that would be the what the camera would be focused on in real life (things closer and farther than that plane would be out-of-…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pmconne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants