opencsg

The CSG rendering library

bacaro: haikuports anche su HaikuPorts
Anche su HaikuPorts. opencsg

Descrizione

OpenCSG is a library that does image-based CSG rendering using OpenGL. It is written in C++ and supports most modern graphics hardware using Microsoft Windows or the Linux operating system. The current version is OpenCSG-1.8.1.

What is CSG, anyway? CSG is short for Constructive Solid Geometry and denotes an approach to model complex 3D-shapes using simpler ones. I.e., two shapes can be combined by taking the union of them, by intersecting them, or by subtracting one shape of the other. The most basic shapes, which are not result of such a CSG operation, are called primitives. Primitives must be solid, i.e., they must have a clearly defined interior and exterior. By construction, a CSG shape is also solid then.

Image-based CSG rendering (also z-buffer CSG rendering) is a term for algorithms that render CSG shapes without an explicit calculation of the geometric boundary of a CSG shape. Such algorithms use frame-buffer settings of the graphics hardware, e.g., the depth and stencil buffer, to compose CSG shapes. OpenCSG implements a variety of those algorithms, namely the Goldfeather algorithm and the SCS algorithm, both of them in several variants.

Installa

Canale stable v1.8.1-1

Questa app e' curata in HaikuPorts. Installala da li', e' gia' disponibile in HaikuDepot.

pkgman install opencsg

Scarica .hpkg 1.8.1-1 (x86_64)

Attenzione: il file arriva dal server di HaikuPorts, ma installarlo a mano non è la strada consigliata. È «pkgman» a risolvere le dipendenze che un .hpkg non porta con sé: un pacchetto installato da solo potrebbe non partire. Usa il comando pkgman qui sopra, a meno che tu non sappia esattamente perché ti serve il file.

Recensioni