I’m trying to create a material in UE4 which will allow me to tile a texture and then randomly pan those tiles in multiple directions. The effect I’m trying to create is a bunch of dots that move in different directions from one another , crossing over each other . Ideally I’d do this with one single dot texture.
I know how to make textures pan in specific directions but I want the result of randomly panning in multiple directions. Any tips?
Hi @MWomack
Let’s see…
To create a material in UE4 that tiles a texture and pans it randomly in various directions:
Tile the Texture: Multiply the TextureCoordinate by a scalar to control tiling (i.e., TextureCoordinate * 4 for 4x tiling).
Generate Random Offsets:
Use Time and sin/cos nodes to create oscillating panning in multiple directions.
Use SimpleNoise or Random nodes optionally to add additional random variations in direction.
Apply Offsets to Coordinates: Add the random offsets to the tiled texture coordinates.
Sample the Texture: Sample the texture with a TextureSample node using the modified coordinates.
This will allow each tile to pan in random directions, resulting in a dynamic effect