| On this page |
Overview ¶
Houdini lets you store geometry on disk in .geo or .bgeo format files. The file extension controls which format Houdini saves. .geo is a simple ASCII format, .bgeo is a much more compact binary format. Unless you want to use external scripts to process the geometry files for some reason, use .bgeo as the extension for geometry files.
(The .geo file format is documented here.)
Tip
The File surface node can also load geometry data directly from saved simulation state (
.sim) files. See the help for the File node for more information.
Export ¶
| To... | Do this |
|---|---|
|
Save the geometry in a node as a one-shot action |
In the network editor, right-click a surface node and choose Save geometry. |
|
Set up a File node to write geometry each time it cooks |
Also see the section on caching below. |
|
Set up writing geometry as part of a render dependency network |
The
|
Import ¶
| To... | Do this |
|---|---|
|
Import geometry into a new object |
Choose File ▸ Import ▸ Geometry. This creates a new object containing a |
|
Import geometry into a geometry network |
Tip Press ` (backquote, above the ⇥ Tab key on US keyboards) in the network editor to open a file chooser which lets you choose a geometry file and automatically creates a |
Caching geometry ¶
The File surface node lets you write out geometry the first time the node cooks, and then use the saved geometry from then on, giving a simple form of on-disk caching. To refresh the cache, delete the files on disk.
-
In the network editor, add a
File node and connect the geometry network to its input.
-
In the node’s parameters, set File mode to Automatic.
-
Set the Geometry file to the file on disk to write to.
If your geometry is animated, you can include $F in the filename to write out separate files for each frame.
-
You can add nodes to the File node’s output to further process the cached geometry.
Working with .sim and .simdata ¶
-
SDFs as volume primitives can live in
.bgeofiles. They show up in the viewport as sort of inverted because the default fog makes the outside areas opaque. However, you can use thePrimitive SOP to set their visualization to Iso Surface.
-
.simstores a bunch of simulation objects and their attached data..simdataonly stores the data attached to some simulation object. -
You can create SDFs in
.simformat and save them as.simdata. It is a mostly DOP specific format, but theFile SOP will read
.simand.simdata. -
The
Isooffset SOP only saves
.simdatafiles. TheFile DOP saves
.simfiles. TheFile Data DOP saves
.simdatafiles. The checkpoint option on the DOP Network saves.simfiles. TheDynamics output driver saves
.simfiles. -
Isooffset reads
.simdata, not.sim. TheFile SOP will read
.simand.simdata. -
There is the
Dynamics ROP to create
.sim. -
The
File SOP can be used directly to read an SDF from within a
.simbeing referenced by aDOP Import SOP. If you specify a
.sim, it unlocks the object mask and data path to read from. -
To turn an SDF into a
.sim, Volume Sample it in anIsooffset SOP and use the write mode. This will create a
.simdata, suitable for use by the RBD Collision cache.