This topic describes the ST_AsGLB function. This function converts an object to a GLB binary object.

Syntax

bytea ST_AsGLB(scene sceneObject);

Parameters

ParameterDescription
sceneObjectThe scene object.

Description

  • This function converts a scene object to a GLB binary object.
  • This function converts an OSG object to a GLB binary object.

Examples

SELECT ST_AsGLB(ST_sceneFromText('{"type" : "gltf", "content" : {"accessors":...}}'));
--------------
\x676c544602...