Does anyone know if there is some easy way to obtain an object's screen position from within the material editor(without using a blueprint to MPC to solve)? Currently, the transform position node only transforms to world space.
For example, if the object were in the top left, it's whole color would be 0,0
If it were in the middle, it would be 0.5,0.5
Bottom right, 1,1
And so on...
Right now, I've been trying to use all kinds of trig to solve it by taking the object position, the camera position, camera forward vector, FOV, etc, to triangulate it all, but it's becoming a mess and I'm apparently a bit rusty on it all.
For example, if the object were in the top left, it's whole color would be 0,0
If it were in the middle, it would be 0.5,0.5
Bottom right, 1,1
And so on...
Right now, I've been trying to use all kinds of trig to solve it by taking the object position, the camera position, camera forward vector, FOV, etc, to triangulate it all, but it's becoming a mess and I'm apparently a bit rusty on it all.
Comment