Skip to content

Main Camera

Halban edited this page Dec 8, 2023 · 10 revisions

The main camera mode is a continuously smoothed out version of what you're looking at with KSP's own main camera. To control it, you simply move the camera around as you would normally, while keeping an eye on the preview to time your movements.

Depending on your smoothing settings, you can use it as a normal camera with movement that appears to move in time with slow gameplay, as a follower for aircraft, as a hull-mounted camera, or as a replacement for pathing modes in Camera Tools and Kerbcam.

The recording resolution and aspect ratio can be set however you like, at the cost of longer render times.

Note

The height of a 4K image is 2160 pixels, the most common film aspect ratio is 2.4 to 1. Recently, 2 to 1 has become popular as it fills the entire screen on mobile.

Smoothing

The main camera is smoothed according to one overall smoothing amount, which can then be fine-tuned with a multiplier for each type of movement. The final smoothing amount is the time in seconds that it should take for a camera move to complete, times the multiplier for that type of movement.

Note

  • Position: the point that the camera pivots around, usually the center of mass.
  • Pivot: moving around the vessel with the right mouse button.
  • Pan: tilting the camera around with the middle mouse button.
  • Distance: moving in and out with the scroll wheel.
  • Zoom: adjusting the field of view with ALT + scroll wheel.

Position is special. With position enabled, the central pivot point will smoothly follow your vessel as it moves through space. For it to look right, you have to set the multiplier appropriate to the speed of the vessel (at least in the current version). It will also smoothly transition whenever you switch vessels, or change the pivot position using the 'Aim Part' tweakable.

Warning

I believe this is fixed, but in some scenarios, some combinations of smoothing multipliers, especially low values, can lead to stuttery movement. If you notice anything strange, please double check that your sync mode isn't set to 'Rendering', then let me know over discord @halbann.

I'm also glad to hear any ideas you may have for new smoothing features.

How does audio capture work?

Capture Tools records video by collecting each new frame as it is rendered.

This doesn't mean that the game will appear smooth as you are filming; the video is gradually built up as new frames are rendered, much like an offline renderer.

This makes recording audio difficult, as sound still plays as normal even when the game is stuck or running at very low frame-rates. If you were to record the live audio, it would be much longer than the final video and would never sync up. Capture Tools solves this by rendering the audio separately, building it up sample by sample.

This means that you can't hear the audio as it is being recorded, and it is saved as a separate audio file from the video recording. Unfortunately, Unity's audio rendering system isn't designed to render from multiple different perspectives, so audio is limited to the main camera.

How do I record the UI?

The 'Draw UI' setting will render the flight UI to the main camera output exactly as it appears on your screen. This means that bits of floating UI like vessel labels won't line up all the time if you have a high smoothing setting.

This option doesn't include most mod windows, the kind that are usually black and partly transparent. Those are added to the screen after all of Unity's normal rendering is complete, so Capture Tools can't access them. If you need to record the entire UI, including mod windows, have a look at the manual recording section.

Can I record IVA views?

No, Capture Tools doesn't currently support IVA views through the main camera, although it is on the list of planned features.

Clone this wiki locally