meta data for this page
  •  

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
impunity [2023/01/26 15:16] steph.jorgensenimpunity [2023/04/14 13:44] (current) steph.jorgensen
Line 1: Line 1:
 ======Importing into Unity====== ======Importing into Unity======
  
-SpeedTrees are supported in the [[https://unity.com/|Unity game engine]]. The ''.st'' files exported by SpeedTree 9 can be imported with Unity 2018.3 or later. +SpeedTrees are supported in the [[https://unity.com/|Unity game engine]]. The .st files exported by SpeedTree 9 can be imported with Unity 2018.3 or later. 
  
 SpeedTrees work in the standard rendering pipeline, and shaders can be switched to work in the High Definition Render Pipeline (HDRP) and Universal Render Pipeline (URP). SpeedTrees work in the standard rendering pipeline, and shaders can be switched to work in the High Definition Render Pipeline (HDRP) and Universal Render Pipeline (URP).
Line 8: Line 8:
  
 ^**SpeedTree Modeler version** ^ **Unity version** ^ **SpeedTree model file type** ^  ^**SpeedTree Modeler version** ^ **Unity version** ^ **SpeedTree model file type** ^ 
-| 9.x | Unity 2018.3 and later (1) | ''.st'' +| 9.x | Unity 2018.3 and later (1) | .st | 
-| 8.x | Unity 2018.3 and later (1) | ''.st'' +| 8.x | Unity 2018.3 and later (1) | .st | 
-| 7.x | Unity 5.0 to Unity 2018.2.21 | ''.spm'' |+| 7.x | Unity 5.0 to Unity 2018.2.21 | .spm |
 <WRAP indent> **Notes:** </WRAP> <WRAP indent> **Notes:** </WRAP>
   - Shader functionality improves substantially in Unity 2021.2.0a17 and later. See [[impunity#HDRP and URP|HDRP and URP]].   - Shader functionality improves substantially in Unity 2021.2.0a17 and later. See [[impunity#HDRP and URP|HDRP and URP]].
Line 20: Line 20:
 Before exporting a tree for Unity, be sure that your tree is set up for real-time use by using [[kcgameslod|LOD]]. Also ensure that wind is correctly set for Unity by setting the fan to [[windlegacy|Legacy UE4/Unity mode]] and tuning the wind effects, if necessary. Before exporting a tree for Unity, be sure that your tree is set up for real-time use by using [[kcgameslod|LOD]]. Also ensure that wind is correctly set for Unity by setting the fan to [[windlegacy|Legacy UE4/Unity mode]] and tuning the wind effects, if necessary.
  
-If this is the first time exporting to Unity, be sure to pick one of the Unity presets in the [[expgame|export mesh dialog]], to ensure all the export settings are correct for Unity. Export an ''.st'' file directly into the Assets directory of your Unity project. Be sure to wait until the export process is complete before switching back to Unity for the import. You can also export it to another directory and copy it into your Unity assets, but be sure to copy the mesh and all of the textures at the same time before switching back into Unity. Otherwise, the importer will not be able to find the textures. You may be prompted to fix normal maps after import, so select “Fix now” and the import process will continue.+If this is the first time exporting to Unity, be sure to pick one of the Unity presets in the [[expgame|export mesh dialog]], to ensure all the export settings are correct for Unity. Export an .st file directly into the Assets directory of your Unity project. Be sure to wait until the export process is complete before switching back to Unity for the import. You can also export it to another directory and copy it into your Unity assets, but be sure to copy the mesh and all of the textures at the same time before switching back into Unity. Otherwise, the importer will not be able to find the textures. You may be prompted to fix normal maps after import, so select “Fix now” and the import process will continue.
  
 Unity will create a SpeedTree prefab you can use as a GameObject, on the terrain, or in other places inside Unity. Unity will create a SpeedTree prefab you can use as a GameObject, on the terrain, or in other places inside Unity.
  
->**Note**: Do not simply choose import and pick the ''.st'' file from a location outside your assets. Unity will not be able to find the needed texture files.+>**Note**: Do not simply choose import and pick the .st file from a location outside your assets. Unity will not be able to find the needed texture files.