<div dir="auto">This would be a great example. Would it be hard to replicate in C++</div><div class="gmail_extra"><br><div class="gmail_quote">On Nov 27, 2017 6:19 PM, "David E DeMarle" <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Finally had a second to look into it.<br>
<br>
There seem to be issues with short word type (and likely endian) in<br>
the ospray volume renderer interface. Converting the array to float<br>
results in a close match between ospray and gl volume rendered data.<br>
<br>
Sorry for the hassle and delay Ian.<br>
<br>
I'll file a bug report and we'll try and get it addressed.<br>
<br>
Attached find a sample rendered with lighting and shadows enabled.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
Principal Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909">518-881-4909</a><br>
<br>
<br>
On Wed, Nov 8, 2017 at 4:57 AM, ianl <<a href="mailto:ilindsay@insigniamedical.co.uk">ilindsay@insigniamedical.co.<wbr>uk</a>> wrote:<br>
> Hi David,<br>
><br>
> Basically any DICOM CT set will do, but a good example is the Visible Human<br>
> Female Ankle, available here:<br>
> <a href="https://mri.radiology.uiowa.edu/VHDicom/VHFCT1mm/VHF-Ankle.tar.gz" rel="noreferrer" target="_blank">https://mri.radiology.uiowa.<wbr>edu/VHDicom/VHFCT1mm/VHF-<wbr>Ankle.tar.gz</a><br>
><br>
> This renders fine (see image) with the GPU renderer. I get a totally black<br>
> image when I add in the OSPRay render pass. I have verified this by writing<br>
> a loop to check the value of all output pixels, all end up as zeros.<br>
><br>
> <<a href="http://vtk.1045678.n5.nabble.com/file/t147622/render.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/file/t147622/render.png</a>><br>
><br>
> I have had a play around with the TestOSPRayVolumeRenderer.cxx test. I<br>
> removed the data surface filter so the test only renders the volumetric<br>
> image, this seems to render fine with OSPRay, so it seems that my set-up is<br>
> ok.<br>
><br>
> As another test, I added a marching cubes filter to extract an iso surface<br>
> to my pipeline, along with a vtkPolyDataMapper to render it. In this<br>
> configuration, I see a surface rendered by OSPRay, so it seems that the<br>
> issue is something specific to my pipeline and volumetric rendering. I'll<br>
> keep digging.<br>
><br>
><br>
><br>
> --<br>
> Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div></div>