Hi! I’m a non professional user of touchdesigner looking for a solution to generate this kind of silhuette repetition.
I try it using feedback tecnics and offset tranced boundarys. No sucsses.
Can sameone give me a way?
Hi! I’m a non professional user of touchdesigner looking for a solution to generate this kind of silhuette repetition.
Hi @fredfreire,
my first attempt is using the Dilate Component from the Palette>ImageFilter section inside of a feedback loop as dilate would be the right technique to grow the image by looking at the brightest pixel in a certain area. A nice explanation of the technique can be found here:
https://docs.opencv.org/3.4/db/df6/tutorial_erosion_dilatation.html
First create a alpha mask of the image. You could use a Reorder TOP in case the image has a alpha channel, otherwise use any of the available operators like RGB Key, Luma Key, or Threshold TOP to create one.
Next create a feedback loop in which the original input is composited over the result of the dilation. As the image just white out, attach a Level TOP to the dilate and lower the opacity. Append a Edge TOP to the result and see if you can get close to your idea by changing the parameters of the dilate and level operators.
Another approach could be via rendering a shape derived from the alpha channel, expanding it outside and rendering it with a ramp that then can be quantized and edged.
For this use a Trace SOP on the TOP with the alpha mask and use an Extrude SOP increasing the Thickness Translate
parameter. Now merge the 2 SOPs and append a Skin SOP. This will give you a thick outer border. To now get these multiple borders, insert Point SOPs directly after the Trace SOP and before the Merge SOP setting the Color
parameter to 0
. The second Point SOP insert directly after the Extrude SOP and before the Merge SOP - for this one setting the Color
parameter to 1
. Now render this with a Constant MAT and add after the Render TOP a Limit TOP where you set the Quantize Value
parameter on the Quantize page to “Round”. Finally append a Edge TOP to draw the edges. You can play with the parameter for Thickness Translate
to change the expand of the borders and the Value Step
parameter of the Limit TOP to increase or decrease the number of borders drawn.
There are a few more parameters you have to adjust - especially in the Extrude SOP - but have a look at the included file for reference.
cheers
Markus
base_outline.tox (5.3 KB)
Hi @snaut
Thanks by the class. Work perfectly and I can learn some bases.