Details
Description
View3D mapping functions do not work correctly when View3D camera is OrthographicCamera and the screen has 2x pixel ratio. See the attached example to repro.
The example has green cubes to provide coordinate reference. Cubes are located at (x:/-100, y:/-100).
Clicking on the view maps the click position to the scene using mapTo3DScene and displays it. It also moves blue cube to that position.
The red dot shows the result of mapFrom3DScene function on 100,100, which should put it on top of one of the green cubes.
Use "Change camera" button to switch between two differently angled ortho cameras and one perspective camera to see differences.
The example works as expected when perspective camera is selected and also for ortho cameras if screen device pixel ratio is 1.0, but fails to map correctly when ortho camera is selected and device pixel ratio is greater than 1.0.
This bug causes QDS 3D edit view not work correctly when using orthographic camera.
Attachments
Issue Links
- resulted from
-
QDS-5469 3D edit gizmos are incorrectly sized and icons are in wrong positions in orthographic view
- Closed