diff --git a/tools/gltf-avatar-exporter/src/scene/QuadrantScene.ts b/tools/gltf-avatar-exporter/src/scene/QuadrantScene.ts index 6606804..68ff568 100644 --- a/tools/gltf-avatar-exporter/src/scene/QuadrantScene.ts +++ b/tools/gltf-avatar-exporter/src/scene/QuadrantScene.ts @@ -1,7 +1,6 @@ import { Box3, BufferGeometry, - Fog, Group, PCFSoftShadowMap, PerspectiveCamera, @@ -32,8 +31,6 @@ export class QuadrantScene { this.renderer.shadowMap.enabled = true; this.renderer.setSize(this.width, this.height); - this.scene.fog = new Fog(0x000000, 0.01, 50); - this.camera.position.set(0, 1, 2); this.camera.lookAt(this.scene.position); this.camera.updateProjectionMatrix(); @@ -76,7 +73,6 @@ export class QuadrantScene { const fitHeightDistance = maxSize / (2 * Math.atan((Math.PI * this.camera.fov) / 360)); const fitWidthDistance = fitHeightDistance / this.camera.aspect; const distance = Math.max(fitHeightDistance, fitWidthDistance); - this.scene.fog = new Fog(0x000000, 0.01, distance * 5); const offset = new Vector3(0, distance * 0.1, 0); diff --git a/tools/gltf-avatar-exporter/src/scene/elements/CheckerTexture.ts b/tools/gltf-avatar-exporter/src/scene/elements/CheckerTexture.ts index da020ef..05055ec 100644 --- a/tools/gltf-avatar-exporter/src/scene/elements/CheckerTexture.ts +++ b/tools/gltf-avatar-exporter/src/scene/elements/CheckerTexture.ts @@ -33,7 +33,7 @@ export class CheckerTexture extends DataTexture { const data = new Uint8Array(size); for (let i = 0; i <= 12; i += 4) { - const c = i === 4 || i === 8 ? 127 : 255; + const c = i === 4 || i === 8 ? 70 : 200; CheckerTexture.fillData(data, i, c, c, c, 255); } diff --git a/tools/gltf-avatar-exporter/src/scene/elements/Lights.ts b/tools/gltf-avatar-exporter/src/scene/elements/Lights.ts index 4661fce..3162f12 100644 --- a/tools/gltf-avatar-exporter/src/scene/elements/Lights.ts +++ b/tools/gltf-avatar-exporter/src/scene/elements/Lights.ts @@ -1,7 +1,7 @@ import { AmbientLight, DirectionalLight, OrthographicCamera, Vector3 } from "three"; export class Lights { - public ambientLight: AmbientLight = new AmbientLight(0xffffff, 0.05); + public ambientLight: AmbientLight = new AmbientLight(0xffffff, 0.5); public mainLight: DirectionalLight; private shadowResolution: number = 8192; diff --git a/tools/gltf-avatar-exporter/src/scene/elements/Room.ts b/tools/gltf-avatar-exporter/src/scene/elements/Room.ts index 3af178b..4869a94 100644 --- a/tools/gltf-avatar-exporter/src/scene/elements/Room.ts +++ b/tools/gltf-avatar-exporter/src/scene/elements/Room.ts @@ -1,17 +1,17 @@ -import { FrontSide, Group, Mesh, MeshStandardMaterial, PlaneGeometry } from "three"; +import { CircleGeometry, FrontSide, Group, Mesh, MeshStandardMaterial } from "three"; import { CheckerTexture } from "./CheckerTexture"; export class Room extends Group { - private readonly floorSize = 200; - private readonly floorGeometry = new PlaneGeometry(this.floorSize, this.floorSize, 1, 1); + private readonly floorSize = 30; + private readonly floorGeometry = new CircleGeometry(this.floorSize, 36); private readonly floorMaterial: MeshStandardMaterial; private readonly floorMesh: Mesh | null = null; private readonly checkerTexture: CheckerTexture; constructor() { super(); - this.checkerTexture = new CheckerTexture(this.floorSize / 2, this.floorSize / 2); + this.checkerTexture = new CheckerTexture(this.floorSize / 1, this.floorSize / 1); this.floorMaterial = new MeshStandardMaterial({ color: 0xbcbcbc,