XYZ Maps Documentation
    Preparing search index...

    Interface OBJModelSourceExperimental

    Inline Wavefront OBJ source, for example decoded from GeoJSON properties. When byte arrays are transferred to the parser worker, their obj or texture data properties must be writable; the buffers are reattached before loading resolves.

    interface OBJModelSource {
        baseUrl?: string;
        format: "obj";
        mtl?: string | Blob | Record<string, string | Blob>;
        obj: string | Uint8Array<ArrayBufferLike> | Blob;
        textures?: Record<string, string | Blob | ModelTextureData>;
    }
    Index
    baseUrl?: string

    Base URL for relative texture references (directory URLs should end with '/').

    format: "obj"
    mtl?: string | Blob | Record<string, string | Blob>

    Decoded MTL text or a Blob, or texts/Blobs keyed by the filenames in mtllib directives. Missing referenced entries in a supplied map cause a loading error. When omitted, default materials are used; mtllib files are never fetched.

    obj: string | Uint8Array<ArrayBufferLike> | Blob

    Decoded Wavefront OBJ text, UTF-8 bytes, or a Blob created in a worker.

    textures?: Record<string, string | Blob | ModelTextureData>

    Texture filenames from MTL mapped to Blobs, URLs, data URLs, or raw RGBA pixel data. Relative texture URLs require baseUrl; absolute and data URLs do not. Unresolvable or unloadable textures produce a warning and are omitted.