Lib.image.generate.noise.Grain - tixl3d/tixl GitHub Wiki

Grain

in Lib.image.generate.noise


Adds animated image pixel noise similar to that of an analog TV or film grain.

ProTip: While this effect can be used in real-time applications at virtually no cost, it can have a significant negative impact on the effectiveness of image and video compression methods.

  • This means that video streams and video files can lose quality and require more bandwidth or memory.
  • Individual videos and image sequences can require considerably more storage space.

Useful Ops for a PostFX Pipeline: [MotionBlur] [DepthOfField] [ChromaticAbberation] [Glow] [Grain] [Blur]


Input Parameters

Name (Relevancy & Type) Description
Image (Texture2D) -
Amount (Single) Controls the intensity of the image noise.
Color (Single) Controls the saturation of the noise.

0: monochromatic noise
5: Colored Noise as in old TV Sets
Exponent (Single) Controls the Exponent
Brightness (Single) Controls the image brightness
Speed (Single) Controls the speed of the animation

Low values can look like noise in liquids

High Values (50 an up) can look like TV Static or Filmgrain
Scale (Single) Changes the size of the generated noise pattern / pixels.
Resolution (Int2) Can be used to override the default render size.
GenerateMipmaps (Boolean) Enables generation of mipmaps.

ProTip: This can be useful and produces better results, if "Grain" is not used as a pure posteffect, but is applied to a surface which is rendered in 3D space from different distances and angles. For example a television / CCTV screen during a fly-through.

Outputs

Name Type
TextureOutput T3.Core.DataTypes.Texture2D

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

⚠️ **GitHub.com Fallback** ⚠️