View Issue Details

IDProjectCategoryView StatusLast Update
0004511Slicer4Core: Renderingpublic2018-04-12 14:21
ReporterjcfrAssigned Tosankhesh 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0004511: OpenGL2: Large camera view angle (used in OpenVR) not properly handled with GPU Volume Rendering
Description

VolumeRendering does not properly handle large camera view angle.

Steps To Reproduce

Step to reproduce:

  • Start Slicer
  • File -> download sample data
  • Click on CTACardio
  • Go to "Volume Rendering" module
  • Select GPU Rendering Technique, Select dataset, click on the "eye icon", optionally select preset (see screenshot volume-rendering-module-displaying-cta-cardio.png)
  • From the python interactor, change the view angle:
getNode("vtkMRMLCameraNode1").GetCamera().SetViewAngle(150)
  • Then, zoom and rotate to observe the problem. See screenshot vr-issue-with-large-view-angle-in-perspective-rendering.png
Additional Information

Camera properties associated with screenshot vr-issue-with-large-view-angle-in-perspective-rendering:

vtkOpenGLCamera (0x3ec1af0)
  [...]
  ClippingRange: (1.06139, 1061.39)
  DirectionOfProjection: (-0.540657, -0.579381, -0.609924)
  Distance: 125.961
  EyeAngle: 2
  FocalDisk: 1
  FocalPoint: (0, 2.84217e-14, -5.68434e-14)
  ViewShear: (0, 0, 1)
  ParallelProjection: Off
  ParallelScale: 112.895
  Position: (68.1019, 72.9796, 76.8267)
  Stereo: Off
  Left Eye: 1
  Thickness: 1060.33
  ViewAngle: 150
  UseHorizontalViewAngle: 0
  UserTransform: (none)
(none)
  FreezeFocalPoint: (none)
  ViewPlaneNormal: (0.540657, 0.579381, 0.609924)
  ViewUp: (0.811576, -0.550075, -0.19688)
  WindowCenter: (0, 0)
  UseOffAxisProjection: (0)
  ScreenBottomLeft: (-0.5, -0.5, -0.5)
  ScreenBottomRight: (0.5, -0.5, -0.5)
  ScreenTopRight: (0.5, 0.5, -0.5)
  EyeSeparation: (0.06)
  WorldToScreenMatrix: <identity>
  EyeTransformMatrix: <identity>
  ModelTransformMatrix:  <identity>
  ProjectionTransform: (0x3ec2420
    [...]
    Inverse: (0)
    Matrix: (0x3ec2550)
      [...]
      Elements:
            0.0793731 0 0 0 
            0 0.267949 0 0 
            0 0 -1.002 -2.1249 
            0 0 -1 0 
    Input: (0)
    InverseFlag: 0
    NumberOfConcatenatedTransforms: 1
        0: vtkSimpleTransform at 0x5bc4900
  )

Camera properties associated with screenshot vr-issue-with-large-view-angle-in-orthographic-rendering.png:

vtkOpenGLCamera (0x3ec1af0)
  [...]
  ClippingRange: (1.06788, 1067.88)
  DirectionOfProjection: (-0.572889, -0.634095, -0.519348)
  Distance: 125.961
  EyeAngle: 2
  FocalDisk: 1
  FocalPoint: (0, 2.84217e-14, -5.68434e-14)
  ViewShear: (0, 0, 1)
  ParallelProjection: On
  ParallelScale: 242
  Position: (72.1618, 79.8714, 65.4177)
  Stereo: Off
  Left Eye: 1
  Thickness: 1066.81
  ViewAngle: 150
  UseHorizontalViewAngle: 0
  UserTransform: (none)
(none)
  FreezeFocalPoint: (none)
  ViewPlaneNormal: (0.572889, 0.634095, 0.519348)
  ViewUp: (0.819411, -0.428354, -0.380891)
  WindowCenter: (0, 0)
  UseOffAxisProjection: (0)
  ScreenBottomLeft: (-0.5, -0.5, -0.5)
  ScreenBottomRight: (0.5, -0.5, -0.5)
  ScreenTopRight: (0.5, 0.5, -0.5)
  EyeSeparation: (0.06)
  WorldToScreenMatrix: <identity>
  EyeTransformMatrix: <identity>
  ModelTransformMatrix: <identity>
  ProjectionTransform: (0x3ec2420
    [...]
    Inverse: (0)
    Matrix: (0x3ec2550)
      Debug: Off
      Modified Time: 6515560
      Reference Count: 1
      Registered Events: (none)
      Elements:
            0.00122407 0 0 0 
            0 0.00413223 0 0 
            0 0 -0.00187475 -1.002 
            0 0 0 1 
    Input: (0)
    InverseFlag: 0
    NumberOfConcatenatedTransforms: 1
        0: vtkSimpleTransform at 0x3ef8260
  )
TagsNo tags attached.

Activities

Issue History

Date Modified Username Field Change
2018-02-22 20:18 jcfr New Issue
2018-02-22 20:18 jcfr Status new => assigned
2018-02-22 20:18 jcfr Assigned To => jcfr
2018-02-22 20:18 jcfr File Added: vr-issue-with-large-view-angle-in-perspective-rendering.png
2018-02-22 20:18 jcfr File Added: volume-rendering-module-displaying-cta-cardio.png
2018-02-22 20:20 jcfr Additional Information Updated View Revisions
2018-02-22 20:21 jcfr Additional Information Updated View Revisions
2018-02-22 20:35 jcfr File Added: vr-issue-with-large-view-angle-in-orthographic-rendering.png
2018-02-22 20:36 jcfr Additional Information Updated View Revisions
2018-02-23 20:51 jcfr File Added: slicer-virtual-reality-volume-rendering-cropped.png
2018-02-23 20:51 jcfr Note Added: 0015518
2018-02-27 16:36 jcfr Assigned To jcfr => sankhesh
2018-04-12 14:21 sankhesh Note Added: 0015665