Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.9
-
None
-
Qt 5.9.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 7.0.2 (clang-700.1.81) (Apple)) on "cocoa"
OS: OS X Yosemite (10.10) [darwin version 14.5.0]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE
Screens: 1, High DPI scaling: inactive
0 "iMac" Depth: 24 Primary: yes
Manufacturer:
Model:
Serial number:
Geometry: 2560x1440+0+0 Available: 2560x1343+0+23
Physical size: 596.55x335.56 mm Refresh: 60 Hz Power state: 0
Physical DPI: 109,109 Logical DPI: 72,72 Subpixel_RGB
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
LibGL Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GTX 780M OpenGL Engine
Version: 2.1 NVIDIA-10.4.3 310.41.35f01
Shading language: 1.20
Format: Version: 2.1 Profile: 0 Swap behavior: 2 Buffer size (RGB): 8,8,8 Depth buffer: -1 Stencil buffer: -1Qt 5.9.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 7.0.2 (clang-700.1.81) (Apple)) on "cocoa" OS: OS X Yosemite (10.10) [darwin version 14.5.0] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE Screens: 1, High DPI scaling: inactive 0 "iMac" Depth: 24 Primary: yes Manufacturer: Model: Serial number: Geometry: 2560x1440+0+0 Available: 2560x1343+0+23 Physical size: 596.55x335.56 mm Refresh: 60 Hz Power state: 0 Physical DPI: 109,109 Logical DPI: 72,72 Subpixel_RGB DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 LibGL Vendor: NVIDIA Corporation Renderer: NVIDIA GeForce GTX 780M OpenGL Engine Version: 2.1 NVIDIA-10.4.3 310.41.35f01 Shading language: 1.20 Format: Version: 2.1 Profile: 0 Swap behavior: 2 Buffer size (RGB): 8,8,8 Depth buffer: -1 Stencil buffer: -1
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.)