简体   繁体   English

如何设置ParaVIew 5以使用python的Ofscreen渲染?

[英]How to set ParaVIew 5 to use Ofscreen rendering from python?

So ParaView 5 builds come with prebuild ofscreen rendering . 因此,ParaView 5构建带有屏幕渲染的预构建。 When one uses ParaView UI one can set stuff like ./paraview --mesa-swr-avx2 for it to run mesa renderer. 当使用ParaView UI时,可以设置诸如./paraview --mesa-swr-avx2的东西来运行台面渲染器。 I use Jupyter, and ParaView in conjunction with tons of other libraries. 我将Jupyter和ParaView与大量其他库结合使用。 How to set ParaView rendering settings from python code (in version 5+)? 如何从python代码设置ParaView渲染设置(版本5+)?

The prebuilt mesa is managed in ParaView binaries by providing a forwarding executable that sets up appropriate environment variables before exec-ing the real paraview executable to ensure Mesa OpenGL libraries are loaded. 通过提供转发可执行文件来管理Parabuild二进制文件中的预构建台面,该转发可执行文件在执行实际的paraview可执行文件以确保加载Mesa OpenGL库之前会设置适当的环境变量。 Hence, there's no way to set those up through Python script. 因此,无法通过Python脚本进行设置。 You determine the environment variables that are needed to be set by executing paraview as follows: 您可以通过执行以下paraview来确定需要设置的环境变量:

paraview --mesa-swr-avx2 --print

You should be able to set those up separately in your environment and hopefully that'd work. 您应该能够在您的环境中分别设置它们,并希望能奏效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM