<div dir="ltr">Another note - if your data is unstructured grid, neither ospray volume rendering path will display anything unless you resample to image data. That limitation will be removed in the next couple of days as OSPRay 1.4 now has support for unstructured grid volume rendering.<div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>David E DeMarle<br>Kitware, Inc.<br>Principal Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Oct 27, 2017 at 12:17 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">using vtkOSPRayVolumeMapper directly </span><span style="font-size:12.8px">instead of vtkSmartVolumeMapper</span></blockquote><div><br></div></span><div>To get volumetric shadows everything in the renderer has to be rendered by ospray (i.e. just stick an OSPRay pass into your renderer and let it take over).</div><div><br></div><div>The osprayvolumemapper option (both directly and within smartvolumemapper) makes ospray responsible for rendering only that one volume within and otherwise openGL rendered scene. It won't produce shadows on the GL rendered data. It should otherwise work though, and without seeing your code I can't guess from what you posted what is going wrong. Try running the ospray related tests in your VTK build (ctest -R OSPRay) to diagnose the setup further.</div><div><br></div><div><br></div><div> <br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_4522636036369496050gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span class="">David E DeMarle<br>Kitware, Inc.<br></span>Principal Engineer<span class=""><br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:(518)%20881-4909" value="+15188814909" target="_blank">518-881-4909</a></span></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Fri, Oct 27, 2017 at 11:58 AM, ianl <span dir="ltr"><<a href="mailto:ilindsay@insigniamedical.co.uk" target="_blank">ilindsay@insigniamedical.co.<wbr>uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
I have finally got some time to have a quick revisit of this (was that<br>
really a year ago!).<br>
<br>
Long story short, I simply can't seem to get it to do anything. I have tried<br>
inserting an OSPRayPass into the renderer (following the pattern in the<br>
OSPRay tests), and I have also tried using vtkOSPRayVolumeMapper directly<br>
instead of vtkSmartVolumeMapper. I should note that the pipeline I am<br>
testing with works fine with the GPU based renderer.<br>
<br>
I am using the latest OSPRay and embree builds from their respective<br>
websites on Windows and VTK 8.0.1 built using VS 2017.<br>
<br>
As far as I can see, I am getting a std::runtime_error exception in<br>
vtkOSPRayRendererNode.cxx, line 432:<br>
<br>
OSPData lightArray = ospNewData(this->Lights.size()<wbr>, OSP_OBJECT,<br>
(this->Lights.size()?&this->Li<wbr>ghts[0]:NULL), 0);<br>
<br>
The Lights array looks fine in the debugger with one entry as expected.<br>
<br>
Are there any gotchas you know of that are likely to cause this? I am a bit<br>
stuck presently.<br>
<br>
Thanks<br>
Ian<br>
<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.c<wbr>om/VTK-Users-f1224199.html</a><br>
<div class="m_4522636036369496050HOEnZb"><div class="m_4522636036369496050h5">______________________________<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/opensou<wbr>rce/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_FA<wbr>Q</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/mail<wbr>man/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>