Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(character-studio): load the studio HDR through HDRLoader

nirholas005112bf4f25
diff --git a/character-studio/src/library/sceneInitializer.js b/character-studio/src/library/sceneInitializer.js
index cb1ade43b..4aba89283 100644
--- a/character-studio/src/library/sceneInitializer.js
+++ b/character-studio/src/library/sceneInitializer.js
@@ -2,13 +2,13 @@ import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import { CharacterManager } from "./characterManager";
-import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
+import { HDRLoader } from 'three/examples/jsm/loaders/HDRLoader';
export function sceneInitializer(canvasId) {
const scene = new THREE.Scene()
- new RGBELoader().load("./hdr/studio_small_09_2k.hdr", (hdr_) => {
+ new HDRLoader().load("./hdr/studio_small_09_2k.hdr", (hdr_) => {
hdr_.mapping = THREE.EquirectangularReflectionMapping;
hdr_.colorSpace = THREE.LinearSRGBColorSpace
scene.environment = hdr_;