|
@@ -31,7 +31,6 @@ export default class App {
|
|
|
skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
|
|
|
skybox.material = skyboxMaterial;
|
|
|
|
|
|
- this.hasVideoTexture = false
|
|
|
this.hasVideoTexture = true
|
|
|
|
|
|
this.init()
|
|
@@ -49,27 +48,9 @@ export default class App {
|
|
|
|
|
|
self.house = newMeshes
|
|
|
// self.house[0].position = new BABYLON.Vector3(0, 0, -0.5)
|
|
|
- // self.house[0].position = new BABYLON.Vector3(-22, 0, 12)
|
|
|
|
|
|
let houseVideo = document.getElementById("houseTexture")
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
-
|
|
|
- window.connection.socket.emit("getRotateVideoUrl", {
|
|
|
- videoPath: "0/0",
|
|
|
- sceneCode: settings.sceneCode,
|
|
|
- roomId: settings.roomId,
|
|
|
- userId: settings.userId,
|
|
|
- });
|
|
|
- window.connection.socket.emit("getRotateVideoUrl", {
|
|
|
- videoPath: "0/0_rotate" ,
|
|
|
- sceneCode: settings.sceneCode,
|
|
|
- roomId: settings.roomId,
|
|
|
- userId: settings.userId,
|
|
|
- });
|
|
|
-
|
|
|
- }, 1500)
|
|
|
-
|
|
|
newMeshes.forEach(m => {
|
|
|
// m.scaling.scaleInPlace(100);
|
|
|
m._geometry && (m.checkCollisions = true)
|
|
@@ -106,7 +87,25 @@ export default class App {
|
|
|
|
|
|
self.charactorManager = new CharactorManager(self)
|
|
|
await self.charactorManager.readPointData()
|
|
|
- self.charactorManager.importCharactorModel("../scenes/charactors/", "man_YXL.glb")
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+
|
|
|
+ window.connection.socket.emit("getRotateVideoUrl", {
|
|
|
+ videoPath: "0/0",
|
|
|
+ sceneCode: settings.sceneCode,
|
|
|
+ roomId: settings.roomId,
|
|
|
+ userId: settings.userId,
|
|
|
+ });
|
|
|
+ window.connection.socket.emit("getRotateVideoUrl", {
|
|
|
+ videoPath: "0/0_rotate" ,
|
|
|
+ sceneCode: settings.sceneCode,
|
|
|
+ roomId: settings.roomId,
|
|
|
+ userId: settings.userId,
|
|
|
+ });
|
|
|
+
|
|
|
+ self.charactorManager.importCharactorModel("../scenes/charactors/", "man_YXL.glb")
|
|
|
+
|
|
|
+ }, 1000)
|
|
|
});
|
|
|
|
|
|
this.cameraController = new CameraController(self)
|
|
@@ -182,6 +181,7 @@ export default class App {
|
|
|
// this.updateHouseVideo(video, true)
|
|
|
this.initVideo = false
|
|
|
this.cameraController.camera.minZ = 0.001
|
|
|
+ setTimeout(() => this.charactorManager.charactor.visible = true, 1000)
|
|
|
}
|
|
|
})
|
|
|
|