# How can I generate UVs from a direction vector field?

**URL:** <https://forums.unrealengine.com/t/how-can-i-generate-uvs-from-a-direction-vector-field/2694145>\
**Category:** Asset Creation\
**Tags:** Post-Processing, unreal-engine, Shaders, question\
**Created:** [January 22, 2026, 3:47pm UTC](https://forums.unrealengine.com/t/how-can-i-generate-uvs-from-a-direction-vector-field/2694145 "2026-01-22T15:47:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Bellver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David\_Bellver](https://forums.unrealengine.com/u/David_Bellver)\
**Post date:** [January 22, 2026, 3:47pm UTC](https://forums.unrealengine.com/t/how-can-i-generate-uvs-from-a-direction-vector-field/2694145/1 "2026-01-22T15:47:50Z")

</div>

I’ve been recently trying to recreate this line-hatching/smearing effect by Pedro Borges ([https://x.com/peteborks/status/1839279984625496545](https://x.com/peteborks/status/1839279984625496545)  
[https://x.com/peteborks/status/1843676863920558529](https://x.com/peteborks/status/1843676863920558529)), so far I’ve managed to get the velocity buffer into a render target which gives me the directions of each pixel relative to the screen but now I have a problem, how do I transform these directions into UVs?

This is how the direction vector field currently looks (its current range goes from -1 to 1)

![Gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/5/5156d655fbf346cbd8b7f1728ffc63afcd4a3ddd.gif)

This is how I think it should look (I’ve just put the field through the VectorToRadialValue node, this is solution doesnt work since it creates new issues for when an object moves linearly)

 ![Captura de pantalla 2025-06-30 092645](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/6/8d67463e3e8824ee3822ffd4002d267fb498d4c7.png)

In these pictures I’ve used an sphere rotating but my intent is for it to work on an animated mesh like in the Pedro Borges posts.
