Python rendering scene to VR

(Bane Sullivan) #1

Is it possible to implement a way to send a rendering scene (made in Python) to VR kind of like ParaView’s “Send to OpenVR” button?

If so, I’m definitely going to try to implement this for vtki

(Ken Martin) #2

Yes, just replace your code as follows

vtkRendererWindow --> vtkOpenVRRenderWindow
vtkRenderer --> vtkOpenVRRenderer
vtkRenderWindowInteractor --> vtkOpenVRRenderWindowINteractor
vtkCamera --> vtkOpenVRCamera

You need all four of those classes to be created and set for it to work. You cannot rely on the default camera/interactor creation. But make those 4 changes and you should be good.

1 Like