excluding objects in AO

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
Old 05 May 2008   #1
excluding objects in AO

The default ambient occlusion node in mental ray has an id_inclexcl parameter which I can't make it work.
Reading the docs it says that I need to assign the id in the .mi file.
Is that something I can do with a mentalRay custom text editor?
What would be the exact syntax?

thanks
__________________
 
Old 05 May 2008   #3
hi ...

in the id_inclexcl, a positive integer number means that only objects labeled with the same id number You put here will cause occlusion ... and if the number You put on this id_inclexcl is negative then the object with this integer number as an id will be ignored, but all other will make occlusion ... so what You need to put in here is for example " -1 " ...

and the way to put an id. is by the transformation node of an object, where You have " Transform Attributes ", " Pivots ", " Limit Information ", etc ... here just Attributes>Add Attributes, and make a new one called " miLabel ", Integer, with the number " 1 " ( yes, the same integer number from the id_inclexcl, but positive ... the only place where You need to specify the positive or negative number is in the id_inclexcl, for to tell maya to just cause occlusion the objects with the id number in the case of positive number, or if this number is negative in here, then all objects will make occlusion except the ones with this integer number ) ... You don't need to made this attribute on all objects ... only on the ones You want to exclude from occlusion, because the negative value ...

if You have any fluid, then made an exclude for them too, in the same way ... if not, then You will have some artifacts ... I don't remember exactly if particles too ...

I think this is what You want ... good luck
 
Old 05 May 2008   #4
Brilliant guys, I'll try out.

Thanks a lot for your quick answers!
__________________
 
Old 05 May 2008   #5
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.
 
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 07:27 AM.


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