HDK
|
The FBio table (usually found in $HFS/houdini) allows the extension of the formats that the raster library understands. The FBio file contains a list of file extensions along with programs which can read/write the new file format (as well as Houdini .pic files).
Use of the GEOio table is still supported but has been deprecated in favour of using the GEOio.json format (Binding Command Line Geometry Converters).
Here is an example program which uses the SGI image buffer libraries to save a raster out.
The corresponding entry in the FBio table would look something like this:
To complete this file format, we would want to create a program to read SGI format images and fill out the reader portion of the table entry. The s will get replaced with the filename to be saved.
In addition to setting up the FBio table, it is also important to extend the FBfiles file to include your new file extension. If this is not done, several programs will not display the new format type in the file prompters.
Tip: The external file format does not actually have to be a disk file format. It is also possible to drive output devices (or scanners) using the FBio table technique. For example, to add an "ipaste" file format, simply add the following line to the FBio table:
Then, when you save an image to a file name ending in ".ip", ipaste will be run (i.e. icp $HH/pic/Mandril.pic test.ip
)