Hello all,
I got a simple bridge of the cubic stylisation technique working in Houdini.
Paper and code: https://www.dgp.toronto.edu/projects/cubic-stylization/ [www.dgp.toronto.edu]
I modified the command line version they provided to take an iteration input, and altered the mesh path to an absolute path.
In Houdini I wrote a simple python script that:
1. Writes the incoming geometry to an obj (using a file rop).
2. Starts the application with subprocess.call, with the parameters specified in the asset (application location, temp obj file location, lambda, and max iterations).
3. Reloads the obj after the program has finished iterating and written to it. (using a file node)
I simply call the python script when ‘cook’ is pressed.
I plan to update the the command line version to match the functionality of the ImGui version they provided. It will probably simply feed the application a path to the mesh, and a temp file with all the properties stored inside.
I might also make use of hou.InterruptableOperation to make it a bit friendlier, as right now it just freezes while it cooks, although there is feedback in the Linux terminal.
Obviously all the credit goes to the paper's authors. It's very cool how easy it was to get it working inside of Houdini.
Attached are some examples using Houdini test geometry (naturally).