pablocouto / houdini-subdivision-compensator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Subdivision compensator for Houdini

If you have a low- or mid-poly model made as a retop of highpoly sculpt, you may want to smooth it (either in render-time or for some other reasons). But unfortunately, when you do so, the mesh shrinks and no longer matches the original highpoly. Most of the time the smoothed lowpoly doesn't even intersect the sculpt.

This node allows you to offset lowpoly's vertices in such a way that it will match highpoly after smoothing (subdividing). Essentially, it's kinda the opposite of "smooth the mesh then remove any newly created vertices".

Base mesh screenshot Base mesh subdivided screenshot Compensated mesh screenshot Compensated mesh subdivided screenshot

Limitations:

  • Unfortunately, only Houdini's "Mantra Catmull-Clark" is supported due to some technical limitations (houdini doesn't provide an easy way to track down the original points after subdividing the mesh).
  • The node works iteratively, subdividing and offsetting the lowpoly many times. So it's not intended to be re-calculated in every frame. Instead, it's designed to generate the "subdivision-ready" mesh once and manipulate it afterwards.

If you think some important features are still missing, feel free to create a pull request. :)

About

License:Mozilla Public License 2.0