Skip to main content

Module convert

Module convert 

Source
Expand description

ling convert <asset> [-o out.ling] [--no-compression]

Detects an asset’s type by extension and transcodes it into a self-contained, importable .ling file that reconstructs the asset with the engine’s own builtins — preserving geometry, names, and structure. Bulk numeric data is embedded losslessly: by default deflate-compressed + base64 behind the blob_f32 / blob_i32 builtins; --no-compression emits plain .ling arrays.

Supported: .gltf/.glb (meshes + node names/transforms), .wav/.ogg/.flac (PCM), .mid (note events), .svg (paths/primitives → vector strokes). .blend is detected and routed through Blender’s glTF exporter when available.

Functions§

convert
Dispatch on extension. Returns the number of bytes written.
run