I found that simple.WriteImage(...) solves the second part of my problem, which is to grab the image data.
But I have still no clue how to make the pvserver render the scene remotely and only transfer the rendered image to the pvpython client instead of all 3D datasets (which will be huge). Any help? Kolja On Thu, Oct 19, 2017 at 12:03 PM, Kolja Petersen <[email protected]> wrote: > Hi there, > is it possible to let pvpython render images remotely on a pvserver > instead of locally inside the client? > > If I start a pvserver on a headless machine and run the following script > in a pvpython client, a window pops up on the client and shows the cone: > > from paraview import simple > simple.Connect("<pvserver host>") > simple.Show(simple.Cone()) > simple.Render() > > Because the server is headless, rendering is obviously done on the client. > What needs to be changed to let the remote pvserver do the rendering? Of > course the pvserver will then run an X server and also include a GPU. > > Reason is that I want to be able to grab a batch of screenshots of huge 3D > scenes in the pvpython client, although the client has only weak (or even > none at all) 3D capabilities. > Can I use the paraview.simple module to grab an image output or a pixel > array of the remotely rendered frame? > > Thank you > Kolja > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virenfrei. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
