Authentication
Outfit to render
Size of the resulting image, ignored for 3d thumbnails
Type of thumbnail, "png" | "webp" | "gltf"
Quality of image, with 1 being max
Automatically download gltf file
OptionalrenderSceneParam: RBXRendererSceneThumbnailResult, always a string for 2d thumbnails, 3d can be ArrayBuffer (glb, binary) or {[key: string]: unknown} (gltf, json)
Example on generating 1000x1000 webp thumbnail for blank outfit
const outfit = new Outfit()
FLAGS.RENDERTARGET_TO_CANVASTEXTURE = true //required for gltf export
const result = await generateOutfitThumbnail(new Authentication(), outfit, [1000,1000], "webp", 0.99)
FLAGS.RENDERTARGET_TO_CANVASTEXTURE = false
console.log(result)
Generates a 2d or 3d thumbnail of an outfit