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
impue4 [2018/07/06 15:37]
leehong
impue4 [2018/10/17 10:01] (current)
sechrest
Line 3: Line 3:
 **NOTICE: These instructions are applicable for Unreal Engine 4.19.2. SpeedTree will not work with earlier versions of UE4.** **NOTICE: These instructions are applicable for Unreal Engine 4.19.2. SpeedTree will not work with earlier versions of UE4.**
  
-When you save a model in the UE4 version of the Modeler (or use the compiler for custom licensees) you should have an .st file that represents your model. ​ This is the file you will import into the UE4 Editor. ​ The SpeedTree model will be imported into a normal static mesh object. ​ Click [[creating_models_for_ue4|here]] if you don't have an .st file.+When you save a model in the UE4 version of the Modeler (or use the compiler for custom licensees) you should have an ".st" ​file that represents your model. ​ This is the file you will import into the UE4 Editor. ​ The SpeedTree model will be imported into a normal static mesh object. ​ Click [[creating_models_for_ue4|here]] if you don't have an .st file.
  
 Import the .st file as you would any other asset. ​ You may want to make a folder for your model to keep the resulting assets organized as pictured below. ​ Press "​Import"​ to import your model. Import the .st file as you would any other asset. ​ You may want to make a folder for your model to keep the resulting assets organized as pictured below. ​ Press "​Import"​ to import your model.
Line 9: Line 9:
 {{ :​ue4_import.jpg?​nolink |}} {{ :​ue4_import.jpg?​nolink |}}
  
-You have a number of options ​during import that are presented ​to you in the import ​dialog. First is the choice between 3D geometry, billboards, or both. If a tree will only be used close-up, it is a “hero” tree, or you otherwise have trouble with the billboard as the lowest LOD (as is sometimes the case with dynamic shadows falling on the flat billboard geometry), you can choose to ignore the billboard mesh. Or, if a tree will only be used far away and you want to save loading the 3D geometry, you can only import the billboard. Just importing the billboard mesh also creates a static mesh that can be used with UE4's foliage layers. ​+Several ​options are presented ​during ​the import ​process. First is the choice between 3D geometry, billboards, or both. If a tree will only be used close-up, it is a “hero” tree, or you otherwise have trouble with the billboard as the lowest LOD (as is sometimes the case with dynamic shadows falling on the flat billboard geometry), you can choose to ignore the billboard mesh. Or, if a tree will only be used far away and you want to save loading the 3D geometry, you can only import the billboard. Just importing the billboard mesh also creates a static mesh that can be used with UE4's foliage layers. ​
  
 In the import dialog, you can also choose to include detail, specular, and branch seam blending in the materials used on the 3D tree. You can also add vertex processing to the materials, which puts a special SpeedTree node into the material that can handle wind, billboarding,​ and other effects computed per-vertex on the tree.  In the import dialog, you can also choose to include detail, specular, and branch seam blending in the materials used on the 3D tree. You can also add vertex processing to the materials, which puts a special SpeedTree node into the material that can handle wind, billboarding,​ and other effects computed per-vertex on the tree. 
Line 30: Line 30:
 The materials are of particular importance. ​ It is important to note that **you are completely free to edit the materials generated by the importer**. ​ These materials get the basics in place but can be improved and tailored to suit your scenes. The materials are of particular importance. ​ It is important to note that **you are completely free to edit the materials generated by the importer**. ​ These materials get the basics in place but can be improved and tailored to suit your scenes.
  
-The SpeedTree node connected to "World Position Offest"​ (pictured below) is the only SpeedTree specific component. ​ If you disconnect it everything rendered with that material will be identical to a static mesh.  With it connected you will get SpeedTree wind and smooth LOD transtions.  There are several options available on the SpeedTree node:+The SpeedTree node connected to "World Position Offest"​ (pictured below) is the only SpeedTree specific component. ​ If you disconnect it everything rendered with that material will be identical to a static mesh.  With it connected you will get SpeedTree wind and smooth LOD transitions.  There are several options available on the SpeedTree node:
  
   * **Geometry Type**. ​ This setting controls what type of geometry is rendered and is set automatically. ​ This value rarely needs to be edited.   * **Geometry Type**. ​ This setting controls what type of geometry is rendered and is set automatically. ​ This value rarely needs to be edited.
Line 41: Line 41:
  
  
-The "​SpeedTree Color Variation"​ node (also pictured below) adds color variation to the material based on the models ​position/​orientation. ​ Use this to add subtle color change effects without adding multiple tree models.+The "​SpeedTree Color Variation"​ node (also pictured below) adds color variation to the material based on the model'​s ​position/​orientation. ​ Use this to add subtle color change effects without adding multiple tree models.
  
 {{ ::​ue4_material.jpg?​nolink |}} {{ ::​ue4_material.jpg?​nolink |}}