By setting the GameObject containing the Terrain component in an asset’s input field parameter, the plug-in will convert the terrain and its layers into Houdini height fields.
Only square sized terrain are currently supported (i.e. both width and height must be same). If the terrain should be roundtripped (i.e. brought back into Unity), it is recommended to follow the power of 2 + 1 heightmap resolution size rule described in ([Height Field Size and Grid Spacing|#spacing).
The input node in Houdini will contain the following:
-
A height field volume layer named height with heightmap values. The TerrainData file path is set as a string attribute (
unity_hf_terraindata_file
). This is useful for the roundtrip to keep the TerrainData settings, but this attribute can be deleted in Houdini if not needed. -
A heigthfield volume layer named mask with 0 values, unless the Unity terrain contains a TerrainLayer named mask, in which case its splatmap values are used.
-
For each TerrainLayer in the Unity terrain, a corresponding height field volume layer with the same name is created, and its splatmap values are uploaded. The TerrainLayer file path is set as string attribute (
unity_hf_terrainlayer_file
). This is useful for the roundtrip to keep the TerrainLayer being used, but this attribute can be deleted in Houdini if not needed.