[vtkusers] Shadow support on volume rendering

ianl ilindsay at insigniamedical.co.uk
Tue Oct 31 12:05:34 EDT 2017


The data I am using is straightforward 16 bit signed CT data, no unstructured
grids. I believe I saw that support for this had been added recently to
OSPRay. I have put the following code in to add the render pass
(rendererToAddTo is a vtkRenderer):

vtkSmartPointer<vtkOSPRayPass> osprayPass =
vtkSmartPointer<vtkOSPRayPass>::New();
rendererToAddTo->SetPass(osprayPass.GetPointer());

With this commented out, the volume renders fine with the GPU renderer, so I
am fairly sure the rest of the pipeline is ok.

With these lines in place, I get the same exception when the light array is
created. Unfortunately, I am testing this in an existing class hierarchy, so
giving you the pipeline code may be a bit tricky as the code is in various
places. The light is just the default one (follow camera?) that vtk adds
automatically.

I have managed to run the tests as you asked in your previous message and
all seems fine (rendered images appear) until the final two. These look to
'half render' an urn with a grey rectangle below. The output is as follows:

D:\Build\VTK\VTK 8.0.1 VS2017\VTK64OSPRay>"D:\Program
Files\CMake\bin\ctest.exe"
 -R OSPRay -C Debug
Test project D:/Build/VTK/VTK 8.0.1 VS2017/VTK64OSPRay
      Start 1042: vtkRenderingOSPRay-HeaderTest
 1/29 Test #1042: vtkRenderingOSPRay-HeaderTest
................................
.....   Passed    0.20 sec
      Start 1043: vtkRenderingOSPRayCxx-TestOSPRayCompositePolyDataMapper2
 2/29 Test #1043: vtkRenderingOSPRayCxx-TestOSPRayCompositePolyDataMapper2
.....
.....   Passed    2.50 sec
      Start 1044: vtkRenderingOSPRayCxx-TestOSPRayDynamicObject
 3/29 Test #1044: vtkRenderingOSPRayCxx-TestOSPRayDynamicObject
................
.....   Passed    2.02 sec
      Start 1045: vtkRenderingOSPRayCxx-TestOSPRayDynamicScene
 4/29 Test #1045: vtkRenderingOSPRayCxx-TestOSPRayDynamicScene
.................
.....   Passed    7.59 sec
      Start 1046: vtkRenderingOSPRayCxx-TestOSPRayImplicits
 5/29 Test #1046: vtkRenderingOSPRayCxx-TestOSPRayImplicits
....................
.....   Passed    1.01 sec
      Start 1047: vtkRenderingOSPRayCxx-TestOSPRayLayers
 6/29 Test #1047: vtkRenderingOSPRayCxx-TestOSPRayLayers
.......................
.....   Passed    0.83 sec
      Start 1048: vtkRenderingOSPRayCxx-TestOSPRayLights
 7/29 Test #1048: vtkRenderingOSPRayCxx-TestOSPRayLights
.......................
.....   Passed    1.89 sec
      Start 1049: vtkRenderingOSPRayCxx-TestOSPRayMultiBlock
 8/29 Test #1049: vtkRenderingOSPRayCxx-TestOSPRayMultiBlock
...................
.....   Passed    1.64 sec
      Start 1050:
vtkRenderingOSPRayCxx-TestOSPRayMultiBlockPartialArrayFieldDat
a
 9/29 Test #1050:
vtkRenderingOSPRayCxx-TestOSPRayMultiBlockPartialArrayFieldDat
a ...   Passed    0.89 sec
      Start 1051: vtkRenderingOSPRayCxx-TestOSPRayOrthographic
10/29 Test #1051: vtkRenderingOSPRayCxx-TestOSPRayOrthographic
.................
.....   Passed    1.89 sec
      Start 1052: vtkRenderingOSPRayCxx-TestOSPRayPass
11/29 Test #1052: vtkRenderingOSPRayCxx-TestOSPRayPass
.........................
.....   Passed    1.99 sec
      Start 1053: vtkRenderingOSPRayCxx-TestOSPRayRenderMesh
12/29 Test #1053: vtkRenderingOSPRayCxx-TestOSPRayRenderMesh
...................
.....   Passed    1.30 sec
      Start 1054: vtkRenderingOSPRayCxx-TestOSPRayRendererType
