User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
imphoudini [2017/05/02 09:52]
croft
imphoudini [2018/10/16 15:21] (current)
sechrest
Line 11: Line 11:
 =====Importing===== =====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 stmat file. +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 ".stmat" ​file. 
  
 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). 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).
Line 22: Line 22:
 All you need to do is add or change one of the classes that inherits from SpeedTreeMaterialCreator. You will need to have a "​description"​ member and a CreateMaterial() function that does the actual creation of the material and returns a shop node, based on the information in the SpeedTreeMaterial class that is passed in. Hooking the material up in the correct place on the mesh is all handled for you elsewhere. All you need to do is add or change one of the classes that inherits from SpeedTreeMaterialCreator. You will need to have a "​description"​ member and a CreateMaterial() function that does the actual creation of the material and returns a shop node, based on the information in the SpeedTreeMaterial class that is passed in. Hooking the material up in the correct place on the mesh is all handled for you elsewhere.
  
-For examples, please see the SpeedTreeMaterialCreatorPrincipled and SpeedTreeMaterialCreatorMantra classes in the python script inside the SpeedTreeImport.otl file.+For examples, please see the SpeedTreeMaterialCreatorPrincipled and SpeedTreeMaterialCreatorMantra classes in the python script inside the SpeedTreeImport ​".otl" ​file.