light-viz
light-viz copied to clipboard
Is it possible to use light-viz as a client-only library?
Say we have a .pvd
document in some folder and all related files. Can we preprocess that .pvd
so that a serverless (no paraview, no light-viz special server running) - js only (say runnable on jsfiddle) client could be able to render and run modules such as clip, contour, slice, mslice, streamline, volume, threshold
?
Context: simple use case: itk-vtk-image-viewer
but smart and for pvd files; VTK.js allows us to do similar stuff , requires to preprocess .pvd via a macro.
Not yet as vtk-js does not have any of those filters available. For that you will still need a server unless you precompute all possible geometries for all the filter settings you plan to be able to see on the client side. Like we do with ArcticViewer
But you could build a setup where no rendering is needed on the server side, just data processing and leverage vtk-js to perform the rendering on the client side.