MENOZ Posted July 24, 2010 Share Posted July 24, 2010 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 Quote Link to comment Share on other sites More sharing options...
mawi Posted July 24, 2010 Share Posted July 24, 2010 (edited) 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 July 24, 2010 by mawi Quote Link to comment Share on other sites More sharing options...
MENOZ Posted July 24, 2010 Author Share Posted July 24, 2010 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. Quote Link to comment Share on other sites More sharing options...
malexander Posted July 26, 2010 Share Posted July 26, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.