Description
After transition to GLM camera and target spline paths perspective is wrong.
To Reproduce
Steps to demonstrate the behavior:
Load tutorial 30
Click on 'Progressive'
Click on 'Stop'
Goto the 'Camera' tab
Adjust FOV
Expected behavior
Paths are rendered with the proper scale and orientation relative to the 3D scene with occlusion when 'Depth to Alpha' is not enabled.
Desktop
OS: SuSE Leap 15.1 linux x86_64
Gfx card: nVidia GTX 760
Driver version: nVidia 418.87
Additional context
Fix will be in next push/merge cycle
Description After transition to GLM camera and target spline paths perspective is wrong.
To Reproduce Steps to demonstrate the behavior:
Expected behavior Paths are rendered with the proper scale and orientation relative to the 3D scene with occlusion when 'Depth to Alpha' is not enabled.
Desktop
Additional context Fix will be in next push/merge cycle
in
void DisplayWidget::setPerspective()
changedouble vertAngle = 180.0 * ( 2.0 * atan2 ( 1.0, ( 1.0/fov ) ) / M_PI );
todouble vertAngle = 2.0 * atan2 ( 1.0, ( 1.0/fov ) );
edit: this also requires testing for GL version for use of glLoadMatrixd()