Skip to content
benpmPublic
forked from sgct/sgct

About

The Simple Graphics Cluster Toolkit is a framework to support the development of non-standard display environments, such as fisheye rendering or cluster systems

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

SGCT - Simple Graphics Cluster Toolkit

Build Status GitHub Issues Average time to resolve an issue GitHub Releases GitHub Downloads

SGCT is a free cross-platform C++ library for developing OpenGL applications that are synchronized across a cluster of image generating computers (IGs). SGCT is designed to be as simple as possible to use for the developer and targets the use in immersive real-time applications. SGCT supports a number of output formats, such as virtual reality (VR), planetarium/dome geometries, fisheye projections, and other types of projections. In all cases, the client code only needs to render its scene using the projection matrices provided by SGCT and the compositing is then handled internally. SGCT also supports a variety of stereoscopic formats such as active quad buffers, passive side-by-side, passive over-and-under, checkerboard/DLP/pixel interlaced, and different kinds of anaglyphic stereoscopy. SGCT applications are scalable and use an XML configuration file format in which all IGs and their properties are specified. With this approach, there is no need for recompilation of an application for different immersive environments and applications extend naturally to a server-client clustered architecture without recompilation either.

Terminology

We use the following terminology to talk about the way how SGCT works. There is a single Cluster that consists of 1 or more Nodes with each node usually corresponding to a single computer. Each Node contains 1 or more Windows with each Window containing 1 or more Viewports. Some viewport types, such as Fisheye projections, can contain multiple Subviewports, which are created automatically. One the Nodes in the Cluster is designated as the server, where as the other Nodes are clients. The general dataflow in SGCT applications is from the server to the clients, and not vice versa.

Please note that in this nomenclature, even if an application is running only on a single machine, it is still considered a cluster, but only consisting of 1 node that also acts as the server for 0 clients. As there are no clients, it does not have an impact on the performance, however. Furthermore, usually there is a 1-to-1 mapping between Nodes and computers, but that does not have to be the case as a single computer can host an arbitrary(-ish) number of nodes.

Index

  1. Documentation
  2. Features
  3. How it works
  4. Classes
  5. Getting started
  6. Configuration files
  7. Error codes
  8. Doxygen-generated documentation

Building

SGCT resolves its dependencies through vcpkg in manifest mode, so the only prerequisites are a C++23 compiler, CMake 4.0 or newer, and a vcpkg checkout.

  1. Point VCPKG_ROOT at your vcpkg checkout:
    # Windows (PowerShell)
    $env:VCPKG_ROOT = "C:\path\to\vcpkg"
    
    # Linux
    export VCPKG_ROOT=/path/to/vcpkg
    
  2. Clone the repository:
    git clone https://github.com/sgct/sgct.git
    cd sgct
    
  3. Configure, build, and test through the provided CMake presets. The first configure downloads and builds the dependencies, which takes a while; subsequent runs are served from vcpkg's binary cache.
    cmake --preset windows-msvc
    cmake --build --preset windows-msvc
    ctest --preset windows-msvc
    

Build options

Option Default Description
BUILD_SHARED_LIBS OFF Build SGCT as a shared library
SGCT_BUILD_TESTS ON when SGCT is the top-level project, otherwise OFF Build the unit tests
SGCT_BUILD_CALIBRATOR ON Build the calibrator application that renders a test pattern for projector calibration
SGCT_TRACY_SUPPORT OFF Enable Tracy profiling
SGCT_MEMORY_PROFILING OFF Override new/delete for Tracy memory profiling; requires SGCT_TRACY_SUPPORT
SGCT_NDI_SUPPORT OFF Windows only. Proprietary SDK, the result must not be redistributed
SGCT_SCALABLE_SUPPORT OFF Windows only. Proprietary SDK, the result must not be redistributed
SGCT_ENABLE_EDIT_CONTINUE ON Windows only. Compile with /ZI
SGCT_ENABLE_STATIC_ANALYZER OFF Unix only. Compile with -fanalyzer

A project that includes SGCT through add_subdirectory can override SGCT_BUILD_TESTS, SGCT_BUILD_CALIBRATOR, and SGCT_TRACY_SUPPORT by setting the variable before the add_subdirectory call.

Consuming SGCT

A vcpkg port lives in support/vcpkg/ports/sgct. Register it as an overlay from your own project's vcpkg-configuration.json:

{
  "overlay-ports": [ "path/to/sgct/support/vcpkg/ports" ]
}

and then link against it:

find_package(sgct CONFIG REQUIRED)
target_link_libraries(myapp PRIVATE sgct::sgct)

Packaging

SGCT can be packaged for easy distribution using CMake's CPack module. See CPACK_README.md for details on generating installers and packages for Windows and Linux.

License

SGCT is licensed under the 3-clause BSD license

Copyright (c) 2012-2026
Miroslav Andel, Linköping University
Alexander Bock, Linköping University

Contributors: Alexander Fridlund, Joel Kronander, Daniel Jönsson, Erik Sundén, Gene Payne,
              Peter Steneteg

For any questions or information about the SGCT project please contact: alexander.bock@liu.se

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1.   Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
2.   Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.
3.   Neither the name of the copyright holder nor the names of its contributors
     may be used to endorse or promote products derived from this software
     without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ''AS IS''
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

For any questions or further information about the SGCT project, please contact alexander.bock@liu.se or erik.sunden@liu.se.

External libraries

SGCT links against the following external libraries, all of which are provided by vcpkg:

About

The Simple Graphics Cluster Toolkit is a framework to support the development of non-standard display environments, such as fisheye rendering or cluster systems

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages