Shaders Overview/VehicleShader/MotionPathSecondUVColorMask: Difference between revisions

From North Modding Company
(Created page with "= Motion Path Rubber = This shader variation, known as Motion Path Rubber, is tailored for rendering static rubber or metal mesh tracks and belts, such as those found on crawler vehicles in farming simulations. The shader utilizes a vertex animation texture (VAT) that contains predefined poses, allowing for the simulation of track and belt movements, such as advancing or retracting. These poses are created from spline data in Maya or Blender, processed by a custom tool,...")
 
No edit summary
 
Line 4: Line 4:
=== Base Parameters ===
=== Base Parameters ===
{{VehicleShaderParameters|group=base}}
{{VehicleShaderParameters|group=base}}
=== Color Mask Parameters ===
{{VehicleShaderParameters|group=colorMask}}
=== Scroll Parameters ===
=== Scroll Parameters ===
{{VehicleShaderParameters|group=scroll}}
{{VehicleShaderParameters|group=scroll}}
=== Track Parameters ===
{{VehicleShaderParameters|group=track}}
== Usage ==
== Usage ==
This shader variation is designed for rubber crawler/belts without the any special needs for a second uv map or support for colorMask
This shader variation is designed for rubber crawler/belts without the any special needs for a second uv map or support for colorMask

Latest revision as of 01:10, 2 March 2024

Motion Path Rubber

This shader variation, known as Motion Path Rubber, is tailored for rendering static rubber or metal mesh tracks and belts, such as those found on crawler vehicles in farming simulations. The shader utilizes a vertex animation texture (VAT) that contains predefined poses, allowing for the simulation of track and belt movements, such as advancing or retracting. These poses are created from spline data in Maya or Blender, processed by a custom tool, and then exported for use in the GIANTS Engine. While the animation is not responsive to environmental interactions, it effectively simulates the mechanical movement of caterpillar treads and belts in a pre-determined, looped sequence.

Parameters

Base Parameters

RDT
Reflective Detail Textures - Controls the amount of reflective detail such as scratches, dirt, and snow on the vehicle surface. Type: `float4`. Default: `0.0 0.0 0.0 0.0`.
dirtColor
Sets the color of the dirt overlay on the vehicle. Type: `float4`. Default: `0.20 0.14 0.08 0.0`.

Color Mask Parameters

colorMat
Array of 8 customizable colors/materials which is based of the UV UDIM location. First 3 floats controls the colors and the last controls the material (0 = metal, 1 = plastic etc) Type: `float4`. Default: `0.5 0.5 0.5 1.0"`. Range: `0.0 0.0 0.0 0.0` to `1.0 1.0 1.0 255.0`.

Scroll Parameters

scrollPosition
Controls the scrolling position for effects such as tracks or belts. Type: `float4`. Default: `0.0 0.0 0.0 0.0`. Range: `-1.0 0.0 0.0 0.0` to `1.0 10.0 10.0 1.0`.
prevScrollPosition
The previous scrolling position, calculated automatically by the shader. Type: `float4`. Default: `0.0 0.0 0.0 0.0`. Range: `-1.0 0.0 0.0 0.0` to `1.0 10.0 10.0 1.0`.
lengthAndRadius
Defines the length and radius for scrollable elements. Type: `float4`. Default: `2.0 0.5 0.0 0.0`.

Track Parameters

mTrackArray
2dArray linearRGB texture store information about vertex position rotation and scale

Usage

This shader variation is designed for rubber crawler/belts without the any special needs for a second uv map or support for colorMask

For common 3d crawler/belt setup please go to Common 3D Crawler Creation.

For steps specific to the Motion Path Rubber Shader, see the detailed guide.

Troubleshooting

  1. Check that the overall length of the track is exactly 10meters from start to end laying flat
    1. This can easily be checked if you click on the belt mesh object in blender and check the dimension (Y Axis)
  2. Check that the correct array texture is used