It is currently 19 Apr 2014, 19:03

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Material ID pass ??
PostPosted: 01 Feb 2012, 12:00 
Offline

Joined: 28 Jan 2010, 14:13
Posts: 68
Hi folks,

I get deeper into composition passes (in fusion actually)
I rendered all my buffers, diffuses, reflections, refractions etc and i wanna get a total control by materials.

There is a way to output an material ID pass ? only way i found is to manually create matte pass.
BUT
- if i have 50 materials i have 50 passes...
- passes dont take clusters into it...

How your guys are doing ?
thanks !


Top
 Profile  
 
 Post subject: Re: Material ID pass ??
PostPosted: 01 Feb 2012, 14:06 
Offline
Moderator
User avatar

Joined: 21 Jul 2010, 00:33
Posts: 583
Not in front of SI right now but I'm pretty sure there is a ObjectID (not sure of a material ID, but probably) RENDER CHANNEL (not pass). It is ok but there are some problems with it:
(1) not anti-aliased
(2) if you have objects with anymated visibility it will re-arrange the colors (ids) on all objects from that frame forward... making it useless...

So that may work for you or may not...

Do you really need 50 mattes? Sounds like your compositing is not going to be pratical at all, cant you group stuff into bigger groups and do some RGB matte passes?

_________________
Gustavo Eggert Boehs
Blog: http://www.gustavoeb.com.br/blog | Training: http://gustavoeb.com.br/blog/?cat=16&lang=en_us


Top
 Profile  
 
 Post subject: Re: Material ID pass ??
PostPosted: 02 Apr 2013, 04:15 
gustavoeb wrote:
Not in front of SI right now but I'm pretty sure there is a ObjectID (not sure of a material ID, but probably) RENDER CHANNEL (not pass). It is ok but there are some problems with it:
(1) not anti-aliased
(2) if you have objects with anymated visibility it will re-arrange the colors (ids) on all objects from that frame forward... making it useless...

So that may work for you or may not...

Do you really need 50 mattes? Sounds like your compositing is not going to be pratical at all, cant you group stuff into bigger groups and do some RGB matte passes?


Can you point me on how to create a material ID pass ? If material ID channels are useless because they are not Anti-Aliasing and there also useless if they have a semi-matted material then a material ID pass seems the best solution except I'm looking and looking on how to create one in Softimage, it most likely involves overrides, what is the order of operations & nodes :)


Top
  
 
 Post subject: Re: Material ID pass ??
PostPosted: 03 Apr 2013, 07:29 
Offline
User avatar

Joined: 19 Jun 2012, 21:59
Posts: 77
Look for <<MaterialID Setup>> on http://RRay.de

and more details here http://www.si-community.com/community/viewtopic.php?f=29&t=342

And please tell us how it went! :)


Top
 Profile  
 
 Post subject: Re: Material ID pass ??
PostPosted: 03 Apr 2013, 07:38 
Offline
User avatar

Joined: 19 Jun 2012, 21:59
Posts: 77
You can render that pass with no antialiasing (so you can then easily separate each color)
but at very high resolution (still pretty quick to render )
which makes resizing back down (after separation) act like a form of supersampling.


Top
 Profile  
 
 Post subject: Re: Material ID pass ??
PostPosted: 03 Apr 2013, 22:25 
Thanks FxDude, I appreciate it :)


Top
  
 
 Post subject: Re: Material ID pass ??
PostPosted: 05 Apr 2013, 17:16 
Code:
SelectObj "sphere.polymsh.cls.Polygon"
SetValue "Sources.Materials.DefaultLib.Material.Phong.diffuse.green", 0
SelectObj "sphere", , True
' ERROR : The data type 'RGB' is not supported by Softimage when rendered with mental ray
' ERROR : 2028-EDIT-SetValue - Invalid argument specified. - [line 116 in c:\users\christoher\desktop\Make MaterialID Framebuffer.vbs]
MakeMaterialIDFramebuffer


I get the above error when I run the script. I placed a cluster on part of the sphere, same error ?

It would be helpful if you can select a color on a texture and it gives that color a unique MaterialID I don't know whether that change can be done ?


Top
  
 
 Post subject: Re: Material ID pass ??
PostPosted: 15 Apr 2013, 16:15 
You can use a 'storeInChannel' to create a channel, but as I started another thread here, what if I don't have clusters, it appears that the workflow requires clusters to work effectively to create a MaterialID ?

If I can't make a material ID based on a color on a texture, is it possible to make a cluster based on a color on a texture then making a material ID from the cluster which was created from the color on the texture, I hope that didn't confuse anyone the last paragraph ? :) I don't know the method some of you use, only from what I read on a few tutorials, maybe what I'm describing is unheard of ?


Top
  
 
 Post subject: Re: Material ID pass ??
PostPosted: 16 Apr 2013, 08:27 
Offline
User avatar

Joined: 19 Jun 2012, 21:59
Posts: 77
Too bad the Material ID script didnt work,

But something else you could do.. If you don't have many materials,
there is a shader in Holgers' BA Essentials Pack that can store a color (or texture) in a channel,
without it participating in your main RenderTree.

If you can see what I'm getting at.. you could then pipe a constant with a unique color in each of your materials, and you should be good to go..

If you DO have many materials, there is a Batch Material Processor thing
that can replace or insert nodes, that is made for just this sort of thing..

(Sorry don't remember names, but you can look it up on RRay.de for the Material procesor,
and BA Site to find out which shader is the store in channel thing in the Essentials pack )

Let me know how it goes!

J


Top
 Profile  
 
 Post subject: Re: Material ID pass ??
PostPosted: 16 Apr 2013, 08:49 
Offline
User avatar

Joined: 19 Jun 2012, 21:59
Posts: 77
Also if you dont have *too* many materials, (while perhaps remaining viable with quite a few materials)

to avoid aliasing issues with Material IDs.. :

- you could store 4 different materials per color channel (4 per frame-buffer output, in the same resolution as you main render)
One material 100% Red, One Green, One Blue, and One 100% Alpha
(you can put things in alpha with the RGBA Combine Shader)

So if you have 20 materials, you could have 5 frame-buffers containing 4 perfectly antialiased material puzzle tiles each,
one in each of their RGBA channels.

Saved as PNGs' (lossless & low disk space especially for constant colors) .. no need for EXRs'


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group