<div dir="ltr">Not exactly related to this, but I did find a bug in our OpenVR code that I will be pushing to a topic soon. It also includes some other performance tweaks. The bug can have a big impact on performance as it could cause the VR display to wait for the screen display vsync. I'll be pushing the fix for the 7.1.1 release as well.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 8, 2016 at 8:40 AM, Sebastian Heerwald <span dir="ltr"><<a href="mailto:bastiheerwald@live.de" target="_blank">bastiheerwald@live.de</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">
<div id="m_-2334201100729759232divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hey,</p>
<p><br>
</p>
<p>Thank you for your reply.</p>
<p>I have build a little program which only loads a volume dataset and displays it within the RenderWindow.</p>
<p>Since the OpenVR interface is a little bit hackish within VTK the only thing that decides whether it renders for OpenVR or for normal 2D-Display is whether we link against vtkOpenVR and vtkRenderingOpenVR modules or not.</p>
<p>Everything code related is the same.</p>
<p><br>
</p>
<p>So to reply to your Question:</p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">> Could you try rendering a volume with an identity matrix set as
its transformation?</span><br>
</p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px"><br>
</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">I've build this simple program and it only places a volume dataset
within the world without any transformation. The volume is directly given to the <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">GPUVolumeRCMapper without any transformation.</span> In "2D"-Renderwindow everything is fine.
Also in anaglyph rendering I get a nice 3D View.</span></p>
<p>But when I link against OpenVR module the view dependend distortions appear within VR. I've tried some things. </p>
<p>All I can say is, that the errors appear if I look at any edge or corner of the surrounding (invisible) boundingbox around the rendered volume. If I look directly on one side of the boundingbox everything seems fine. </p>
<p><br>
</p>
<p>The only thing I can imagine from this perspective is, that the <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">GPUVolumeRCMapper gets wrong view directions for the eyes. But the vtkOpenVRCamera objects seems to do everything
right.</span></p>
<p><br>
</p>
<p>I don't know how to adjust the clipping box / bounding box you mentioned. Can you explain how I can do this, maybe this helps me to debug further?</p>
<p><br>
</p>
<p>Sincerely,</p>
<p>Sebastian</p>
<pre style="margin-top:0px;margin-bottom:0px"></pre>
<p></p>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-2334201100729759232divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> vtkusers <<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>> im Auftrag von Alvaro Sanchez <<a href="mailto:alvaro.sanchez@kitware.com" target="_blank">alvaro.sanchez@kitware.com</a>><br>
<b>Gesendet:</b> Mittwoch, 7. Dezember 2016 18:14<br>
<b>An:</b> polybos<br>
<b>Cc:</b> VTK Users<br>
<b>Betreff:</b> Re: [vtkusers] Distortions in Volumerendering in VR-Mode (HTC Vive)</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I have never tested the GPUVolumeRCMapper with OpenVR but as far as I remember Ken mentioned some time ago that he encountered a clipping/bbox related issue when adjusting the volume's orientation and position. Could you try rendering a volume with an
identity matrix set as its transformation?, this might give you a hint of what the mapper is doing wrong.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Alvaro</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Dec 7, 2016 at 11:38 AM, polybos <span dir="ltr">
<<a href="mailto:franz@znarfsoft.de" target="_blank">franz@znarfsoft.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sebastian Heerwald wrote<br>
<span>> If I look onto the volume rendering and move around it, there appear<br>
> "refraction" lines.<br>
<br>
</span>Unfortunately I cannot help with this issue but I would also be very pleased<br>
if someone could help here. Or did you, Sebastian, already achieve some more<br>
insights into this problem?<br>
I also get such distortions on the HTC Vive when using<br>
vtkVolumeRayCastMapper, while everything seems perfectly well in a mesh-only<br>
rendering.<br>
<br>
Does anyone have similar issues? Maybe with Occulus Rift? As far as I<br>
understand Sebastian just test with a HTC Vive. At least I can only test<br>
with a HTC Vive.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Distortions-in-Volumerendering-in-VR-Mode-HTC-Vive-tp5741338p5741457.html" rel="noreferrer" target="_blank">
http://vtk.1045678.n5.nabble.c<wbr>om/Distortions-in-Volumerender<wbr>ing-in-VR-Mode-HTC-Vive-<wbr>tp5741338p5741457.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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/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><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-2334201100729759232gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Alvaro Sanchez</div>
<div>Kitware, Inc.</div>
<div><span style="color:rgb(0,0,0);font-family:Arial;font-size:14.6667px;line-height:20.24px;white-space:pre-wrap">Senior
</span>R&D Engineer</div>
<div>21 Corporate Drive</div>
<div>Clifton Park, NY 12065-8662</div>
<div>Phone: <a href="tel:518-881-4901" value="+15188814901" target="_blank">518-881-4901</a></div>
</div>
</div>
</div>
</div>
</font></span></div>
</div>
</div>
</div>
</div>
<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><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>