Hello all! I’m quite new to UE5 and I don’t know a whole lot about how blueprint materials work, particularly post process materials. I have managed to create a night vision post process effect, but now I want to get the post process effect to follow the mouse cursor around the screen. The night vision “tube” effect should be a perfect circle that should be centered on the mouse cursor. I tried to convert the mouse screen coordinates into material UV coordinates and use that to control where the nvg circle was on the screen but I couldn’t seem to figure out how to do that properly. I went looking around on the internet to try to find some solutions and one option that I kept seeing was to somehow use a retainer box widget. I tried placing the post process material in retainer box 2d and 3d widgets, but in both cases I couldn’t see the night vision effect. So now I’m stumped. Like I said, I’m looking for a solution like the magnifying glass example at 3:35 in this video. I want the night vision effect to be limited to a certain area in the screen, and I want that circular area to follow the mouse cursor. Additionally, I want to be able to easily switch between single tube night vision, dual tube night vision, and quad tube night vision effects with the click of a button, and I want to eventually be able to replicate the effect so that you can have 2 or more players each controlling their own night vision effect on the same shared computer screen.
Here is my current blueprint material setup for the night vision post process material.
Here is what the effect looks like on screen:
Here is the setup for my player character (note that this was created as a whole new character).
Thanks in advance for the help! As I said, I’m new to all of this so I’m open to lengthy explanations about what I’m doing wrong and how to fix it.