Tweak: cleanup textures and improve dancers jumping
@ -80,7 +80,7 @@ export class CameraManager extends SceneFeature {
|
||||
}
|
||||
|
||||
this.lastSwitchTime = state.clock.getElapsedTime();
|
||||
this.switchCamera(0);
|
||||
this.switchCamera(4);
|
||||
}
|
||||
|
||||
// This is the logic moved from animate.js
|
||||
|
||||
@ -67,7 +67,8 @@ export class Dancers extends SceneFeature {
|
||||
const geometry = new THREE.PlaneGeometry(dancerWidth, dancerHeight);
|
||||
const dancerPositions = [
|
||||
new THREE.Vector3(-4, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 2),
|
||||
new THREE.Vector3(4.5, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 1.8),
|
||||
new THREE.Vector3(0, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 1.8),
|
||||
new THREE.Vector3(4, stageHeight + dancerHeight / 2, -length / 2 + stageDepth / 2 - 2.2),
|
||||
];
|
||||
|
||||
dancerPositions.forEach((pos, index) => {
|
||||
@ -173,7 +174,7 @@ export class Dancers extends SceneFeature {
|
||||
}
|
||||
} else {
|
||||
const musicTime = state.clock.getElapsedTime();
|
||||
if (state.music && state.music.beatIntensity > 0.8 && Math.random() < 0.2 && musicTime > 10) {
|
||||
if (state.music && state.music.beatIntensity > 0.8 && Math.random() < 0.5 && musicTime > 10) {
|
||||
dancerObj.isJumping = true;
|
||||
dancerObj.jumpStartTime = time;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 972 KiB After Width: | Height: | Size: 840 KiB |
|
Before Width: | Height: | Size: 951 KiB After Width: | Height: | Size: 823 KiB |
|
Before Width: | Height: | Size: 981 KiB After Width: | Height: | Size: 856 KiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 866 KiB After Width: | Height: | Size: 752 KiB |
|
Before Width: | Height: | Size: 1004 KiB After Width: | Height: | Size: 878 KiB |
|
Before Width: | Height: | Size: 941 KiB After Width: | Height: | Size: 819 KiB |
|
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 906 KiB |