Skip to content

Latest commit

 

History

History

objio

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A fast Obj importer and exporter for Houdini

This crate serves as an example for how one may use hdkrs to build a plugin for Houdini.

The HDK plugin code is located in the hdk directory and builds using CMake after the Rust crate is built.

The load and save functions are registered in hdk/src/GEO_ObjIO.cpp.

The Rust code is located in the src directory as usual. It defines functions to (eventually) call into the obj crate to load and save the .obj files. The gut crate provides convenient mesh types to interface with obj files, although it is not strictly necessary here.

Building

See the "Building and Installing" section in the hdkrs README for instructions.

Highlights

Although this plugin doesn't generate exactly the same imported geometry (using attributes instead of groups), it can already be over 2x faster than the built-in obj loader in Houdini when tested on Linux.