dreamworksanimation / openmoonray

MoonRay is DreamWorks’ open-source, award-winning, state-of-the-art production MCRT renderer.

Home Page:https://openmoonray.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing pxr imports in Docker moonray_run Container when rendering ALab2 scene

samhodge opened this issue · comments

Followed Docker Container build commands

ALab scene is mounter at /alab in the docker run container

I get the following traceback

from

hd_render -in /alab/entry.usda -out /tmp/hoopla.exr

Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Tf'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Gf'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Trace'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Work'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Plug'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Vt'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Ar'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Garch'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Sdf'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Ndr'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Kind'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Pcp'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Usd'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdGeom'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Sdr'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdShade'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.CameraUtil'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.Glf'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.PxOsd'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdLux'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdVol'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.SdrGlslfx'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.MoonrayShaderParser'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.MoonrayShaderDiscovery'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdHydra'!
ModuleNotFoundError: No module named 'pxr'
Warning: in Tf_PyLoadScriptModule at line 122 of /build/USD-prefix/src/USD/pxr/base/tf/pyUtils.cpp -- Import failed for module 'pxr.UsdShaders'!
ModuleNotFoundError: No module named 'pxr'
Hydra setup time = 00:00:05.987
2023-03-19T09:51:23.001983 W client[122]:140552505211264: [140ea676-b0b8-4482-acc5-e4c5383a74a8]: {warnBadConfigVal} In config for mcrt: item environment should be an object
2023-03-19T09:51:23.003183 D client[122]:140552505211264: [140ea676-b0b8-4482-acc5-e4c5383a74a8]: {trace:comp} launch 5259ff39-6c2f-4a5c-a592-77ad298cfa83 mcrt
sh: lsb_release: command not found
{trace:mcrt} version mcrt_computation-(unknown) host rhel-dev.kognat.localdomain
{trace:comp} ready 5259ff39-6c2f-4a5c-a592-77ad298cfa83
2023-03-19T09:51:23.669000 D client[122]:140552505211264: [140ea676-b0b8-4482-acc5-e4c5383a74a8]: {trace:session} clientConnect 140ea676-b0b8-4482-acc5-e4c5383a74a8 local arras4_client-???;arras4_core_impl-???;arras4_network-???
{trace:mcrt} stage ready start 5259ff39-6c2f-4a5c-a592-77ad298cfa83
{trace:comp} start 5259ff39-6c2f-4a5c-a592-77ad298cfa83
GlobalNodeInfo HostName {
  mClientHostName:
  mDispatchHostName:
  mMergeHostName: mMergeCpuTotal:0
  mcrt (totalMcrt:1 totalCpu:48) {
    mMachineId:0 mCpuTotal:48 mHostName:rhel-dev.kognat.localdomain
  }
}
Starting Rendering (syncId:1)
{trace:mcrt} stage renderPrep start 5259ff39-6c2f-4a5c-a592-77ad298cfa83 0438adce-7f10-488e-acbb-8debff733b97
Render prep time = 00:01:05.269
{trace:mcrt} stage shading start 0.0379051 5259ff39-6c2f-4a5c-a592-77ad298cfa83 0438adce-7f10-488e-acbb-8debff733b97
{trace:mcrt} stage shading complete 1 5259ff39-6c2f-4a5c-a592-77ad298cfa83 0438adce-7f10-488e-acbb-8debff733b97
Hydra total time = 00:01:19.547
stdout 00:01:13   10.2 GB | ---------- Time ------------------------------------------
stdout 00:01:13   10.2 GB | Render time                      = 00:00:07.546000
stdout 00:01:13   10.2 GB | Total time                       = 00:01:12.921000
Wrote /tmp/hoopla.exr
load_plugin 0.675711
open_stage 1.25246
populate 0.502033
render 77.6738

output exr is black and 34Kb

To get rid of the warnings, you need to add the location of the pxr Python modules to PYTHONPATH. They should be in /usr/local/lib/python:

ls /usr/local/lib/python
pxr
export PYTHONPATH=/usr/local/lib/python

I don't know if this could be causing the black image though, since hd_render doesn't use python modules.

What could be causing an image to be output with black pixels?

It feels like the geometry is there

Hi @samhodge did you mipmap your textures? Perhaps that's the issue. MoonRay requires tiled textures (see https://docs.openmoonray.org/user-reference/performance/#tiled-textures). To tile your textures you can use maketx or oiiotool .

Well that is the odd thing, using the convert to the binary moonray format for one entity from the Alab2 asset seems to render OK via moonray_gui as seen below.

Screenshot from 2023-03-20 13-44-11

But giving the entry point and relying on the Hydra interface gives a "no bingo" result, ie black and 34Kb.