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
impmaya [2018/01/11 11:21]
titterton
impmaya [2018/01/11 11:22] (current)
titterton
Line 23: Line 23:
 All you need to do is add or change one of the classes that inherits from SpeedTreeImporterTranslatorBase. You will need to have a "​description"​ member and a CreateMaterial() function that does the actual creation of the material and returns a shading 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 SpeedTreeImporterTranslatorBase. You will need to have a "​description"​ member and a CreateMaterial() function that does the actual creation of the material and returns a shading 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 SpeedTreeImporterTranslator,​ SpeedTreeImporterVRayTranslator,​ SpeedTreeImporterMentalRayTranslator,​ SpeedTreeImporterRedshift Translator, SpeedTreeImporterArnoldTranslator, ​and SpeedTreeImporterArnold5Translator classes in SpeedTreeImporter.py.+For examples, please see the SpeedTreeImporterTranslator,​ SpeedTreeImporterVRayTranslator,​ SpeedTreeImporterMentalRayTranslator,​ SpeedTreeImporterRedshift Translator, SpeedTreeImporterArnoldTranslator,​ SpeedTreeImporterArnold5Translator, and SpeedTreeImporterRenderman ​classes in SpeedTreeImporter.py.