How can use Orthogonal camera?

how can use Orthogonal camera?

Set your camera to have a parallel projection instead of the default perspective projection: Camera::setParallelProjection.


how can set FlyByCamera support ParallelProjection zoom ?

The visual effect of zooming is done in a parallel projection by altering the distance between the side planes of the camera frustum - the bigger the distance between the planes, the farther zoomed out the image will appear.

See Camera::setFrustum() - I suggest using the setFrustumTop(), setFrustomLeft(), etc. methods rather than this one, as you probably don’t want to change the frustum near/far planes, just the side planes.


@qq1053831109 Please provide feedback. Are you satisfied with the answers you got?

yes ,the hub is good,and The people here are very nice!!

1 Like