What kind of interpolation is this?

   1280   2   1
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
I need to calculate a custom targetmeshsize attribute for the Remesh Sop, trying to mimicking what the node already does in adaptive mode.

I don't quite understand how Houdini interpolate stuff.
In the image you can see the color ramp blue to yellow using the attribute "ds", whose values are also visualized on the points.
It seems to me that the color interpolation is not correct.

Also, if I use the same attribute as a custom targetmeshsize for the Remesh Sop, the remeshing would match the same (wrong?) interpolation of values in the color example.

Interestingly, even when you let alone the Remesh Sop to use its own "adaptive" method (without any custom attribute from you), it would produce the same unexpected (and unsymmetrical) mesh density at corners.


What am I missing here?
I attached the project file

Attachments:
remesh_adaptive_tests1.hiplc (141.0 KB)
colorinterpolation.JPG (172.2 KB)
remesh+custom.JPG (634.2 KB)

User Avatar
Member
8551 posts
Joined: July 2007
Offline
Andr
What am I missing here?
it's all about internal triangulation as the interpolation happens per triangle
so you need to shift the vertex order to alter that

here is the file with such manual fix to specific corner prims as well as visualization of the triangulation which may make the observed behavior clearer

Attachments:
remesh_adaptive_tests1_fix.hiplc (174.3 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
oh it makes sense now, thanks for clarifying !
  • Quick Links