mask and 3d stroke

You have to use 2 layers for the stroke. One that is front of the person and the other behind. I think so. Are you using track mattes?
 
Is this what u mean?

Is this what u mean?

'kilmyneo'- Dont kno what u meant,

If u want a 3d stroke to pass behind a character, it's better to mask(roto) the character and put the 3d stroke layer behind it.
But its a pain to roto the person if its a complex animation.

Anyway, dont kno if this is the only way or is this what u meant.

Is ther any other way than roto, guys?
 
You'll notice in 3D Stroke under 'Camera" there is a Z-Clip Back setting. If your person is a 3D layer, you can match this z-clip value to the person's z position, so the the stroke becomes invisible if it passes beyond this z value.

You can see some BASIC examples of this on this spot I did:

http://www.graymachine.com/work/ss.html

Those are 3D strokes kinda-sorta going in front and behind the disco ball & microphone. It was rushed, so it is be no means perfect.
 
I tried with a 3D layer and with a camera and all I saw was the clipping of the stroke.
You have to fake it somehow to make seem like it goes behind the layer.
 
For something to looking like it is going behind a layer, it would need to be obscured and not visible... or clipped.

Granted, there is no shape control over this. If the stroke goes into and out of the z-clipping range, it is no longer visible. But it does take some manipulation to get the stroke and subject in agreement. You kinda have to get the stroke clipping right where the subject is.

If the person is walking, a roto'd track matte might certainly be a much better solution.
 
Last edited:
cool comp graymachine!! .... yes i want that the line pass behind a character , but when i mask the layer of the 3d stroke it put another line so i guess the better solution is the roto.
 
Yeah, as someone mentioned earlier on, use a Track Matte. As you've noticed, adding another mask to 3D stroke will not mask it out.

There's a lesson on using track mattes on my site.. mostly focusing on Luma Mattes, but it should help if you haven't used them that much.

www.graymachine.com/tutorials.html


Thanks for the kind words and best of luck with your animation!
 
graymachine said:
Yeah, as someone mentioned earlier on, use a Track Matte. As you've noticed, adding another mask to 3D stroke will not mask it out.


Sure it will, well not to the stroke layer maybe, but just nest the comp, or precompose it.
 
Yes, you can precompose it.. but in general, I use that as a last resort.

What if there is a camera in the first comp that 3D Stroke needs? Then you have to use an expression between the two comps to connect the two cameras.. not to mention the fact that you lose any visual reference once the stroke is in its own comp, which makes adjustments a real pain.

If it were me, I'd use a track matte. But that's just me.
 
What kind of nesting are you looking for?

Have tried the Continuously Rasterize switch on a nested 3d comp?

That might be the magic bullet you are looking for.
 
Back
Top