Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59583

Zooming camera using orthographic projection does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • Some future release
    • 5.9
    • Qt3D
    • None
    • macOS

    Description

      Using the bascishapes-cpp example, change line 115:

      cameraEntity->lens()->setPerspectiveProjection(45.0f, 16.0f/9.0f, 0.1f, 1000.0f);` 
      

      to

      cameraEntity->setProjectionType( Qt3DRender::QCameraLens::OrthographicProjection );
      cameraEntity->lens()->setOrthographicProjection( -25.0f, 25.0f, -25.0f, 25.0f, -1024.0f, 1024.0f );
      

      Compile and run.

      Trying to zoom using either the keyboard (shift-arrows) or mouse scroll wheel has no effect on the camera.

      (Does not work with first person controller or the orbit controller.)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            juan.casafranca Juan José Casafranca
            asm Andy M
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes