Easy Red 2 – How to Create Viewports for Vehicles

How exactly to make the first person camera view similar to other in-game closed up vehicles? If you’ve been wondering about this like I did, then welcome aboard.

Guide to Creating Viewports for Vehicles


  • You had watched at least some official ER2 SDK tutorials and have a rough understanding of how to work with the SDK and a 3D modelling software of your choice.
  • That’s probably it.

What You Probably Came Here For

Suppose that you have a vehicle already prepared (I’ll use a modified Example Tank template).

First of all, add the object that you want to serve as an interior for your camera view (I’ll use the driver’s vision port from Battlefield V as an example) and put it somewhere where you want it to be located when in first person view. (I will intetionally put it outside of the vehicle to show you that it doesn’t matter where exactly it is located).

Select this interior object, press Add Component and enter Veh View Port. Add this component to your future observation device.

Here we have two settings to adjust. The first one, the Cam Pos, as you can guess by its name, is responsible for the camera position in the first person perspective. You can of course just slap in the position of the vision port by just dran-n-dropping it into the Cam Pos field if you are really confident that its pivot point is where exactly you want the camera to be in, but I would really suggest to add an Empty on its position instead in order to manually control the camera position if you do end up messing up like it usually happens when you mod any game.

The Cam Shift on Rotate option is also not something particularly complicated. Have you noticed an effect on some in-game vehicles (especially prominent on seats with the “window” like visor like machinegunner or driver seats) where the camera shifts around the center instead of being fixed in one place? That’s the setting that is responsible for it. If you want to disable it (if you want to make a periscope, for example), just set it to 0. Otherwise, just play around with it until you’ll feel like its okay, or just leave the default 0.1 value.

When you are done setting up the vehicle view port, select the root object of your vehicle (Example Tank Vehicle (with Visor view) in my case) and go to the Seats section. In the section related to the required Seat (the driver seat aka Seat1 in my case), either drag-n-drop your newly created view port into the Vision Port section or just select it from the list. Here you can also tweak just how much movement in the Y axis do you want to allow. Once again, play around with this setting until it feels just right.

Publish the vehicle like usual and go to the firing range for testing purposes.

As you can see, the object we selected to be a viewport for our driver seat is not visible from the outside.

On the other hand, once you enter the seat, the camera moves to the position you selected and starts displaying that aforementioned object.

That’s pretty much it. Hope it helped.

P.S. If your vehicle does happen to have interior modelled

Honestly, nothing is stopping you from just utilizing what you have. In this case, just add an Empty instead of the mesh and put it somewhere where you want your camera to be. Since it’s not connected to the pivot point of some vague 3D model, you can actually just reuse it as a Camera Position object as well and move it around as you wish. Other than that, it shouldn’t be anything too different from what was described earlier.

Jan Bonkoski
About Jan Bonkoski 960 Articles
Jan Bakowski aka Lazy Dice, was always interested in gaming and writing. His love of gaming began with The Legend of Zelda: Ocarina of Time (Nintendo 64) back in 1998. He’s been making game guides since 2012. Sharing his gaming experience with other players has become not only his hobby but also his job. In his free time, he plays on Steam Deck.

Be the first to comment

Leave a Reply

Your email address will not be published.