Remote Controlled Area widget for trame provide components and communication infrastructure to display remote generated image based content while allowing interaction forwarding such as mouse, touch and multi-pointer devices.
This library aims to provide a core that can then be extended or specialized for any backend. But its initial integration will be focused toward VTK and/or ParaView for enabling interactive remote rendering. But because it aims to be generic, you should be able to rely on its core to connect and drive any kind of backend that could produce images/video-stream and react to mouse interaction.
trame-rca is made available under the Apache Software License.
Build and install the Vue components
cd vue-componentsnpm inpm run buildcd -Install the component
pip install -e .Faster Jpeg encoding using TurboJPEG.
macOS system install
# macOSbrew install jpeg-turboWindows install
Download and install from Github: https://github.com/libjpeg-turbo/libjpeg-turbo/releases
Linux install
# RHEL/CentOS/Fedora
# YUM doc: https://libjpeg-turbo.org/Downloads/YUM
# Ubuntuapt-get install libturbojpegOnce your system is ready, you can try our code example:
pip install trame trame-vuetify vtkpip install "trame-rca[turbo]"
# other encoders: jpeg, avif, turbo-jpeg, png, webppython ./examples/01_vtk/vtk_cone_simple.py --encoder turbo-jpegVTKStreaming provides tools for encoding and streaming frames from a VTK OpenGL render window using video codecs. When NVENC is available, it enables H.264/H.265 hardware encoding; otherwise, software encoding falls back to VP9 via libvpx.
You can try our code example:
pip install trame trame-vuetify vtkpip install "trame-rca[vtkstreaming]"python ./examples/05_video/vtk_cone_simple_video.pyIn order to use source-build of vtkstreaming, please clone [VTKStreaming](https://github.com/Kitware/VTKStreaming.git) one level up outside the trame-rca directory, checkout the wheel branch, and install it inside the trame-rca virtual environment
cd ..git clone https://github.com/Kitware/VTKStreaming.gitcd VTKstreaminguv pip install --group dev # build deps into active venv; index from tool.uv.indexuv pip install -e . --no-build-isolationcd ../trame-rcapython ./examples/05_video/vtk_cone_simple_video.py