Is it possible to get UV coordinates from world position?

Hi,

I am looking for a method to convert the “World Position” node to the nearest UV coordinate of an object.

Triplanar projection, or projecting the XY components to UV space are similar, but not what I’m going for. It would be more similar to the ability to get texture coordinates from line traces, but from within a material.

The flow for my particular need is:

  • Get a world location from a Material Parameter Collection.
  • Draw a sphere mask onto a render target in the UV space of that object.
  • Use the render target as a texture for the object s.t. the result can be additive.

(See “Texture Coordinates from Line Traces”): Unreal Engine 4.13 Released! - Unreal Engine

Thank you

Hi, did you found the solution in the end? Thank you.