Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering Headless with prman #1926

Closed
goetzmoritz opened this issue Jun 27, 2022 · 3 comments
Closed

Rendering Headless with prman #1926

goetzmoritz opened this issue Jun 27, 2022 · 3 comments

Comments

@goetzmoritz
Copy link

I'm trying to headless render a usd-file with the prman plugin using usdrecord:

$ usdrecord --renderer Prman ~/Kitchen_set/Kitchen_set.usd ~/out.jpg
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

Is that even possible? And how could it be done?

@sunyab
Copy link
Contributor

sunyab commented Jun 30, 2022

Filed as internal issue #USD-7462

@tcauchois
Copy link
Contributor

usdrecord currently requires an OpenGL context to run, although we're close to removing that requirement (for non-GPU renderers like Prman). I'm not sure what's going on with the "qt" error messages, but I'm guessing when we're initializing GL we're generating those errors when we fail to create a context?

@JoshkVFX
Copy link

Just ran into this myself, has there been any update since July?

pixar-oss pushed a commit that referenced this issue Nov 1, 2022
…when generating images.

This mode is enabled by passing the "--disableGpu" option to the usdrecord.py script.  The GPU is enabled by default.  If no renderer is specified, an appropriate default will be chosen depending on whether the GPU is enabled or not.

Additionally, disabling the GPU will prevent the HdxTaskController from creating any tasks that require it.  In particular, this means that color correction is disabled when the GPU is disabled.  A warning to this effect will be emitted if color correction is requested in this case.

Fixes #1926

(Internal change: 2251239)
(Internal change: 2251338)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants