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:
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!
Product Version: UE 4.15