[vtkusers] How to enable vtkRenderingOculus compling in VTK 7 and 8

Yu, Fujiang (IKET) fujiang.yu at kit.edu
Mon Nov 5 16:57:18 EST 2018

Hi, all

Thanks for the suggestions from Andras.
After deep searching of the CmakeList files,  the plug of compiling the sub-module of Oculus in VTKrendering is found in the advanced options in cmake. I neglected this part at first, which makes the problem. Hope this can be helpful to people who met similar problem.

From: Andras Lasso <lasso at queensu.ca>
Sent: Monday, November 5, 2018 15:17
To: Yu, Fujiang (IKET); vtkusers at vtk.org
Subject: RE: [vtkusers] How to enable vtkRenderingOculus compling in VTK 7 and 8

There is a complete working example of using OpenVR interface in VTK in SlicerVirtualReality extension: https://github.com/KitwareMedical/SlicerVirtualReality. You can copy the relevant CMake files into your project and start from there.

If you are in the field of medical imaging then I would recommend to use 3D Slicer with this extension as is; but you may even consider this if you are working in a different field (3D Slicer is used in various other application areas, from astronomy to paleontology).


-----Original Message-----
From: Yu, Fujiang (IKET) <fujiang.yu at kit.edu>
Sent: Monday, November 5, 2018 2:17 AM
To: Andras Lasso <lasso at queensu.ca>
Subject: Re: [vtkusers] How to enable vtkRenderingOculus compling in VTK 7 and 8

Dear Andras,

Thanks a lot for your kind reply.
However, it seems like the CmakeList in OpenVR folder and the one in Oculus folder are not so different. When trying to do cmake on the project. Both the module of Oculus and OpenVR are totally neglected without configuring. No project will be generated for these two sub-modules.
I've checked the CmakeList in the main folder and the ones above, there seems nothing in the script on turning on these options. So any tips on how to switch on the the Oculus or OPenVR sub-module in the rendering module for doing cmake?

From: Andras Lasso <lasso at queensu.ca>
Sent: Saturday, November 3, 2018 17:57
To: Yu, Fujiang (IKET); vtkusers at vtk.org
Subject: RE: [vtkusers] How to enable vtkRenderingOculus compling in VTK 7 and 8

You can use OpenVR module with all OpenVR-compatible headsets, including HTC Vive, Oculus Rift, and all Windows Mixed Reality headsets.

The old Oculus-only interface has been removed from VTK in April (https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKitware%2FVTK%2Fcommit%2F97f76e8bbb547ee0a6cc07664048e6cf97f7c694&data=02%7C01%7Classo%40queensu.ca%7Cf0ee49e40cf6445c4de808d642eeaddc%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636769990218593037&sdata=EX4pM4icSV9dgTIkSx42qtIThfYg%2Fu1rG537XXm50Ls%3D&reserved=0).


-----Original Message-----
From: vtkusers <vtkusers-bounces at public.kitware.com> On Behalf Of Fujiang Yu
Sent: Saturday, November 3, 2018 11:50 AM
To: vtkusers at vtk.org
Subject: [vtkusers] How to enable vtkRenderingOculus compling in VTK 7 and 8

Dear guys,

Got one simple problem which troubling me for twodays.
In VTK 7 and 8, Oculus and OpenVR are supported and becomes a module vtkRendering.
However, it seems like by the default setting of CmakeList, the Oculus module will not be enabled.
Everytime I'm configuring the packing in Cmake, it will show:

Backend OpenGL2 modules:
Enabling modules for OpenGL2.
Backend OpenGL modules:
which means vtkRenderingOculus is not enabled

Wish to know how can I enable the Oculus module in VTKRending?

Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7Cf0ee49e40cf6445c4de808d642eeaddc%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636769990218593037&sdata=JImqlnqDb2VrqkuwCmJuvZ6RyMXDc7ijeHquX3sQwog%3D&reserved=0
Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cf0ee49e40cf6445c4de808d642eeaddc%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636769990218593037&sdata=ftrw1VRGiIMhfrZUel%2FrnhcEeu1XV%2BZ9%2BeSO5e0c2mI%3D&reserved=0

Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cf0ee49e40cf6445c4de808d642eeaddc%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636769990218593037&sdata=WfrsRpsTlJOXMzzmSFyDs8QEdW0vnzTT0muRiQQnV1g%3D&reserved=0

Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cf0ee49e40cf6445c4de808d642eeaddc%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636769990218593037&sdata=AYzSUtryGsdMMjUqOPi5dthEi6CEh2Lz%2FJNhOwYfEKo%3D&reserved=0

Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cf0ee49e40cf6445c4de808d642eeaddc%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636769990218593037&sdata=oqvmdAbVi5hlb%2FC8c7c%2B2h7npSnzHpa%2Ff%2BHl5mM7we4%3D&reserved=0

Follow this link to subscribe/unsubscribe:

More information about the vtkusers mailing list