/vtk-remote-render

A simple example of a ParaViewWeb remote renderer.

Primary LanguagePython

VTK Remote Render Test

A simple example of a ParaViewWeb remote renderer.

Setup

Render server

You will need a special version of Python which includes ParaViewWeb. This can be obtained by installing the ParaView desktop application on your system. It will include a Python binary called pvpython. On Windows, it will be located somewhere like:

C:\Program Files\ParaView 5.5.2-Qt5-MPI-Windows-64bit/bin/pvpython.exe

Web client

You will need to install Node.js to build and serve the web client.

Navigate to /client/. Install the project dependencies by typing:

npm install

Run

Render server

Navigate to /server/. Run vtk_server.py using pvpython by typing (on Windows):

"C:\Program Files\ParaView 5.5.2-Qt5-MPI-Windows-64bit/bin/pvpython.exe" vtk_server.py --port 1234

Web client

Navigate to /client/. To serve the web client in development mode, type:

npm start

and open localhost:9999 in your web browser.

To build a production version of the web client, type:

npm run build