[Sidefx-houdini-list] HDK : Pos using UV Attribute

Mario Marengo mario at axyzfx.com
Fri Jun 29 14:36:06 EDT 2007


On June 29, 2007 01:54 pm, Mario Marengo wrote:
>       float $d = length($UVsrc*{1,1,0} - $UVtgt*{1,1,0});
>       float $w = exp(-($d*$d)/(2.0*$fw*$fw));

Forgot to mention: that weird assignment to 'w' (weight) is just a gaussian 
centered at UVsrc of width 'fw'. So the filter in this test is:

exp( -distance(src.uv,tgt.uv)^2 / (2*filter_width^2)


-- 
......................................................................
Mario Marengo                                  mailto:mario at axyzfx.com
AXYZ ANIMATION                                 http://www.axyzfx.com
......................................................................



More information about the Sidefx-houdini-list mailing list