[Paraview-developers] pvpython and force_offscreen_rendering on OS X
Sgouros, Thomas
thomas_sgouros at brown.edu
Wed Jan 24 21:53:44 EST 2018
Sure, I didn't mean to seem accusatory. I have to develop a paraviewweb
application and want to see if I could set up a prototype paraview server
on my (mac) laptop for the convenience of developing. If I can't, I can't,
but the text seemed to imply there was a possibility so I soldiered on
until I got stuck.
Thank you,
-Tom
On Wed, Jan 24, 2018 at 4:47 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:
> Tom,
>
> The page also says:
>
> "In this page, we limit ourselves to a Linux-based system. On Windows
> and macOS, offscreen support is available, but true headless operation
> is currently not widely used and hence left out of this discussion."
>
> Thus, the page is mostly for Linux where people have options of using X or
> not.
>
> Utkarsh
>
>
> On Wed, Jan 24, 2018 at 4:23 PM, Sgouros, Thomas
> <thomas_sgouros at brown.edu> wrote:
> > On this page:
> > https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/Offscreen.html
> >
> > There is this note:
> >
> > Currently, ParaView supports two distinct APIs that are available for
> > headless operation: EGL and OSMesa (also called Offscreen Mesa). It must
> be
> > noted that headless support is a rapidly evolving area and changes are
> > expected in coming months. Modern H/W OpenGL implementations support EGL
> > while S/W (or Mesa) supports OSMesa. One has to build ParaView with
> specific
> > CMake flags changed to enable either of these APIs. Which headless API
> you
> > choose in your build depends on which OpenGL implementation you plan to
> use.
> >
> > I thought this meant I should try to build Paraview from source. My
> original
> > question had a second part about why my build wasn't working, but I'd
> also
> > add that it's not clear how to find the OSMesa option through the
> superbuild
> > process, either.
> >
> > Thank you,
> >
> > -Tom
> >
> >
> > On Wed, Jan 24, 2018 at 4:16 PM, Utkarsh Ayachit
> > <utkarsh.ayachit at kitware.com> wrote:
> >>
> >> Okay, I misspoke again :). pvpython should indeed have this command
> >> line option. Maybe someone with access to a mac can see why this isn't
> >> working. I can try out on my home mac later tonight and get back to
> >> you if no one responds before then.
> >>
> >> On Wed, Jan 24, 2018 at 4:07 PM, Sgouros, Thomas
> >> <thomas_sgouros at brown.edu> wrote:
> >> > Thank you. I'm chasing this issue, actually. Perhaps I've misdiagnosed
> >> > it?
> >> >
> >> > $ LightViz --paraview /Applications/ParaView-5.4.1.app --data
> >> > ../mat-viz-mofTFF-90L-9.1lpm-100rpm
> >> >
> >> >
> >> >
> >> > ============================================================
> ===================
> >> >
> >> > | Execute:
> >> >
> >> > | $ "/Applications/ParaView-5.4.1.app/Contents/bin/pvpython"
> >> >
> >> > | -dr
> >> >
> >> > | --force-offscreen-rendering
> >> >
> >> > | "/usr/local/lib/node_modules/light-viz/server/pvw-light-viz.py"
> >> >
> >> > | --content
> >> >
> >> > | "/usr/local/lib/node_modules/light-viz/dist"
> >> >
> >> > | --port
> >> >
> >> > | 8080
> >> >
> >> > | --data
> >> >
> >> > | "../mat-viz-mofTFF-90L-9.1lpm-100rpm"
> >> >
> >> >
> >> > ============================================================
> ===================
> >> >
> >> >
> >> > Got unknown argument: --force-offscreen-rendering
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On Wed, Jan 24, 2018 at 4:02 PM, Utkarsh Ayachit
> >> > <utkarsh.ayachit at kitware.com> wrote:
> >> >>
> >> >> I misspoke. Not pvpython, the option is only available for pvserver,
> >> >> pvbatch and not pvpython.
> >> >>
> >> >> No, XQuartz is not it. If you're logged in, you have access to the
> >> >> Cocoa
> >> >> server.
> >> >>
> >> >> On Wed, Jan 24, 2018 at 3:58 PM, Sgouros, Thomas
> >> >> <thomas_sgouros at brown.edu> wrote:
> >> >> > $ /Applications/ParaView-5.4.1.app/Contents/bin/pvpython
> >> >> > --force-offscreen-rendering
> >> >> > Got unknown argument: --force-offscreen-rendering
> >> >> >
> >> >> > What does "access to Cocoa" mean in this context? How would I go
> >> >> > about
> >> >> > giving it that access? All I could think of was to run the XQuartz
> >> >> > server at
> >> >> > the same time, but I don't see any way to tell pvpython to look
> >> >> > there.
> >> >> >
> >> >> > Thank you,
> >> >> >
> >> >> > -Tom
> >> >> >
> >> >> > On Wed, Jan 24, 2018 at 3:36 PM, Utkarsh Ayachit
> >> >> > <utkarsh.ayachit at kitware.com> wrote:
> >> >> >>
> >> >> >> You can use `--force-offscreen-rendering` flag for standard
> ParaView
> >> >> >> builds on OsX when using pvpython/pvserver etc. It simply implies
> >> >> >> that
> >> >> >> there'll be no windows popped up for these command line
> executables.
> >> >> >> Note, ParaView still needs access to Cocoa to create OpenGL
> contexts
> >> >> >> for rendering.
> >> >> >>
> >> >> >> Utkarsh
> >> >> >>
> >> >> >> On Wed, Jan 24, 2018 at 3:02 PM, Sgouros, Thomas
> >> >> >> <thomas_sgouros at brown.edu> wrote:
> >> >> >> > Hello:
> >> >> >> >
> >> >> >> > The documentation seems ambiguous on the point, can anyone
> confirm
> >> >> >> > for
> >> >> >> > me
> >> >> >> > how to get a version of pvpython that runs on OS X and supports
> >> >> >> > the
> >> >> >> > --force-offscreen-rendering option?
> >> >> >> >
> >> >> >> > My reading seems to imply that I will have to compile from the
> >> >> >> > source,
> >> >> >> > but
> >> >> >> > I've been trying and failing to understand how to make the
> >> >> >> > super-build
> >> >> >> > process work. If someone can confirm for me that this is the way
> >> >> >> > forward,
> >> >> >> > I'd appreciate it.
> >> >> >> >
> >> >> >> > Also, when using the paraview-superbuild, when I try to
> install, I
> >> >> >> > get
> >> >> >> > this:
> >> >> >> >
> >> >> >> > CMake Error at
> >> >> >> > /../paraview-superbuild/projects/apple/paraview.bundle.cmake:8
> >> >> >> > (message):
> >> >> >> >
> >> >> >> > Creating the Apple package without the GUI is not supported.
> >> >> >> >
> >> >> >> > To which superbuild option does this refer?
> >> >> >> >
> >> >> >> > Thank you,
> >> >> >> >
> >> >> >> > -Tom
> >> >> >> >
> >> >> >> >
> >> >> >> > _______________________________________________
> >> >> >> > 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://paraview.org/mailman/listinfo/paraview-developers
> >> >> >> >
> >> >> >
> >> >> >
> >> >
> >> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://paraview.org/pipermail/paraview-developers/attachments/20180124/a17d94c6/attachment.html>
More information about the Paraview-developers
mailing list