Skip to content
Search

SGL

lastmod 2021-05-08created 2021-05-081 edits

SGL is a cross-platform, C++, scene graph API for real-time visualization (e.g., vis-sim, gaming, scientific modelling, GIS apps). It manages all the data needed to render a 3D scene using OpenGL.

SGL consists of a set of cross-platform C++ libraries, built on top of OpenGL, which implements 3D scene graph functionality (sgl), some simple 3D model loaders (sgldb, sglobj, sgl3ds), and some miscellaneous utilities (sglu). A scene graph is a directed acyclic graph that organizes and stores all of the data needed to render a 3D scene. All vertex data and OpenGL state is stored in leaf nodes in the graph, and all internal nodes control placement (via transformation matrices) and selection (via switches, discriminators, level-of-detail ranges, etc.) of sub-graphs for rendering. Rendering of the 3D scene is performed by traversing the graph, selecting the leaf nodes to be drawn, and issuing OpenGL commands for the information contained in the selected leaf nodes. Note that during the traversal, view-frustum culling can be performed where nodes completely outside the current view are not selected, thus reducing the amount of OpenGL calls performed.

  • A simple 3D rendering graphics library.
  • A 3D rendering graphics library implemented directly in C++ without using OpenGL or DirectX.

See also

Favorite site

References


  1. Sgl_ppt.pdf ↩

author Zer0 sitemap