[vtkusers] VTK OpenVR issue and questions

Ken Martin ken.martin at kitware.com
Thu Oct 5 09:03:15 EDT 2017


For (1) Make sure you set yourRenderWindow->SetMultiSamples(0) before the
first render,  that could be the issue. Not sure about flickering and
lagging but if you have a nvidia card make sure you open the nvidia control
panel and set your preferred graphics processor to be the high performance
nvidia processor and set vertical sync to Off (I forget which it is). Apply
those settings and then try again.

2) the clipping should clip whatever is in the scene. Changing it to clip
only some actors is not supported. You would need to look at the code in
vtkOpenVRInteractorStyle.cxx and see how we do the clipping and then use
similar logic in your code.




On Thu, Oct 5, 2017 at 7:52 AM, Denis Ducreux <denis.ducreux at icloud.com>
wrote:

> Hi,
> I’m quite new to VTK coding ; I downloaded and compiled the last git
> master version and I would like to know :
>
> 1- When using Volume Rendering (such as in Medical4 example) in OpenVR, no
> volume is displayed at all in the VR Headset. When I try to add for example
> legacy .vtk files (in polydata) to the scene, the whole rendering is
> flickering, and the volume rendering is not displayed, but the polydata are
> displayed with flickering and lagging.
>
> 2- When using the OpenVR rendering, it is possible to clip the whole scene
> (choice from user’s menu).
> How could I :
>         2.1 - Map a slice from an ImageData Volume to the clipped scene ?
>         2.2 - I have a data volume (binary raw, displayed after marching
> cube) and a polydata file (legacy .vtk) ; I would like to clip the volume
> only, not the poly data inside the OpenVR rendering.How could I do this ?
>
> Thanks for your help :-)
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171005/ea7c991f/attachment.html>


More information about the vtkusers mailing list