MA2 Tutorial

or How to create the bounding box and the mask for an object
by herbert3000,  2012-Oct-7

Part 1: The Bounding Box




       


Part 2: The Object Mask




...and insert it as a new layer.




I usually apply a stroke effect on the mask (inner stroke, 1 pixel, grey RGB127,127,127).
This will give the mask a smooth border (grey = half-transparent).




Take care that the object is inserted in the correct <ArrayOfRenderInfoBlock>
<RenderInfo>
  <ArrayOfRenderInfoBlock>
    object masks visible in 1st view
  </ArrayOfRenderInfoBlock>
  <ArrayOfRenderInfoBlock>
    object masks visible in 2nd view
  </ArrayOfRenderInfoBlock>
  <ArrayOfRenderInfoBlock>
    object masks visible in 3rd view
  </ArrayOfRenderInfoBlock>
  <ArrayOfRenderInfoBlock>
    object masks visible in 4th view
  </ArrayOfRenderInfoBlock>
</RenderInfo>



As you can see, the <ObjectIndex> is the same in all four views.