-
Notifications
You must be signed in to change notification settings - Fork 1
Standalone
In the following we assume that you have downloaded the source code of this repository and set an environment variable called Houdini_HDK_Examples to point to that location, e.g. with:
setenv Houdini_HDK_Examples ~/git/github/Houdini_HDK_Examples
Goto the proper location:
cd $Houdini_HDK_Examples/standalone/
Compile the source code to a standalone application (using the -s option of hcustom):
hcustom -s geoisosurface.C
Run the resulting executable:
./geoisosurface
Display the resulting BGEO file:
gplay sphere.bgeo
Goto the proper location:
cd $Houdini_HDK_Examples/standalone/
Compile the source code to a standalone application (using the -s option of hcustom):
hcustom -s gengeovolume.C
Run the resulting executable:
./gengeovolume > volume.bgeo
Start Houdini, create a Geometry node, and make the standard File SOP load the volume.bgeo you just created:
Goto the proper location:
cd $Houdini_HDK_Examples/standalone/
Compile the source code to a standalone application (using the -s option of hcustom):
hcustom -s i3dsphere.C
Run the resulting executable:
./i3dsphere
This will create a sphere.i3d file. But how can we visualize it? Let's first try to find out what it contains. The following command can be used to print some information about the file:
i3dinfo sphere.i3d
The resulting output should read like this:
So basically it's kind of a 10x10x10 voxel field with color and density values. To visualize it we have two options in Houdini. Start Houdini, create a Geometry node, and replace the standard File SOP by an IsoSurface SOP which can be used to load the sphere.i3d file you just created:
But this shows basically only the border between density values of one within the sphere and density values of zero outside. To render the 3D Texture we can de-activate the geometry we just created and replace it by an Atmosphere object. Create a camera and some lights and in the SHOP section create a 3D Texture Fog node, which can be referenced within the material section of the Atmosphere object:




