-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworld.js
70 lines (55 loc) · 1.94 KB
/
world.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
export let world = () => {
}
export let around = () => {
const loader = new FBXLoader();
loader.setPath('./models/');
loader.load('HSBC Entorno_MASTER 8.6 (ConP).fbx', (fbx) => {
console.log('fbx :>> ', fbx);
//worldOctree.fromGraphNode(gltf.scene);
//fbx.position.x = 1350;
//fbx.position.z = -5;
//fbx.position.y = 0.9;
fbx.scale.setScalar(0.1);
fbx.traverse((c) => {
c.castShadow = true;
});
this._target = fbx;
this._target.name = 'entorno';
this._scene.add(this._target);
})
/*loader.setPath('./models/');
loader.load('HSBC Entorno_PISO_4.2.fbx', (fbx) => {
//fbx.position.x = 1350;
//fbx.position.z = -5;
fbx.position.y = -240;
//fbx.scale.setScalar(1);
fbx.traverse((c) => {
c.castShadow = true;
});
this._target = fbx;
this._target.name = 'piso';
this._scene.add(this._target);
})*/
/* loader.load('./models/HSBC_Entorno C_1.glb', (gltf) => {
//gltf.scene.position.x=50;
//gltf.scene.position.y=90;
//gltf.scene.position.x=30;
console.log('gltf', gltf)
gltf.scene.traverse(c => {
c.castShadow = true;
});
console.log('gltf.scene :>> ', gltf.scene);
this._scene.add(gltf.scene);
worldOctree.fromGraphNode(gltf.scene);
});*/
/*loader.load('./models/LUCES AREA_2.glb', (gltf) => {
//gltf.scene.position.x=50;
//gltf.scene.position.y=90;
//gltf.scene.position.x=30;
console.log('gltf', gltf)
gltf.scene.traverse(c => {
c.castShadow = true;
});
this._scene.add(gltf.scene, );
});*/
}