Grass-clutter modelling – DayZ

From Bohemia Interactive Community
Jump to navigation Jump to search
m (edit for 1.06)
m (Text replacement - "\[ *((ftp|http)s?:\/\/[^ ]+) +([^ =]+) *\]" to "{{Link|$1|$3}}")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:DayZ:Editing|Modelling]]
{{GameCategory|dayz|Modelling}}
[[Category:DayZ:Modelling|Modelling]]
   
   
This page is more or less in WIP state, primarily focused on documenting changes done to the clutter for DayZ (compared to state of clutter in Arma 2 public data).
This page is more or less in WIP state, primarily focused on documenting changes done to the clutter for DayZ (compared to state of clutter in Arma 2 public data).
   
   
==What is new==
== What is new ==
   
   
* Single-sided faces in resolution lods.
* Single-sided faces in resolution lods.
Line 21: Line 20:
* Ability to shadow clutter using global terrain normal texture (see [[DayZ:Terrain sample|terrain sample]] for more info).
* Ability to shadow clutter using global terrain normal texture (see [[DayZ:Terrain sample|terrain sample]] for more info).
   
   
==Sample==
== Sample ==
   
   
You can take a look at DayZ Samples GitHub repository [https://github.com/BohemiaInteractive/DayZ-Samples/tree/master/Test_Clutter here] for an example of a clutter mesh, textures and material itself. Please note that clutter models (when grass shader is used in material) '''cannot be previewed in Buldozer'''!
You can take a look at DayZ Samples GitHub repository {{Link|https://github.com/BohemiaInteractive/DayZ-Samples/tree/master/Test_Clutter|here}} for an example of a clutter mesh, textures and material itself. Please note that clutter models (when grass shader is used in material) '''cannot be previewed in Buldozer'''!

Latest revision as of 17:42, 28 April 2023


This page is more or less in WIP state, primarily focused on documenting changes done to the clutter for DayZ (compared to state of clutter in Arma 2 public data).

What is new

  • Single-sided faces in resolution lods.
  • Wind effect simulation moved to shaders resulting in rvmat changes - introduction of a new array: plantWind[] = {local speed, stiffness, smoothness, light/dir};.
    • local speed (0-1 range) - how much is the speed of local sinusoidal swing (is later affected by global wind and perlin wind inside shader, so stronger wind makes a little faster move).
    • stiffness (0-1 range) - how much the wind affects the XZ plane move, 0 = disable wind effect completely (used on static clutter objects - for example fallen branches, rocks).
    • smoothness (0-1 range) - affects the medium detail perlin wind ("random" gusts of wind) = 0, no smooth, 1 full smooth, almost one direction of wind.
    • light/dir (two numbers):
      • Integer part is how much the wind affects lightness of grass (a little intensity changes when the grass moves more), value is from 0-100.
      • Fractional part is the medium perlin wind directionality, 1 = all directions, 0 only main global wind direction.
  • Stage3 rvmat mask texture for the wind animation (see the sample below).
  • Optional phase offset can be specified (so polyplanes swing in a bit different manner from each other) per plane by merging vertices from a plane and position them within second uv set (and specifying uvSource=tex1 in Stage3 of grass rvmat).
  • Optional shadowBias parameter in rvmat can be used to darken clutter in shadows (0-1 range).
  • Optional use of a normal map (Stage2).
  • Ability to disable coloring by satellite (see grass-clutter configuration for more info).
  • Ability to shadow clutter using global terrain normal texture (see terrain sample for more info).

Sample

You can take a look at DayZ Samples GitHub repository here for an example of a clutter mesh, textures and material itself. Please note that clutter models (when grass shader is used in material) cannot be previewed in Buldozer!