Converts a scene object or OpenSceneGraph (OSG) object to a GL Transmission Format (glTF) string.
Syntax
text ST_AsGLTF(scene sceneObject);Parameters
| Parameter | Type | Description |
|---|---|---|
sceneObject | scene | The 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