3 Ways to Make a Sniper Zoom Scope in Godot!

Recently I’ve been looking in the different ways to make a sniper Zoom Scope in the Godot Game Engine. Or any Zoom Scope for that matter. I was inspired by video by Garbarj and a response by Mysterious Purple Cat. It got me thinking of how to actually implement a sniper Zoom Scope in my own project and the other options available out there. Here’s a hint, most of these are actually very simple to do with one or two lines of code, the rest can all be controlled by an animation player, you just need to know what to do.

How Many Sniper Zoom Scopes is that? ?

I’ve gone and made three basic prototypes of a sniper Zoom Scope to show you how these work in the Godot game engine. The first is a simple overlay type, very similar to what you might see in older games like counter strike. Second is the most visually demanding where we render the entire scene to the lens as a render texture but with a zoomed in camera. And third is where we zoom the main camera and then use an optical illusion to prevent any perspective issue on the weapon that we’re zooming on.

What Do I need to make a Sniper??

If you Don’t have a gun model or have anything set up for this, I have a tutorial on that, which I will link below. Likewise, these scope techniques rely on using a viewport container for your viewmodel ie the sniper. Which I also have a tutorial on as well. So I’m assuming you have both a gun that can shoot of some kind and a view model set up. I’m using quaterniuses sniper model.

So let’s not waste anymore time and get into it. I’m going to start with the basic code and basic animation set up, then move on to the detail of each technique. So you can watch this first part and skip to whatever you want after, hopefully that’s helpful. Watch Along Here!

Gabaj’s Video: HERE
Mysterious Purple Cat’s Video: HERE

Get the FPS Template!


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *