Jump to content
Sign in to follow this  
MENOZ

dilation by thickness

Recommended Posts

hello

I'm trying to figure out a way to modify the thickness of the lines in comp.

http://graphics.pixar.com/library/ToonRendering/paper.pdf

I decided to try in houdini cops.

once I have my clean contour lines, I use the dilate/erode node, but i want to modify the size value according to the black and white map. I tried with expression

tex(filename, U, V, color_type)

tex("/img/comp1/map_bw_jpg", 0, 0, L)

I tried to change values U and V inthe expression but nothig seems to happen.

how can I do to make it works?

thankyou

Share this post


Link to post
Share on other sites

hello

I'm trying to figure out a way to modify the thickness of the lines in comp.

http://graphics.pixar.com/library/ToonRendering/paper.pdf

I decided to try in houdini cops.

once I have my clean contour lines, I use the dilate/erode node, but i want to modify the size value according to the black and white map. I tried with expression

tex(filename, U, V, color_type)

tex("/img/comp1/map_bw_jpg", 0, 0, L)

I tried to change values U and V inthe expression but nothig seems to happen.

how can I do to make it works?

thankyou

Pipe the image into the mask-input.

EDIT.

Dont forget to change the Operation Mask parameter under DilateErode->Mask->Oparation Mask, if you want to mask with something else then alpha.

Edited by mawi

Share this post


Link to post
Share on other sites

Pipe the image into the mask-input.

EDIT.

Dont forget to change the Operation Mask parameter under DilateErode->Mask->Oparation Mask, if you want to mask with something else then alpha.

this doesn't work.

I dont't want to maks the effect, I want to modulate the "size" parameter.

Share this post


Link to post
Share on other sites

The Expand COP does per-pixel expansion or compression if you add a mask to it, and also produced much nicer results than Dilate-Erode. The downside is that it's a slower operation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×