I created this repository to share some custom file readers I've made for houdini during my tenure at DASH. Most of these have to do with reading medical or 3D printing data sets. Hopefully some of you will find this useful!
Feel free to reach out with any questions about installation and use.
- .3mf Reader
- NRRD Reader
This file reader will import meshes from .3mf formatted files, and load them into houidini.
Notably, this only supports meshes. It will not correctly load sliced files, or beam lattice files.
It will load vertex color and UV coords appropriately, but material assignements and texture information has to be set up separately.
- Copy the
sop_Read3mf.hdafrom theotlsfolder to anotlsfolder on your$HOUDINI_PATH - Install the Lib3MF python library
to a
python3.7libsfolder on your$HOUDINI_PATH - Place your lib3mf shared object file (generally
.sofor linux or.dllfor windows) in an accessible location.
- Search for the
Read_3mfsop node from the tab menu in your geometry node inside of houdini. - Select your file using the file picker, and load your file.
- Select your shared object location using the second file picker on the node
Sample files taken from 3MFConsortium on GituHub
This file reader will import volumes using the nrrd format, and load them into Houdini.
You have the choice to use either Houdini's built in volumes or VDB's
- Copy the
sop_ReadNRRD.hdafrom theotlsfolder to anotlsfolder on your$HOUDINI_PATH - Install pynrrd to your houdini environment:
Option 1: By default, the node will install the pynrrd package using pip from within the module itself. To do this:
- create a new
Read_NRRDnode - Try to import a volume, it should faile with a message saying
nrrdnot found. - Restart Houdini, and everything should be working.
Option 2. Alternatively you can install nrrd manually to your Houdinig Python environment.
- run
hython -m pip install pynrrdfrom a command line to use pip to install thepynrrdpackage
- Search for the
Read_NRRDsop node from the tab menu in your geometry node inside of houdini. - Select the type of volume you wish to create, VDB or Houdini Volume
(Note: many medical datasets use value ranges outside of what houdini represents by defauly, if you have issues with the appearence of your volume after importing it, try adjusting the value range)
Sample files taken from 3D slicers sample dataset.