[Paraview-developers] LightViz - image resolution and WebGl

Albrecht Kyrieleis akyrieleis at gmail.com
Thu Apr 12 15:15:58 EDT 2018


Using  ps aux | grep pvpython  it seems ok:

albrech+ 17686 10.9  1.6 2151904 269348 pts/3  Sl+  20:07   0:19
/usr/local/share/ParaView-5.5.0-Qt5-MPI-Linux-64bit/lib/pvpython -dr
--force-offscreen-rendering
/usr/lib/node_modules/light-viz/server/pvw-light-viz.py --content
/usr/lib/node_modules/light-viz/dist --port 8080 --viewport-scale 2 --data
data

I have tried to increase the max resolution be passing additional arguments
in  light-viz-cli , but no effect.

Albrecht


On 12 April 2018 at 18:51, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> When you run "ps aux | grep pvpython" do you see that argument properly
> passed?
>
> This is where that argument should be used
> https://github.com/Kitware/light-viz/blob/master/server/
> pvw-light-viz.py#L183
>
> Is the resolution you are trying to use bigger than the default below?
> https://github.com/Kitware/light-viz/blob/master/server/
> pvw-light-viz.py#L160-L161
>
>
>
> On Thu, Apr 12, 2018 at 11:45 AM, Albrecht Kyrieleis <akyrieleis at gmail.com
> > wrote:
>
>> Thank you, Seb
>>
>> I've installed the server on Linux, but view the data in using Chrome
>> browser under Windows7. In light-viz-cli.js I modified :
>>
>>         const cmdLine = [
>>             quotePath(pvPythonExecs[0]),
>>             '-dr',
>>             '--force-offscreen-rendering',
>>             quotePath(path.normalize(path.join(__dirname,
>> '../server/pvw-light-viz.py'))),
>>             '--content', quotePath(path.normalize(path.join(__dirname,
>> '../dist'))),
>>             '--port', program.port,
>>             '--viewport-scale', 2,
>>         ];
>>
>> but this dose not seem to have an effect when restarting the server.
>>
>> Thank you
>>
>> Albrecht
>>
>> On 12 April 2018 at 18:08, Sebastien Jourdain <
>> sebastien.jourdain at kitware.com> wrote:
>>
>>> Hi Albrecht,
>>>
>>> I'm glad you managed to use LightViz with a local installation. Maybe
>>> the best place to talk about LightViz would be the Issue tracker on Github,
>>> but here is fine too (although the paraview-user mailing list might be
>>> better for the mailing side).
>>>
>>> q1) I believe you are on Mac with a retina display. The issue is related
>>> to the reported size between the browser and what VTK/ParaView render. To
>>> solve it, you can provide additional argument when running light-viz to
>>> double the resolution. For that just add "--viewport-scale 2" in the
>>> generated command line as the JS cli does not have that arg built-in. (I
>>> guess I forgot to add it like in visualizer
>>> https://github.com/Kitware/visualizer/blob/master/bin/pvw-vi
>>> sualizer-cli.js#L40 and https://github.com/Kitware/vis
>>> ualizer/blob/master/bin/pvw-visualizer-cli.js#L125-L136)
>>>
>>> q2) No but Visualizer give you the option to either do "remote
>>> rendering" or "local rendering" (webgl). It would be possible to extend
>>> LightViz to switch its renderer like Visualizer is doing.
>>>
>>> q3) Are you thinking frustrum selection or just surface? In either case,
>>> you will need to create a new module. The capability exist within ParaView
>>> but you will have to wire them between the Web UI and the processing that
>>> needs to happen on the server side. And if you are not familiar with
>>> ParaView, that might be a daunting task. But we can help...
>>>
>>> Thanks for reaching out,
>>>
>>> Seb
>>>
>>> On Thu, Apr 12, 2018 at 10:28 AM, Albrecht Kyrieleis <
>>> akyrieleis at gmail.com> wrote:
>>>
>>>> Hi,
>>>> I have installed LightViz and want to modify it to fit exactly our
>>>> needs. Not sure whether this mailing-list is the right one.
>>>>
>>>> I have installed LightViz and Paraview-5.5(Linux CentOS) and can import
>>>> a vtk data file using the --add-dataset option. Visualization and function
>>>> of LightViz is great. But I have three  questions:
>>>>
>>>> - the dataset looks a  bit blurry and the orientation arrows are always
>>>> quite blurry. How can I fix this ?
>>>> - Is LightViz actuallly using WebGl ? If not, how can I modify it to
>>>> use WebGl  and can one hope to get improved performance compared to the
>>>> standard installation ?
>>>> - I would like to add a new feature that allows marking with the mouse
>>>> an area on the dataset and will return the average/Min/Max value of the
>>>> data points enclosed. Is there some module already existing which I can
>>>> bring in for this task ?
>>>>
>>>>
>>>> Thank you very much
>>>>
>>>> Albrecht
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Search the list archives at: http://markmail.org/search/?q=
>>>> Paraview-developers
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> https://public.kitware.com/mailman/listinfo/paraview-developers
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Search the list archives at: http://markmail.org/search/?q=
>> Paraview-developers
>>
>> Follow this link to subscribe/unsubscribe:
>> https://public.kitware.com/mailman/listinfo/paraview-developers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview-developers/attachments/20180412/d4d6729e/attachment.html>


More information about the Paraview-developers mailing list