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
pg_fractional [2021/03/03 15:16] sechrestpg_fractional [2023/04/03 18:16] (current) steph.jorgensen
Line 1: Line 1:
-====== Automatic Fractional Mapping ======+====== Automatic fractional mapping ======
 When using the Mesh Converter to capture bark maps from trunk scans the resulting maps often appear too dense when mapped to branches.  Branches are skinnier than the trunk, so, when the same map is applied the bark pattern appears much denser.  This problem is amplified each time a new layer of branches is added as they become successively smaller in diameter. When using the Mesh Converter to capture bark maps from trunk scans the resulting maps often appear too dense when mapped to branches.  Branches are skinnier than the trunk, so, when the same map is applied the bark pattern appears much denser.  This problem is amplified each time a new layer of branches is added as they become successively smaller in diameter.
  
 Consider the following image: Consider the following image:
  
-{{ :frac_u_normal.jpg?nolink |}}+{{frac_u_normal.jpg?nolink}}
  
 The left side of the image shows a trunk mapped with the bark generated by the Mesh Converter. The same map is then applied, tiling once in U, to each of the next two branch layers.  See how the pattern becomes tighter?  Switching to the "Texel density" render mode reveals the right-hand side of the image.  Notice that the trunk is green but both branch levels appear red indicating a very high texel density. The left side of the image shows a trunk mapped with the bark generated by the Mesh Converter. The same map is then applied, tiling once in U, to each of the next two branch layers.  See how the pattern becomes tighter?  Switching to the "Texel density" render mode reveals the right-hand side of the image.  Notice that the trunk is green but both branch levels appear red indicating a very high texel density.
Line 12: Line 12:
 However, if you do not expect the camera or player to closely inspect the branches, there is a shortcut to evening out the texel density.  In the "U" section of the "UV Mapping" group on any branch generator, enable both "Fractional:Enable" and "Fractional:Auto" Doing so causes the branch to use only as much of the U space of the map needed to exactly match the texel density of its parent (where it attaches). However, if you do not expect the camera or player to closely inspect the branches, there is a shortcut to evening out the texel density.  In the "U" section of the "UV Mapping" group on any branch generator, enable both "Fractional:Enable" and "Fractional:Auto" Doing so causes the branch to use only as much of the U space of the map needed to exactly match the texel density of its parent (where it attaches).
  
-{{ ::fractional_u_properties.jpg?nolink |}}+{{fractional_u_properties.jpg?nolink}}
  
 The following image shows the same model with automatic fractional u coordinates on the two branch levels: The following image shows the same model with automatic fractional u coordinates on the two branch levels:
  
-{{ ::frac_u_auto.jpg?nolink |}}+{{frac_u_auto.jpg?nolink}}
  
 Notice that the bark pattern remains consistent across the model and that the texture density is much more even.  This method often results in better renderings without any extra maps and is especially good for mid-range VFX shots. Notice that the bark pattern remains consistent across the model and that the texture density is much more even.  This method often results in better renderings without any extra maps and is especially good for mid-range VFX shots.
Line 22: Line 22:
 > **Note**: Using this technique means that the map no longer tiles perfectly and there will be a texture seam running along the branch.  So, only use this option if you know you won't be close enough to detect it. > **Note**: Using this technique means that the map no longer tiles perfectly and there will be a texture seam running along the branch.  So, only use this option if you know you won't be close enough to detect it.
  
-===== Best Practices =====+===== Best practices =====
 The following list contains a few tips for using automatic fractional u mapping. The following list contains a few tips for using automatic fractional u mapping.