This shows you the differences between two versions of the page.
imphoudini [2017/05/02 09:52] |
imphoudini [2021/04/27 09:19] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Importing to Houdini====== | ||
+ | |||
+ | After [[ExpStaticMesh|exporting]] a mesh from the SpeedTree Modeler, you can use the included Houdini OTL to load it into Houdini and recreate the materials as closely as possible. | ||
+ | |||
+ | To install it, in Houdini, install the digital asset found at //<apps install>/ | ||
+ | |||
+ | |||
+ | > | ||
+ | |||
+ | |||
+ | =====Importing===== | ||
+ | |||
+ | Once the OTL is installed, you will now have a new SpeedTree Importer obj node. When you instantiate one of these, it will ask to load a SpeedTree Material (.stmat) file. You don't need to worry about the format of the actual mesh exported from the SpeedTree Modeler, as that information is stored in the " | ||
+ | |||
+ | Once chosen, it will ask you the type of materials to make for it, Principled or Mantra. You can also add your own material types by editing the script (see below). | ||
+ | |||
+ | |||
+ | =====Extending the Script===== | ||
+ | |||
+ | If you wish to change how the materials are created, or add completely new material types, the importer' | ||
+ | |||
+ | All you need to do is add or change one of the classes that inherits from SpeedTreeMaterialCreator. You will need to have a " | ||
+ | |||
+ | For examples, please see the SpeedTreeMaterialCreatorPrincipled and SpeedTreeMaterialCreatorMantra classes in the python script inside the SpeedTreeImport " | ||