vray ID matte and coverage pass

1,114 views
Skip to first unread message

Ryan O'Phelan

unread,
Aug 26, 2010, 6:02:15 PM8/26/10
to maya...@googlegroups.com
Any of you guys know a good way to get an anti-aliased object ID pass out of Vray?
How about a coverage pass? 

I suppose I could just do these mattes in Mentalray, but was trying to avoid it. 
If I remember correctly, you woul dstill have to assign a label ID to every object and then render the object ID and coverage pass from MR. Any good scripts to automate this process?

Thanks,
Ryan

Deke Kincaid

unread,
Aug 27, 2010, 3:13:32 PM8/27/10
to maya...@googlegroups.com
Objectid+coverage pass is crap. Ever since exr came out I don't
understand why renderers still promote the former as their main matte
pass method. The best method(pending your compositor supports exr) is
to write all the mattes to a single exr file as alphas (not rgb) and
if possible write the dataWindow(dod/bbox). 100+ alpha passes take up
less then 5 meg per frame at 2k.. I've found is the script down below
does a pretty good job at automating it though I have no idea if it
will work with vray.

http://forums.cgsociety.org/showthread.php?t=845305

Vray does have MultiMatte but it is very manual and only writes to rgb
of an exr layer(not a) which is annoying and requires more setup time
and will have naming issues.

-deke

On Thursday, August 26, 2010, Ryan O'Phelan <desig...@gmail.com> wrote:
> Any of you guys know a good way to get an anti-aliased object ID pass out of Vray?How about a coverage pass?

David Johnson

unread,
Aug 27, 2010, 9:50:35 PM8/27/10
to maya...@googlegroups.com
The materialMatte script only works with mentalray passes, but it
creates a new renderLayer for the matte passes so I guess one option
would be to use mentalray for your mattes and vray for the other stuff.
Obviously there are many situations where this would not be perfect, or
far from perfect (eg if you render motion blur and DOF).

In the next few days I'll be posting djVRayCreateMatteLayer.mel on my
blog. It attempts to emulate the functionality of the materialMatte
script using vray elements - specifically the MultiMatte element. As
Deke already pointed out there are some limitations with MultiMatte but
my script does a reasonable job of working around those
limitations/anoyances and provides a useful way to quickly generate and
organize your matte passes. I'm already using it in production, but just
wanted to clean up the code before I share it. More details in a few
days (1 week tops).

David

Deke Kincaid

unread,
Aug 28, 2010, 3:08:43 AM8/28/10
to maya...@googlegroups.com
Objectid+coverage pass is crap. Ever since exr came out I don't
understand why renderers still promote the former as their main matte
pass method. The best method(pending your compositor supports exr) is
to write all the mattes to a single exr file as alphas (not rgb) and
if possible write the dataWindow(dod/bbox). 100+ alpha passes take up
less then 5 meg per frame at 2k.. I've found is the script down below
does a pretty good job at automating it though I have no idea if it
will work with vray.

http://forums.cgsociety.org/showthread.php?t=845305

Vray does have MultiMatte but it is very manual and only writes to rgb
of an exr layer(not a) which is annoying and requires more setup time
and will have naming issues.

-deke

On Thursday, August 26, 2010, Ryan O'Phelan <desig...@gmail.com> wrote:

> Any of you guys know a good way to get an anti-aliased object ID pass out of Vray?How about a coverage pass?

Ryan O'Phelan

unread,
Aug 31, 2010, 12:48:56 PM8/31/10
to maya...@googlegroups.com
I can't wait! Awesome!
If you need any help/feedback, I'll offer to beta test it for you.

R

Ryan O'Phelan

unread,
Aug 31, 2010, 5:50:27 PM8/31/10
to maya...@googlegroups.com
David,
Just saw your djVRayCreateMatteLayer.mel post on your blog. You rock!
Thanks for this!

http://www.djx.com.au/blog/

Fredrik Averpil

unread,
Aug 31, 2010, 5:55:37 PM8/31/10
to maya...@googlegroups.com
Very nice, thanks for sharing!

// F

David Johnson

unread,
Aug 31, 2010, 6:38:46 PM8/31/10
to maya...@googlegroups.com
Its in its early stages and I'm probably going to keep refining the
process, but its does take some of the burden out of creating lots of
mattes.
If you find mistakes let me know.
One of the things I'm looking at is whether there is some way to get
some more functionality into the rendersettings render elements tab its
self. I made a suggestion on the Chaos Group forums so it may even be
added in future.

David

Kiernan

unread,
Aug 31, 2010, 11:17:57 PM8/31/10
to maya...@googlegroups.com

Thanks david for posting this, look forward to using it.

KM

On 01/09/2010 8:39 AM, "David Johnson" <da...@djx.com.au> wrote:

Its in its early stages and I'm probably going to keep refining the process, but its does take some of the burden out of creating lots of mattes.
If you find mistakes let me know.
One of the things I'm looking at is whether there is some way to get some more functionality into the rendersettings render elements tab its self. I made a suggestion on the Chaos Group forums so it may even be added in future.

David



Ryan O'Phelan wrote:
>
> David,

> Just saw your djVRayCreateMatteLayer.mel post on your blog. You ...

Reply all
Reply to author
Forward
0 new messages