13/29 Test #1054: vtkRenderingOSPRayCxx-TestOSPRayRendererType
.................
.....   Passed    4.19 sec
      Start 1055: vtkRenderingOSPRayCxx-TestOSPRayScalarBar
14/29 Test #1055: vtkRenderingOSPRayCxx-TestOSPRayScalarBar
....................
.....   Passed    1.07 sec
      Start 1056: vtkRenderingOSPRayCxx-TestOSPRayTime
15/29 Test #1056: vtkRenderingOSPRayCxx-TestOSPRayTime
.........................
.....   Passed    1.18 sec
      Start 1057: vtkRenderingOSPRayCxx-TestOSPRayWindow
16/29 Test #1057: vtkRenderingOSPRayCxx-TestOSPRayWindow
.......................
.....   Passed    0.79 sec
      Start 1058: vtkRenderingOSPRayCxx-TestGPURayCastCameraInside
17/29 Test #1058: vtkRenderingOSPRayCxx-TestGPURayCastCameraInside
.............
.....   Passed   12.82 sec
      Start 1059: vtkRenderingOSPRayCxx-TestGPURayCastCellData
18/29 Test #1059: vtkRenderingOSPRayCxx-TestGPURayCastCellData
.................
.....   Passed    1.86 sec
      Start 1060:
vtkRenderingOSPRayCxx-TestGPURayCastCameraInsideSmallSpacing
19/29 Test #1060:
vtkRenderingOSPRayCxx-TestGPURayCastCameraInsideSmallSpacing .
.....   Passed   18.90 sec
      Start 1061: vtkRenderingOSPRayCxx-TestGPURayCastMapperBenchmark
20/29 Test #1061: vtkRenderingOSPRayCxx-TestGPURayCastMapperBenchmark
..........
.....   Passed   13.99 sec
      Start 1062: vtkRenderingOSPRayCxx-TestGPURayCastMapperSampleDistance
21/29 Test #1062: vtkRenderingOSPRayCxx-TestGPURayCastMapperSampleDistance
.....
.....   Passed    2.82 sec
      Start 1063: vtkRenderingOSPRayCxx-TestGPURayCastPerspectiveParallel
22/29 Test #1063: vtkRenderingOSPRayCxx-TestGPURayCastPerspectiveParallel
......
.....   Passed    1.31 sec
      Start 1064: vtkRenderingOSPRayCxx-TestGPURayCastVolumeLightKit
23/29 Test #1064: vtkRenderingOSPRayCxx-TestGPURayCastVolumeLightKit
...........
.....   Passed    1.08 sec
      Start 1065: vtkRenderingOSPRayCxx-TestGPURayCastVolumePolyData
24/29 Test #1065: vtkRenderingOSPRayCxx-TestGPURayCastVolumePolyData
...........
.....   Passed    1.04 sec
      Start 1066: vtkRenderingOSPRayCxx-TestGPURayCastVolumeScale
25/29 Test #1066: vtkRenderingOSPRayCxx-TestGPURayCastVolumeScale
..............
.....   Passed    1.28 sec
      Start 1067: vtkRenderingOSPRayCxx-TestGPURayCastVolumeUpdate
26/29 Test #1067: vtkRenderingOSPRayCxx-TestGPURayCastVolumeUpdate
.............
.....   Passed    5.80 sec
      Start 1068: vtkRenderingOSPRayCxx-TestGPUVolumeRayCastMapper
27/29 Test #1068: vtkRenderingOSPRayCxx-TestGPUVolumeRayCastMapper
.............
.....   Passed   48.46 sec
      Start 1069: vtkRenderingOSPRayCxx-TestOSPRayVolumeRenderer
28/29 Test #1069: vtkRenderingOSPRayCxx-TestOSPRayVolumeRenderer
...............
.....***Failed    3.18 sec
      Start 1070: vtkRenderingOSPRayCxx-TestSmartVolumeMapper
29/29 Test #1070: vtkRenderingOSPRayCxx-TestSmartVolumeMapper
..................
.....***Failed    3.41 sec

93% tests passed, 2 tests failed out of 29

Label Time Summary:
vtkRenderingOSPRay    = 146.91 sec (29 tests)

Total Test time (real) = 147.49 sec

The following tests FAILED:
        1069 - vtkRenderingOSPRayCxx-TestOSPRayVolumeRenderer (Failed)
        1070 - vtkRenderingOSPRayCxx-TestSmartVolumeMapper (Failed)
Errors while running CTest





--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list