Kitware / paraviewweb

Web framework for building interactive visualization relying on VTK or ParaView to produce visualization data
http://kitware.github.io/paraviewweb/
BSD 3-Clause "New" or "Revised" License
163 stars 50 forks source link

ParaViewWeb based on pvdataserver only #510

Open CapLek opened 4 years ago

CapLek commented 4 years ago

Is it possible to create a ParaViewWeb server deployment based on pvdataserver only? I need to have it just as a postprocessor to transform data for custom client-side rendering. Or the pvrenderingserver is a mandatory part of ParaViewWeb and the only option is to build binaries with Mesa dependency?

jourdain commented 4 years ago

So technically the pvrenderingserver is not mandatory and you can use a pre-built version of ParaView with OSMesa to do the work. Basically, you don't need to create a view and perform rendering operations. I have several pvw applications that are designed that way, where I only use the server side for data processing and the communication infrastructure to deliver either geometry or other types of data for local rendering using vtk.js or something else like a chart library.

But it is true that we can not easily create a ParaView process without each service (client, data, rendering).

CapLek commented 4 years ago

@jourdain thank you for clarification. Could you please give some guidelines on how to implement ParaViewWeb server basing on pvdataserver? I could not find any in the documentation.

jourdain commented 4 years ago

You can not run only that part. Just use pvpython from a OSMesa build that you can get for linux here

jourdain commented 4 years ago

As long you don't call simple.Show() or simple.Render(), no view will be created and no rendering will happen.