Edge padding for ray misses in height field projection node

   1222   2   1
User Avatar
Member
10 posts
Joined: 9月 2019
Offline
Hello,

I'm trying to project a heightfield based on a mesh, but there are some holes in the mesh, and where the ray misses the heightmap projection node writes a default value. I would like to "fill" these ray miss pixels with an interpolation of some kind.

Is there some similar node/feature in Houdini for "edge padding" as is found in other bakers, or is it possible to mask out the ray missed pixels and interpolate its values based on the rim of the holes?

Thanks in advance
User Avatar
Member
10 posts
Joined: 9月 2019
Offline
I have found a node (extrapolate boundaries) inside of COP that does the trick, I could feed it an opacity bake and the heightmap from the maps baker node inside of my SOP network.
But when I try to reference the baker(op:'../../OUT/') with a file node inside of COP I get an error. Is there another way to reference textures coming out of a baker to get them into COP network? or is there coding to be done here?
User Avatar
Member
10 posts
Joined: 9月 2019
Offline
Solved it all with a python function.

Thank you and good night.
  • Quick Links