In Mantra I'm suppose to be able to identify Objects by their ID as separate, extra image planes. I'd like to try this for compositing.
What is the syntax for that? What do I put in the Vex Variable field?
Op_Id - extract image plane
27558 31 5- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
- rdg
- Member
- 401 posts
- Joined:
- Offline
I just read this today in the help:
Georg
You can output the object ID and/or primitive IDs to deep raster planes, and then use them to easily select objects or primitives in the compositor.
To output the object or primitive ID, set up the following parameters:
* Variable name = Op_Id (or Prim_Id)
* File/Plane name = Op_Id (or Prim_Id)
* Channel depth, Variable type = Floating point
* Sample filter = closest surface
* Pixel filter = minmax idcover (a special filtering mode for ID channels)
Georg
this is not a science fair.
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
- rdg
- Member
- 401 posts
- Joined:
- Offline
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
- rdg
- Member
- 401 posts
- Joined:
- Offline
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
- jason_iversen
- Member
- 12557 posts
- Joined: 7月 2005
- Offline
Yes, it should be: it appeared in Mantra at the exact same moment the IPR pane allowed the user to pick objects directly in the image - so it's already been used for re-lighting
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
also, http://www.odforce.net [www.odforce.net]
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
Great, looking forward to having IPR back as well.
However, I'm not clear on how you identify individual objects in a scene. I'm assuming you can identify an individual object with the “Prim_ID”, but if you just put that in the Vex field you get all the objects in the scene.
Do you have to isolate an object into its own mantra? If so then I don't see the advantage of Prim_Id.
However, I'm not clear on how you identify individual objects in a scene. I'm assuming you can identify an individual object with the “Prim_ID”, but if you just put that in the Vex field you get all the objects in the scene.
Do you have to isolate an object into its own mantra? If so then I don't see the advantage of Prim_Id.
“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
“everything is coincident”
“Love; the state of suspended anticipation.”
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- digitallysane
- Member
- 1192 posts
- Joined: 7月 2005
- Offline
SYmekI reported this to support long time ago, and after some back and forth emails and I got this answer:
hmm… for me it's still the same. Double checked. All objects have ID == 1.
Which is close to useless… Bug or still didn't get this voodoo (although I used to haven't problems in H8.2)
H9.1.141, Ubuntu32.
EDIT:
Prim_Id works as expected.
Put down a Mantra Output Driver.
Edit Rendering Parameters
In the filter type “ids”
Open up “Mantra->Output”
Install “Generate Op Ids for objects (vm_generate_opid)”
Turn this parameter on.
See screen shot for extra help.
I can't check right now, I remember that it worked then (H9, not 9.1 at the time).
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
You have to be patience with a geriatric like me.
Can I render a Prim_Id layer with only a specific primitive in it? If so, what is the syntax?
So, as in Georg's example, the Vex Variable is Prim_Id, which gives me all the “boxes” as a matte. Can I declare just one of the primitives?
Or is this information embedded in the image? If so, how do you access it?
Can I render a Prim_Id layer with only a specific primitive in it? If so, what is the syntax?
So, as in Georg's example, the Vex Variable is Prim_Id, which gives me all the “boxes” as a matte. Can I declare just one of the primitives?
Or is this information embedded in the image? If so, how do you access it?
“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
“everything is coincident”
“Love; the state of suspended anticipation.”
- digitallysane
- Member
- 1192 posts
- Joined: 7月 2005
- Offline
If you inspect the plane you'll see that the channel has a different value at each prim (or Object in the case of Op_ID).
So for example for some Object the Op_ID plane will have the value 3 (let's say). So you have to check where the value of the channel is 3 and output a value of 1 in some matte channel or in your effect multiplier.
Dragos
So for example for some Object the Op_ID plane will have the value 3 (let's say). So you have to check where the value of the channel is 3 and output a value of 1 in some matte channel or in your effect multiplier.
Dragos
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
- probbins
- Member
- 1145 posts
- Joined: 7月 2005
- Offline
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- Offline
Maybe I don't understand your doubt. Feel like we talk on different topic. But 0 is a colour anyway just expressed in a grey scale…
Imagine just one primitive on your screen, that you need to make a mask for with Prim_Id plate. In minimal example, just for one prim, you need two colours, not one, don't you? So the first one is always 0…
Good explanation is common object ID generated from other application like Max, they are encoded in “real” colours, not in one float. Objects are coloured but surrounding is black.
Imagine just one primitive on your screen, that you need to make a mask for with Prim_Id plate. In minimal example, just for one prim, you need two colours, not one, don't you? So the first one is always 0…
Good explanation is common object ID generated from other application like Max, they are encoded in “real” colours, not in one float. Objects are coloured but surrounding is black.
-
- Quick Links