Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -180,12 +180,11 @@ export async function initializeViewer(config, instanceId) {
|
|
| 180 |
console.log("%c[VIEWER DEBUG] All assets loaded, starting app", "color: #2ECC40;");
|
| 181 |
app.start();
|
| 182 |
progressDialog.style.display = 'none';
|
| 183 |
-
|
| 184 |
|
| 185 |
modelEntity = new pc.Entity('model');
|
| 186 |
modelEntity.addComponent('gsplat', { asset: assets.sogs });
|
| 187 |
modelEntity.setLocalPosition(modelX, modelY, modelZ);
|
| 188 |
-
modelEntity.
|
| 189 |
modelEntity.setLocalScale(modelScale, modelScale, modelScale);
|
| 190 |
app.root.addChild(modelEntity);
|
| 191 |
|
|
|
|
| 180 |
console.log("%c[VIEWER DEBUG] All assets loaded, starting app", "color: #2ECC40;");
|
| 181 |
app.start();
|
| 182 |
progressDialog.style.display = 'none';
|
|
|
|
| 183 |
|
| 184 |
modelEntity = new pc.Entity('model');
|
| 185 |
modelEntity.addComponent('gsplat', { asset: assets.sogs });
|
| 186 |
modelEntity.setLocalPosition(modelX, modelY, modelZ);
|
| 187 |
+
modelEntity.setLocalEulerAngles(modelRotationX, modelRotationY, modelRotationZ);
|
| 188 |
modelEntity.setLocalScale(modelScale, modelScale, modelScale);
|
| 189 |
app.root.addChild(modelEntity);
|
| 190 |
|