This commit is contained in:
syuilo 2026-05-26 10:42:40 +09:00
commit e68847e563
4 changed files with 5 additions and 9 deletions

View file

@ -21,6 +21,7 @@ import { cm, WORLD_SCALE } from 'misskey-world/src/utility.js';
import { TIME_MAP, getMeshesBoundingBox, Timer, getYRotationDirection, FreeCameraManualInput, remap } from '../utility.js';
import { EngineBase } from '../EngineBase.js';
import { genId } from '../id.js';
import { deepClone } from '../clone.js';
import { getObjectDef } from './object-defs.js';
import { findMaterial, GRAPHICS_QUALITY, ModelManager, SYSTEM_HEYA_MESH_NAMES, SYSTEM_MESH_NAMES } from './utility.js';
import { JapaneseEnvManager, MuseumEnvManager, SimpleEnvManager } from './env.js';
@ -30,7 +31,6 @@ import type { GridMaterial } from '@babylonjs/materials';
import type { EnvManager } from './env.js';
import type { RoomStateObject } from 'misskey-world/src/room/object.js';
import type { RoomAttachments, RoomState } from 'misskey-world/src/room/type.js';
import type { deepClone } from '../clone.js';
const BAKE_TRANSFORM = false; // 実験的
const IGNORE_OBJECTS: string[] = ['aquarium']; // for debug

View file

@ -5,6 +5,7 @@
*/
import * as BABYLON from '@babylonjs/core';
import { cm, WORLD_SCALE } from 'misskey-world/src/utility.js';
import { findMaterial, GRAPHICS_QUALITY, SYSTEM_HEYA_MESH_NAMES } from './utility.js';
import type { RoomEngine } from './engine.js';
import type { SimpleEnvOptions, JapaneseEnvOptions, MuseumEnvOptions } from 'misskey-world/src/room/type.js';

View file

@ -10,10 +10,13 @@ import { cm, WORLD_SCALE } from 'misskey-world/src/utility.js';
import { camelToKebab } from 'misskey-world/src/utility.js';
import { getMeshesBoundingBox, ArcRotateCameraManualInput } from '../utility.js';
import { EngineBase } from '../EngineBase.js';
import { deepClone } from '../clone.js';
import { genId } from '../id.js';
import { getObjectDef } from './object-defs.js';
import { SYSTEM_MESH_NAMES, GRAPHICS_QUALITY } from './utility.js';
import { ObjectContainer } from './ObjectContainer.js';
import type { RawOptions } from './object.js';
import type { RoomAttachments } from 'misskey-world/src/room/type.js';
export class RoomObjectPreviewEngine extends EngineBase<{
'loadingProgress': (ctx: { progress: number }) => void;

View file

@ -97,14 +97,6 @@ export abstract class EngineControllerBase<T extends EngineBase<EngineBaseEvents
this.initializeProgress.value = 1;
this.isReady.value = true;
if (_DEV_) {
(window as any).showBabylonInspector = () => {
import('@babylonjs/inspector').then(({ ShowInspector }) => {
ShowInspector(this.engine!.scene);
});
};
}
}
this.canvas.addEventListener('keydown', (ev) => {