Hey all,
First off, for those of you who follow both the ParaView and VTK Discourse, my apologies for the double posting – I realized today that this is the better place for my question. [The original post is at: ParaView Discourse: vtkXRRenderWindow.
And my question/issue is:
I have a sample “vtk.js” application working using “https://unpkg.com/vtk.js” to provide the VTK functionality, however that version of VTK doesn’t seem to have the XR stuff available, as I get the error message:
Uncaught TypeError: vtk.Rendering.Misc.vtkXRRenderWindow is undefined
I tried using “cdn.jsdelivr.net”, which requires using the “npm/@kitware/vtk.js@30.0.0/vtk.js” path, which may or may-not have “vtkXRRenderWindow”, but I can’t find out, because I now get the error:
Uncaught TypeError: The specifier “globalthis” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “…/” or “/”.
I feel like I’m close with the unpkg.com/vtk.js as it seems to have the “vtkXRRenderWindow” class, but doesn’t have the “newInstance()” method.
Does anyone have an example of a vtk.js program with WebXR features, and making use of a remotely served “vtk.js” package?
Thanks, Bill