This topic describes the ST_AsGLTF function. This function converts an object to a GL Transmission Format (glTF) string.
Syntax
text ST_AsGLTF(scene sceneObject);
Parameters
Parameter | Description |
---|---|
sceneObject | The scene object. |
Description
- This function converts a scene object to a glTF string.
- This function converts an OSG object to a glTF string.
Examples
SELECT ST_AsGLTF(ST_sceneFromText('{"type" : "gltf", "content" : {"accessors":...}}'));
--------------
{"accessors":...}}