Skip to content

Meshes

Meshes are the simplest objects in Krang that can be rendered to an image. Each mesh is made from a material that defines emission mechanics, and a geometry that defines where the emission mechanics occur in the spacetime.

Geometries

Geometries define the region in spacetime which physics materials are constrained to. There are three basic geometries currently available in Krang.

  • ConeGeometry : A spin axis centered cone with its apex placed at the coordinate origin.

  • MeshGeometry : Geometry made from a triangle mesh. The mesh is embedded by placing vertices at points in the Cartesian Kerr-Schild coordinate system.

There are convenience functions defines to translate, rotate and scale these geometries.

  • LevelSetGeometry : Geometry made defined by a level set function expressed in the Cartesian Kerr-Schild coordinate system.

Materials

Materials define the local emission physics necessary to render geometries. Materials may sometimes need additional information that can be stored in geometries by passing attributes to the geometry constructor.