Getting started
Initial commit
import RoomleSdk from "@roomle/web-sdk";
// set the URL from where you want to load
// the data, normally that's api.roomle.com/v2
RoomleSdk.setGlobalInitData({
customApiUrl: "https://api.roomle.com/v2",
});
const glbViewerawait = RoomleSdk.getGlbViewer();
glbViewer.boot();
glbViewerApi = await glbViewer.getApi();
const scene = document.querySelector(".scene");
await glbViewerApi.init(scene);
// Load a static item by the id
await glbViewerApi.loadStaticItem("roomle_content_demo:kitchenware003");Loading different items
Opening AR
Code Sandbox
Last updated