Configuration files#

The format for the SGCT configuration files is JSON that defines the entire Cluster containing 1 or more Node fields, a User field, an optional Settings field, an optional Capture field, and an optional Tracker field. Each of the components in the configuration files are described in their own pages. Each configuration file has to fulfill the JSON schema which can be found in the SGCT repository.

This is an example configuration file. For more examples, check out the config folder that comes with SGCT or the Examples section in this documentation.

A single node configuration file (download)#
{
  "version": 1,
  "masteraddress": "localhost",
  "nodes": [
    {
      "address": "localhost",
      "port": 20400,
      "windows": [
        {
          "size": { "x": 1280, "y": 720 },
          "viewports": [
            {
              "projection": {
                "type": "PlanarProjection",
                "fov": {
                  "hfov": 80.0,
                  "vfov": 50.534015846724
                }
              }
            }
          ]
        }
      ]
    }
  ],
  "users": [
    {
      "eyeseparation": 0.065,
      "pos": { "x": 0.0, "y": 0.0, "z": 0.0 }
    }
  ]
}