Skip to content

36. 使用 LumaSplatsThree 加载 splat 模型

loading

使用 LumaSplatsThree 加载 splat 模型:

ts
const splat = new LumaSplatsThree({
    source: "https://lumalabs.ai/capture/da82625c-9c8d-4d05-a9f7-3367ecab438c",
});
splat.scale.setScalar(300);
splat.position.copy(centerPosition.clone().add(new THREE.Vector3(0, 300, 0)));
splat.renderOrder = 10;
viewer.scene.add(splat);
图片1描述图片2描述
图片1描述图片2描述
图片1描述图片2描述
图片1描述图片2描述

Released under the MIT License.