Add Footprints and Deep Marks
intermediate tasksGlobal Snow & Rain 3 · Common Tasks
Global Snow marks the snow in two ways. Deep Marks dig into the Snow Accumulation of the Receivers. Surface Marks, the Footprints and the Collision Marks, are drawn on the snow and also work without the Snow Accumulation. This guide shows how to set them up for characters, animals, vehicles and a first person camera. To mark the snow from your own code, see Marks From a Custom Mover in Scripting Support.
Footprints for Bipeds
- In the Footprints & Marks foldout, turn on Footprints > Enabled under Surface Marks.
- Select the character and add the
Global Snow Interactioncomponent to its root, with Add Component > Effects > Global Snow Interaction. - On humanoid rigs the component finds the feet from the Animator. The top of its inspector shows Marks: footprints, 2 feet.
- Enter Play mode and walk the character on the snow.
Each foot leaves its own print where it lands. To change the sole, how long the prints last, their size and how dark they are, use Texture, Duration, Scale and Obscurance under Footprints. See Surface Marks in Parameters.
Footprints for Animals
- Turn on Footprints > Enabled as for bipeds, and add
Global Snow Interactionto the root of the animal. - Press Detect Feet. On rigs that are not humanoid, it looks for bones named foot, paw or hoof, skips IK helper and target bones, and orders the feet left and right by name.
- If the feet are not found, drag the foot or paw bones of the rig into Feet (skeleton bones): even entries are left feet, odd entries are right feet. Use the bones, not the GameObjects of the shoes or the colliders.
- To give the animal its own print, assign a Sole Texture. The shape comes from the alpha channel with the toes at the top. Empty uses the Footprints texture of Global Snow.
Up to 7 sole textures of their own show next to the Footprints texture; more objects use the Footprints texture. See Global Snow Interaction for every option of the component.
Deep Marks in Snow
Deep Marks dig into the Snow Accumulation as deep as its Thickness, with raised rims and shadows.
- In Snow Appearance, turn on Snow Accumulation and keep a Thickness above 0. It is off by default, and the default Thickness is 0.15 m.
- Press Add Terrains to add the terrains to the Receivers, and open List Receivers to drag other ground such as roads or roofs into the list.
- In the Footprints & Marks foldout, turn on Deep Marks > Enabled.
- Use a Performance Level other than Fastest, which turns off the Snow Accumulation.
- Add
Global Snow Interactionto each character or animal and set its Sink Depth in meters: the Thickness of the accumulation reaches the ground, and a light animal needs a low value. Default 0.1. - Enter Play mode. Deep Marks work in Play mode, and the marks are visible up to 38 m from the camera.
The marks fill back in after the Common Duration, and they are cleared when Snow or the Thickness reaches 0. See Snow Accumulation & Deep Marks and Deep Marks in Parameters. If no marks show, see Deep Marks do not appear.
Tracks for Vehicles
- Add
Global Snow Interactionto the root of the car or the motorcycle, the GameObject that has the Rigidbody. - The contact of each wheel collider with the ground leaves a mark every frame. With Deep Marks set up as above, the wheels dig ruts in the Snow Accumulation. Turn on Collision Marks > Enabled under Surface Marks to draw the marks on the snow as well: they continue the ruts where the Deep Marks fade, and without Deep Marks they are the only marks.
- With Impact FX on, the wheels throw powder and chunks back and to both sides from the ground contact, and the wheels that follow also throw them slightly upward. The wheels that go first also throw powder forward and to the sides where they enter the snow accumulation. Wheel chunks are smaller and partly transparent. The powder thrown forward uses at most 1400 particles, so at very high speed there is a little less of it. At low frame rates the wheels that go first still throw powder forward, and below 30 fps they throw fewer and bigger grains.
- In puddles, with Impact FX and Water Splashes on, the wheels throw water drops back and to both sides, and the wheels that go first also throw drops forward and to the sides. The drops appear at any speed, and slow wheels throw more drops, closer together. Frozen puddles do not splash. The wheels leave no ripple rings on the water.
- For a snowplow or a blade that pushes the snow away, turn on Plow Mode in the component. It clears the whole snow accumulation where the object passes within 5 cm of the ground.
- For the body of the vehicle, take the scene snow off it and use the Moving Object Snow shader, as shown in Exclude Characters, Props and Effects.
- For a vehicle you drive, keep Interact on in its
Global Snow Interaction, so the snow on the ground below it stays. Turn on Block Snow/Rain and Precise to keep the rain and the snowflakes out of it. With Use Fog on, its windows fade in the whiteout like the rest of the vehicle.
For a vehicle without wheel colliders, such as a sled, mark the snow from a script with MarkTrail(), or register it with AddContactSource() so its shape digs Deep Marks. See Marks From a Custom Mover and Deep Marks From Any Object.
First Person Player
- Select the player of your first person game, for example the camera or the object with the Character Controller, and add Add Component > Effects > Global Snow First Person Interaction.
- Set Ground Distance above the height of the object over the ground. When the component is on the camera, use a value above the camera height.
- With Deep Marks on, choose the Marks that the feet dig: Footprints, Two Feet Furrows or Plow.
- With Deep Marks off, turn on Footprints > Enabled in the Footprints & Marks foldout of Global Snow, so the feet draw the sole texture on the snow.
In Play mode the player places a left foot and a right foot at each step while it walks. If the object or one of its parents has a Character Controller, the marks are left only while it is on the ground. See Global Snow First Person Interaction for every option.
Next Steps
- Parameters - every Footprints & Marks option.
- Scripting Support (C#) - marks, footprints and impacts from code.
- Troubleshooting - footprints or marks that do not appear.
Suggest an improvement
Help us improve this documentation page.