Jump to content
Sign in to follow this  
basementflyguy

How To: Custom Cameras, Adding Them To Aircraft CFGs, And Aligning Them Across Monitors

Recommended Posts

I've been getting questions over at YouTube about how I align my views in the front / left / right monitors so I posted a how to, and thought it might be useful here as well.

 

***

 

Many of the questions I get on my YouTube channel are about my screen setup and how I manage to get the images on the projector and side screens to align. I do it through custom cameras created using the custom camera tool in Prepar3d, and thought it might be helpful if I wrote a post here explaining my process.

 

There are two ways you can use custom cameras in P3D. One is to create new camera views in a particular scenario. These will be saved in the scenario config file (which is stored in the P3D folder in your PC's Documents folder), and they will be persistent with that scenario: whenever you load it, those camera views will be listed as options in the Custom Camera submenu of the View menu at the top of the screen. If you save custom cameras in your default scenario, they will remain there, too. The other is by adding them to an airplane's default configuration file, in which case that camera view will always be available for any scenario or flight with that airplane. That's a bit more complicated. I'll describe both here.

 

Creating custom views is easy but not always intuitive, and through (much, much) trial and error, I've learned ways to simplify the process and get good alignment across multiple screens. Here's my process for setting up a new set of screen views, which for me would involve three cameras: Front (for the projection screen and view out the front of the aircraft), Left (for the view out the left window), and Right (same for the right window).

 

FIRST: I begin with the front view, because it's the front horizon that I will want the side views to match up with. Custom cameras inherit the settings of the view from which they start, so to save time I first use the view directional keyboard commands to move the view to something close to what I want to have (forward / back, left / right, up / down). It's easier to tweak a view that's sort of close than to start completely from scratch.

 

SECOND: I right click on the front view select "Custom Camera / Create New" from the popup menu:

 

Photo-May-15-8-53-57-AM.jpg

 

This brings up the Manage Camera Views screen:

 

Photo-May-15-8-54-29-AM.jpg

 

THIRD: I tweak that view to get it to my liking, and the easiest way to do this is to use previews. Click the Preview button, and it will open a new view window on the main screen that has inherited the view from which you clicked. Drag the window and its edges so it fills the front view screen. From now on any changes that you make to the variables in the Manage Camera Views dialogue will show instantly on that view screen when you click the Preview button. So you can easily tweak, preview, tweak, preview, etc.

 

As for the variables in the dialogue, here's what they mean:

  • X is the placement of the eye point left or right of center in the aircraft
  • Y is the placement of the eye point above or below center in the aircraft
  • Z is the placement of the eye point front or back of center in the aircraft
  • Pitch is how "nose up" or "nose down" the view is
  • Bank is how angled left or angled right the view is
  • Heading is how turned to the left or turned to the right the view is

Tweak these settings until the view is how you like it, then give it a name in the dialog and click "Save." P3D will then ask you if you want to quit or not. If you choose "Yes" the dialog will close as will the preview window, but a view with that name will now appear in the Custom Camera pop-up menu, and you can select it for your front view. With my front view is that I like to see the cowling of the aircraft, but not the glare shield (as my sim has one). This means my front view is pushed forward quite a bit along the Z axis, and yours may be different.

 

FOURTH: Once the front view is created, I make a left-hand view for the left window monitor. I follow the same process as above, using the keyboard keys to turn the view to the left, move it close to the window, adjust the height, etc. Again, I'm just trying to get it close. Once it is, I open the Manage Camera Views dialogue, create a preview, drag it over to the left window monitor, fill the screen, and begin tweaking the preview. One variable that I simply set rather than tweak is the Heading variable. For the Left view I set it to -90, as this has me looking directly out the left side of the aircraft.

 

Through trial and error I've learned two things are important with the side views. The first is that at least for me, the side views and front view need different zoom settings. My sim is really close to the projection screen, and it's a 100-inch screen. To keep objects from being huge I have the front zoom at .30. For objects on the side views to be about the same size they need a greater zoom, and I use .60. I've come to this through trial and error, and in my sim this has things like the buildings and taxiway lines matching up well from a size perspective. Your zoom settings will be different, but know that the front and side views may need different zooms. The second is that the Bank variable is important. The default camera views nearly always have the horizon when viewed out the side window tilted toward the front or rear of the aircraft. I use the Bank variable to adjust the tilt to make the horizon straight, and the Pitch variable to adjust the height of the horizon so it lines up with the horizon of the front view across the two screens. This may take some trial and error, and might mean re-tweaking the front view's Pitch a bit, but when it's dialed in I can (1) see the cowling of the aircraft out the front, (2) see the bottom of the wing and my flaps out the side, and (3) have the horizon match up across both left and front screens.

 

When I have the left view correct I save it with the name "Left," and instead of quitting the Manage Camera Views dialogue I click "No" because I want to continue with the next view: Right.

 

FIFTH: Once I have my Left view I do NOT close the Manage Camera Views dialogue. Instead, I rename the view Right, and keep all the variables THE SAME except three: X, Bank, and Heading. Bank and Heading are easy: just make them the inverse version of the Left value (so if the Bank and Heading were -4.5 and -90 for left, they should be 4.5 and 90 for right). Y, Z, Pitch, and Zoom should stay the same. This ensures your Left and Right views are mirror compliments of each other. The only variable to tweak is X, as it's how far left or right of center the eye point is. For the Right view you'll want it up close to the right window, so I tweak that variable, looking for a point where the both the left and right struts (or wings for a low-wing airplane) seem about the same size and position. Then I save that view as "Right" and close the dialogue.

 

At this point you should have three saved camera views, Front, Left, and Right, and you can assign them to their respective views and monitors. Now the question is how to keep them for use in other flights. I have two ways of doing this. First, and easiest, is to add the camera views you've defined to other saved scenarios. To make this easy (and to back up my work) I've created a text file on my desktop called "Cameras" into which I've pasted my camera settings so they are backed up and easily at hand. This is easy to do: go into the Documents/Preapar3d folder on your PC and open in a text editor the scenario .CFG file in which you created your custom views. Scroll down and you will see the standard camera views, and below that your custom ones. Just copy and paste the code into your backup Cameras file. Here's a screen shot of part of mine:

 

Screenshot%202016-05-18%2015.42.17.png

 

I have camera setups for four aircraft: the Carenado 182, A2A 182, A2A 172, and A2A Piper 180. All are pasted into this backup file so I have them. Then I can copy and paste the appropriate camera code into the config file of any particular scenario without having to create the camera views via the dialogues. Just open the scenario config file in a text editor and add the appropriate camera code at the bottom of the pre-existing camera locations. Just be sure to continue numbering the camera setups consecutively within the file.

 

You might also want your camera setups to be part of a default aircraft configuration, so those views are available whenever you start a flight with a particular aircraft (saved scenario or not). This is a little more complicated, but not much so. Let's say I want to add my the A2A 172 Front / Left / Right camera setups to the default A2A 172 so they are always available whenever I use that aircraft. To do this I would go into my P3D directory / simobjects / airplanes / A2A 172 subdirectory and open the airplane .CFG file in a text editor. If you scroll down in an airplane .CFG file you will find the camera definitions, and they look like this:

 

Screenshot%202016-05-18%2015.43.43.png

 

 

As you can see, these look DIFFERENT than the scenario camera definitions, which is where people get confused. The good news is that there are only a few lines of code that you need to change to convert one of these default views into a custom camera view. Here's how to do it.

  • First, copy an existing camera definition within the airplane .CFG file. It doesn't matter which one.
  • Second, paste it at the end of the camera definitions, and give it a new cameradefinition number that is next in the sequence from the definition above it.
  • Third, change the Title variable of the view to the name you want (e.g, "A2A 172 Front").
  • Fourth, change the InitialZoom variable to be the correct zoom for your custom camera.
  • Fifth, change the InitialXyz line to reflect the X Y Z values from your custom camera.
  • Fifth, change the InitialPbh line to reflect the Pitch, Bank, and Heading values from your custom camera.
  • Sixth, and last, go to www.guidgenerator.com  and grab a GUID number. Each camera needs a unique identifier, and this site will give you one. Paste it OVER the GUID value between the brackets at the top of the camera definition. When you're done, it should look something like this:

 

Screenshot%202016-05-18%2015.44.08.png

 

Save the file. That's it, unless you want to add Left, Right, or other views, in which case you can repeat the process.

 

In terms of having this all look good from a REAL camera's perspective if you're filming with a GoPro etc., what I've learned is key is that the camera be at about the same height as your eyes in your simpit. Then everything should line up across the three monitors as they do from where you sit (with some minor variability).

 

You can see the final product here (and watch the end for a GREAT little piece of Orbx SoCal scenery magic ... I mean, really?).

 

 

I hope this is helpful.


BasementFlyGuy

GA home cockpit running X-Plane 11 (and sometimes P3D)

Blog: www.ontheglideslope.net

YouTube: OnTheGlideslope Channel

Facebook: On The Glideslope

Share this post


Link to post

Very nce tutorial

 

I have a 40" - 32" - 32" setup and did it in another way but the outcome is the same..

 

Well done..


13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...