Refracting and Reflecting things in ObjectID

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  10 October 2012
Refracting and Reflecting things in ObjectID

Hi all,

Last year I was working with Arnold and XSI and we had a pass that showed the Object IDs of things through refractions and in reflections.
Example of what vray does with object ID (very basic scene just to help explain what I'm trying to do so please dont crit scene)

[IMG][/IMG]

There are three objects in scene, one of the objects is inside the other but is visable through the refraction and two of the objects reflect in the floor object. Is there a way to get them to show in an object ID way so I can grade them in comp, i.e. 1 ID for the refracted object that will grade the refraction and the reflection etc.

Thanks

Les
 
  10 October 2012
in the vray material there is a affect channels dropdown in the refraction section. when you switch from "color only" to "all channels" the objects ids get visible through the refraction.
 
  10 October 2012
I tried that but it did not work
 
  10 October 2012
You could try doing it by making separate render of it (your own custom pass).

Just give the object inside the glass a self illuminating material. You'd probably also have to adjust the refractive material to have no color.

Ideally you could make a state set of it. Havent worked with state sets yet, so i dont know if its possible, but from what i've seen i think its possible (in fact i think it was meant for this kind of things?).
 
  10 October 2012
The good old raytrace materials support this by default ( reflection/refraction of material id's ).
You might try some freeware plugins ( render effects) which pull the object id out of refracted/reflected regions. One is Pavel Kuznetsov's Ky_G-Corrector, which pulls Object/material ID's behind transparent objects, allowing a certain threshold value

http://www.lastjedioutpost.ru/?l=en...ctor&s=download

Or another one by the same author Ky_Throughout:
http://www.lastjedioutpost.ru/?l=en...hout&s=download

those only work for refraction though...

so for a simple floor reflection, you might get away with using the raytrace material for the floow in vray
__________________

PowerPreview: High Quality Nitrous Previews for 3ds Max 2012|2013|2014

[ Free Download (ScriptSpot) ]

Home of The Frogs | Online Portfolio

Last edited by spacefrog : 10 October 2012 at 05:18 PM.
 
  10 October 2012
Originally Posted by Lsdinc: I tried that but it did not work
It will not work with the object ID, but it will work with the multimatte element, if all you need is a mask for your object.

The Raytrace material will not work well with V-Ray and I would recommend to avoid using it.

Best regards,
Vlado
 
  10 October 2012
Originally Posted by thev: It will not work with the object ID, but it will work with the multimatte element, if all you need is a mask for your object.


Is there a vray multimatte or is it just the standard one. I tried it and it did not work, can you explain a bit how to set it up or I can send you the file?

Thanks

Les
 
  10 October 2012
I got it I got it, thanks a ill for all your help.
 
  10 October 2012
Originally Posted by Lsdinc: I got it I got it, thanks a ill for all your help.


can you tell us how you ended up doing it?

It could en up being helpfull for us also.
 
  10 October 2012
Apologies, yes of course.

I used the multiMatteElement render element.
I ticked the boxes that are unticked in options for element.

I set all the materials with a material ID in the Slate view
and rendered.

It only really works with clear refractions, so no fog.

It does not work for reflections either but it is handy if you need a mask from some colour grading after.

Best

Les
 
  08 August 2013
Thumbs up

Hi. I've found another way to get the Object ID look through a reflective and refractive object, even with Fog. I've changed the Affect Channels in REFLECTION section to "Color Only" and in REFRACTION I leave it as "All Channels". As my material is for a Glass Door, it has a tiny reflection that makes the object behind that object a little darker. Hope this be useful for someone, as this could save some render setup time

Last edited by lesgauthy : 08 August 2013 at 04:30 PM. Reason: Misspeling
 
  08 August 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:13 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.