Mantra Shadow Pass in Houdini 17.5?

   7486   11   3
User Avatar
Member
50 posts
Joined: 5月 2018
Offline
Hi there, I need to create a shadow pass in Houdini 17.5 and I'm pretty new to the shadow extracting process. After a bunch of trail and error and not being able to locate a good tutorial on the topic, I thought I would ask for help here.

What I am looking for is basically a Mantra version of Arnold's Shadow Matte node. It sounds like the process to get a shadow layer out of Mantra is quite tedious, but I just haven't been able to locate anywhere where it is explained, or at least laid out, how to make one.

I really appreciate all the help you have; I'm counting on you guys!

Thanks.
User Avatar
Member
731 posts
Joined: 12月 2006
Offline
There is a shadow matte shader, you can just use that.
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
Maybe just use the shadow matte pass?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
50 posts
Joined: 5月 2018
Offline
I have been trying both the shadow matte Mantra shaders (“shading” and “shading utilities”), but I don't know how to output the shadow pass from it.

I have a basic scene setup to show my workflow, please let me know what I am missing in the process. The sphere is going to cast the shadow on the grid.

I applied a standard shader to the sphere, and the shadow matte to the grid.
Edited by CreativeWaves - 2019年9月16日 12:57:47

Attachments:
Shadow_RnD_v006.hipnc (574.5 KB)

User Avatar
Member
948 posts
Joined: 4月 2008
Offline
Just go to the mantra/images tab and add a AOV -> shadow matte.
I hope that helps.

Cheers!

Attachments:
Shadow_RnD_v007.hipnc (1.5 MB)

https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
50 posts
Joined: 5月 2018
Offline
I'm trying out the file but still can't find any way to utilize the data.

The very best that I can get from it is the result shown.

That is by adding the sphere (and rubber toy for visualization) as forced phantoms and the grid as a forced object.

What am I missing here?

Attachments:
Screen Shot 2019-09-16 at 7.16.53 PM.png (828.5 KB)

User Avatar
Member
310 posts
Joined: 7月 2012
Offline
You need to write out the image plane as an exr, and with the shadow matte shader, you should have white shadows. Then the black part becomes transparent with the exr, and the white becomes your shadows. Then you invert it, and comp it in.
User Avatar
Member
50 posts
Joined: 5月 2018
Offline
I still haven't been able to get it working. Here is my updated HIP file, please take look at it when you get a second.


Thanks.
Edited by CreativeWaves - 2019年9月18日 08:01:33

Attachments:
shadow_testing_v0010.hipnc (571.7 KB)

User Avatar
Member
53 posts
Joined: 6月 2009
Offline
You are using a shadow map on the grid, instead of a shadow matte.
User Avatar
Member
50 posts
Joined: 5月 2018
Offline
Right. I was trying that one out next. The shadow matte is an Arnold shader, right? I need to render the scene in Mantra.
Edited by CreativeWaves - 2019年9月19日 07:35:24
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
Hacker_Link
I still haven't been able to get it working. Here is my updated HIP file, please take look at it when you get a second.


Thanks.

I hope that helps.

Just let us know.
Edited by mzigaib - 2019年9月20日 11:22:10

Attachments:
shadow_testing_v0012.hipnc (3.1 MB)

https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links