Volume rendering, --proxies
See original GitHub issueHi all,
Paraviewweb/Visualizer is a very useful tool for demonstration and communication between collaborators working on a project. Here are some problems when testing Visualizer :
(1) I tried to visualize volume data (4 unsigned char components : RGB + opacity) with Visualizer ( the version in ParaView-5.5.0-Qt5-MPI-Linux-64bit), the file is loaded correctly in Visualizer, I uncheck the checkbox “Map Scalars” so that it can directly interpret colors, but I cannot get right volume rendering, it seems that for the opacity it chooses Magnitude instead of taking the last component. I also tried with the nightly build version (ParaView-5.5.0-342-g968ff44-Qt5-MPI-Linux-64bit), which has a new checkbox “Multi Components Mapping” for multi component array, but checked or not, it does not solve the problem. However the visualization works perfectly on Paraview. Could you advise me what to do?
(2) Is it possible to start Visualizer with different defaut settings (check or uncheck checkboxes, specify background color, etc)?
(3) It is interesting to be able to add other readers and filters via the --proxies option, but strangely it crashes, even with the defaut proxies :
/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/bin/pvpython -dr /home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/server/pvw-visualizer.py --content /home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/www/ --port 8080 --data /home/alex/dev/Data/ --proxies /home/alex/dev/test/defaut_proxies.json
Traceback (most recent call last):
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/server/pvw-visualizer.py", line 241, in <module>
server.start_webserver(options=args, protocol=_VisualizerServer)
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/wslink/server.py", line 180, in start_webserver
wslinkServer = protocol()
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/web/pv_wslink.py", line 12, in __init__
vtk_wslink.ServerProtocol.__init__(self)
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/vtkmodules/web/wslink.py", line 44, in __init__
websocket.ServerProtocol.__init__(self)
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/wslink/websocket.py", line 62, in __init__
self.initialize()
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/share/paraview-5.5/web/visualizer/server/pvw-visualizer.py", line 192, in initialize
self.registerVtkWebProtocol(pv_protocols.ParaViewWebProxyManager(allowedProxiesFile=_VisualizerServer.proxies, baseDir=_VisualizerServer.dataDir, fileToLoad=_VisualizerServer.fileToLoad, allowUnconfiguredReaders=_VisualizerServer.allReaders))
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/web/protocols.py", line 1597, in __init__
self.readAllowedProxies(allowedProxiesFile)
File "/home/alex/dev/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/web/protocols.py", line 1632, in readAllowedProxies
with open(filepath, 'r') as fd:
NameError: global name 'filepath' is not defined
All suggestions and answers are welcome!
Alex
Issue Analytics
- State:
- Created 5 years ago
- Comments:30

Top Related StackOverflow Question
What good news, it’s fantastic! 😉))
Yes with what I previously said.