1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-25 22:34:49 +02:00
This commit is contained in:
syuilo
2026-05-13 15:48:34 +09:00
parent 9d102c2a70
commit b53e4f6742
15 changed files with 6 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -248,6 +248,7 @@ async function cancel() {
display: block;
touch-action: none;
background: #000;
cursor: grab;
}
.canvas:focus {
outline: none;

View File

@@ -89,10 +89,6 @@ export abstract class EngineControllerBase {
if (this.options.resolution === 2) babylonEngine.setHardwareScalingLevel(0.5);
if (this.options.resolution === 0.5) babylonEngine.setHardwareScalingLevel(2);
//this.engine = new RoomEngine(this.roomState.value, {
// engine: babylonEngine,
// ...this.options,
//});
this.engine = await params.createEngine(babylonEngine);
this.engine.on('ev', ({ type, ctx }) => {

View File

@@ -116,6 +116,11 @@ export class RoomObjectPreviewEngine extends EventEmitter {
window.takeScreenshot = () => {
const def = getObjectDef(this.objectType);
this.scene.clearColor = new BABYLON.Color4(0, 0, 0, 0);
this.scene.autoClear = true;
this.sr.disableSnapshotRendering();
this.pipeline.dispose();
const boundingInfo = getMeshesBoundingBox(this.objectMesh!.getChildMeshes().filter(m => m.isEnabled() && m.isVisible));
const camera = new BABYLON.ArcRotateCamera('camera', Math.PI / 4, Math.PI / 2.5, cm(300), new BABYLON.Vector3(0, cm(90), 0), this.scene);
@@ -268,10 +273,6 @@ export class RoomObjectPreviewEngine extends EventEmitter {
const size = boundingInfo.extendSize;
const distance = Math.max(size.x, size.y, size.z) * 2;
this.camera.radius = distance * 3;
//this.camera.orthoLeft = -distance;
//this.camera.orthoRight = distance;
//this.camera.orthoTop = distance;
//this.camera.orthoBottom = -distance;
this.pipeline.addCamera(this.camera);