Sketchfab
The Sketchfab plugin integrates support for browsing, streaming, and managing 3D assets from the Sketchfab online platform directly within Tellusim Engine applications. It provides asynchronous access to Sketchfab asset library via the official API, enabling users to search, preview, and download 3D models seamlessly. The plugin supports local caching to reduce bandwidth and improve loading performance for frequently accessed assets.
This control is designed for seamless integration into existing Control hierarchies, enabling users to easily browse and retrieve high-quality 3D models from the Sketchfab service.
info
This plugin is integrated into Tellusim Explorer.
note
Sketchfab credentials are required to access assets.
#include <interface/sketchfab/include/TellusimSketchfab.h>
Example
// Create Sketchfab control attached to a parent panel
Sketchfab sketchfab(&panel, device, config);
// Set API credentials from Sketchfab developer dashboard
sketchfab.setClient(id, secret);
// Initialize the control
if(!sketchfab.create()) return false;
// Enable the control
sketchfab.setEnabled(true);
// Set asset selection callback
sketchfab.setAssetCallback([](String name, String file, String info, String uid) {
TS_LOGF(Message, "\"%s\" %s %s %s\n", name.get(), file.get(), info.get(), uid.get());
});