material render issue, view vs shell

   1650   2   2
User Avatar
Member
96 posts
Joined: Oct. 2013
Offline
Hi,

I'm having an issue rendering certain materials. I am new to Houdini.

Everything renders fine in the render viewport. When I render through the python shell, several objects do not render or they render very dark. I seem to have narrowed it down to any custom material not rendering. Does that mean it can't find the material? I don't see any errors pop up.

Attached is a sample file where the volume renders locally, but not in the python shell, or at least not correctly.

python code:

node=hou.node(“/out/mantra_preview”)
node.render(frame_range1,1),verbose=True)


Any ideas?

Thanks,

Adnan

Attachments:
render_issue.hiplc (837.4 KB)

User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
This is actually an issue with colorspace. The mantra node is writing out JPEG files. JPEG files expect sRGB colors, but currently, mantra is outputting linear color to the images. This is why outputted image is dark.

When you render to MPlay from the GUI, it's not writing out JPEG files. That's why the color seems fine.

You should be able to workaround the issue by writing out .exr or .pic files.
Andrew / アンドリュー
User Avatar
Member
96 posts
Joined: Oct. 2013
Offline
Thanks once again Andrew. That was a huge help !

Adnan
  • Quick Links