I’m working on making a sniper scope that in some way behaves like an actual sniper scope. Here’s what the material looks like right now.
It works by having a circular window that is moved around via the bump offset node, showing certain parts of what is streamed back from a Scene Capture 2D component. This get’s me similar results to what can be seen here and here in that the crosshair points exactly where the rifle is going to shoot, and you need to look directly down the scope to see the full picture. But it also has some problems.
- The window moves in the exact wrong direction. As the camera moves from left to right the window should move from right to left, and as the camera moves from the top to the bottom, the window should move from the bottom to the top.
- The window maintains it’s apparent size when the camera moves closer or further away, when it should shrink significantly as you move further away, and grow to the right size when moving close.
- The window doesn’t move nearly enough, even with an extreme value such as -2000. The amount it moves should be doubled or tripled from what it currently is.
I know this isn’t the intended use for the Bump Offset node, but I’m not sure how I could go about achieving this effect using anything else.