Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active January 26, 2018 19:34
Show Gist options
  • Save keijiro/f8d51da436ab7418ec19ba17576274e6 to your computer and use it in GitHub Desktop.
Save keijiro/f8d51da436ab7418ec19ba17576274e6 to your computer and use it in GitHub Desktop.
Personal notes on Houdini Engine for Unity

Creating a Houdini asset

  • Select a group of nodes or a subnet node.
  • "Assets" -> "New Digital Asset From Selection..."

A Houdini asset file (.hdalc) will be created in the asset library directory ($HOUDINI_PATH/otls). To maintain this file within the Git repository, it should be moved into the project asset directory ($HIP/otls).

Installing Houdini Engine

You don't have to use the installer -- it's enough to copy the content of the Houdini Engine repository into the Unity project.

I fixed some small issues in my fork, so I use this forked version in my projects.

It's PITA but the version number definition in the source code has to be updated before using it. Update these lines to match with the version number of the installed Houdini binary.

Importing a Houdini asset into Unity

  • Select "Houdini Engine" -> "Load Houdini Asset..."

Using assets with animation

By default, digital assets are not updated while playing. To support animation with the asset, the per-frame cooking flag has to be enabled.

  • Select the game object.
  • From the inspector, "Houdini Asset OTL" component -> "Asset Settings" -> "Cooking" -> enabled "Playmode Per-Frame Cooking".

Updating an asset

To apply modifications on an asset in Houdini to Unity:

  • In Houdini: "Assets" -> "Save Asset"
  • In Unity: Select the game object, from the inspector, "Houdini Controls" -> press "Rebuild".

Material binding

Houdini Engine uses the primitive attribute unity_material to bind Unity materials to imported assets. To use this mechanism, the materials have to be placed in the Resources directory, then set the material name to unity_material primitive attribute with using the attribute create SOP or sort of that.

@vidapp
Copy link

vidapp commented Oct 5, 2017

wow - soooo cooool yet again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment