PolyHaven
The PolyHaven plugin provides an integrated control for browsing, streaming, and managing assets from the PolyHaven online repository directly within Tellusim Engine applications. It supports asynchronous asset downloads, metadata querying, and local caching to optimize repeated asset usage and minimize network overhead.
This control is designed for seamless integration into existing Control hierarchies, enabling users to easily browse and retrieve high-quality 3D models, PBR textures, and HDR environment maps from the PolyHaven service.
info
This plugin is integrated into Tellusim Explorer.
#include <interface/polyhaven/include/TellusimPolyHaven.h>
Example
// Create PolyHaven control attached to a parent panel
PolyHaven polyhaven(&panel, device, config);
// Initialize the control
if(!polyhaven.create()) return false;
// Enable the control
polyhaven.setEnabled(true);
// Set asset selection callback
polyhaven.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());
});