Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active October 9, 2023 12:34
Show Gist options
  • Save keijiro/4aa156ac21779dcdc85849062785db2f to your computer and use it in GitHub Desktop.
Save keijiro/4aa156ac21779dcdc85849062785db2f to your computer and use it in GitHub Desktop.
How to convert a mesh into a point cloud with Houdini.

screenshot

  1. Import the source geometry.
  2. Append a Point Wrangle SOP and set the following snippet.
int vlist[] = pointvertices(0, @ptnum);
vector uv = vertex(0, "uv", vlist[0]);
@Cd = colormap("$HIP/TEXTURE_FILENAME.jpg", uv);
  1. Insert a Delete SOP. Change the pattern to "*". Enable "Keep Points".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment