All Products
Search
Document Center

PolarDB:ST_AsGLTF

Last Updated:Mar 28, 2026

Converts a scene object or OpenSceneGraph (OSG) object to a GL Transmission Format (glTF) string.

Syntax

text ST_AsGLTF(scene sceneObject);

Parameters

ParameterTypeDescription
sceneObjectsceneThe scene object or OSG object to convert.

Description

ST_AsGLTF converts a scene object or OSG object into a glTF string.

Example

SELECT ST_AsGLTF(ST_sceneFromText('{"type" : "gltf", "content" : {"accessors":...}}'));

Output:

{"accessors":...}}

See also

  • ST_sceneFromText