How to get Z position given X Y coords after Material Displacement

Hi there,

I’ve been trying this for the last couple of days with no success. I’ve got a flat plane with a material that is modifying the World Position Offset. Doing a line trace just gives me the Z position of the plane without my material modifying it:

126822-what2.jpg

By doing this line trace:

Basically my end goal is, given an X, Y coordinate, just simply return the Z coordinate. I read a lot of forum posts about trying line traces to achieve this. Also read about the RenderTargetLookup tutorial to get this, although my material (ocean) is all being done with equations and no actual normal maps or color maps.

Does anyone know a good way to get the Z value given an X, Y coordinate of a mesh after a material has modified its position? Thanks so much!

P.S., if it’s easier to do it in C++, that’s what I will be translating this BP into any way, I just figured BP would be easier. Thanks!

Any luck? Having same issue.

No magic cure for this. You gotta repeat the calculations, you are doing in material, in your blueprint.