Kitware / light-viz

Scientific Visualization application for tailored post-processing relying on a ParaViewWeb backend.
https://kitware.github.io/light-viz/
BSD 3-Clause "New" or "Revised" License
20 stars 7 forks source link

Is it possible to use light-viz as a client-only library? #65

Open OlegJakushkin opened 6 years ago

OlegJakushkin commented 6 years ago

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.

jourdain commented 6 years ago

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.