Config file #
This configuration file is used to specify the display settings for a multi-camera system, including the camera status, window size, position, and rendering resolution, as well as the camera field of view (FOV), and the camera offset rotation and position.
displays
This section is an array that contains the display settings for each camera.
status
This key is used to specify the status of the camera. The value must be set to "PlayerCamera"
: a camera that follows a player or object and moves dynamically.
windowSizeWidth
windowSizeHeight
#
These keys are used to specify the width and height of the camera window in pixels.
windowPositionX
windowPositionY
#
These keys are used to specify the position of the camera window on the screen. The value for windowPositionX
represents the horizontal position of the window from the left edge of the screen, and the value for windowPositionY
represents the vertical position of the window from the top edge of the screen.
renderResolutionX
renderResolutiionY
#
These keys are used to specify the rendering resolution of the camera in pixels.
fov
#
This key is used to specify the field of view (FOV) of the camera in degrees.
offsetRotation
#
This key is used to specify the rotation offset of the camera relative to the default camera orientation. The value for x, y, z represents the rotation angle around the x-axis, y-axis, and z-axis, respectively.
offsetPosition
#
This key is used to specify the position offset of the camera relative to the default camera position. The value for x, y, z represents the position offset in the x-axis, y-axis, and z-axis, respectively.
Step by step configuration guide #
- Download multidisplay.json file example http://support.truckworldstudio.com/files/multidisplay.json
- Open with a text editor of your choice.
- Locate the “displays” array, which contains objects that represent different camera displays.
- For each camera display object, set the “status” field to “PlayerCamera”.
- Set the “windowSizeWidth” and “windowSizeHeight” fields to the desired width and height of the camera display window in pixels.
- Set the “windowPositionX” and “windowPositionY” fields to the desired X and Y coordinates of the top-left corner of the camera display window on the screen in pixels.
- Set the “renderResolutionX” and “renderResolutionY” fields to the desired resolution of the camera display’s render target in pixels. This determines the quality of the rendered image.
- Set the “fov” field to the desired field of view of the camera in degrees.
- Set the “offsetRotation” fields to the desired rotation of the camera in the X, Y, and Z axes. The rotation is represented by a vector with the X, Y, and Z components.
- Set the “offsetPosition” fields to the desired position of the camera in the X, Y, and Z axes. The position is represented by a vector with the X, Y, and Z components.
- Save the file in location “Truck World Driving School\TWDS\Saved\Config”.
- Start a game.