@umituz/web-virtual 1.0.6 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/assets/ASSET_CREDITS.md +45 -0
  2. package/assets/models/characters/character-female-a.glb +0 -0
  3. package/assets/models/characters/character-female-b.glb +0 -0
  4. package/assets/models/characters/character-male-a.glb +0 -0
  5. package/assets/models/characters/character-male-b.glb +0 -0
  6. package/assets/models/decor/lampRoundFloor.glb +0 -0
  7. package/assets/models/decor/plantSmall1.glb +0 -0
  8. package/assets/models/decor/pottedPlant.glb +0 -0
  9. package/assets/models/decor/trashcan.glb +0 -0
  10. package/assets/models/equipment/computerKeyboard.glb +0 -0
  11. package/assets/models/equipment/computerMouse.glb +0 -0
  12. package/assets/models/equipment/computerScreen.glb +0 -0
  13. package/assets/models/equipment/laptop.glb +0 -0
  14. package/assets/models/furniture/bookcaseOpen.glb +0 -0
  15. package/assets/models/furniture/chairDesk.glb +0 -0
  16. package/assets/models/furniture/desk.glb +0 -0
  17. package/assets/models/furniture/deskCorner.glb +0 -0
  18. package/assets/models/furniture/loungeChair.glb +0 -0
  19. package/assets/models/furniture/loungeSofa.glb +0 -0
  20. package/assets/models/furniture/table.glb +0 -0
  21. package/assets/models/furniture/tableCoffee.glb +0 -0
  22. package/package.json +2 -1
  23. package/src/engine/assetCatalog.test.ts +29 -0
  24. package/src/engine/assetCatalog.ts +222 -0
  25. package/src/engine/index.ts +2 -0
  26. package/src/engine/modelLoader.ts +126 -0
  27. package/src/entities/furniture/DeskBuilder.ts +196 -202
  28. package/src/entities/people/AvatarBuilder.ts +150 -208
  29. package/src/entities/props/PlantBuilder.ts +33 -36
  30. package/src/presets/officePreset.ts +37 -0
@@ -1,5 +1,6 @@
1
1
  import * as THREE from 'three'
2
2
  import type { MaterialPalette } from '../../engine/materials'
3
+ import { ModelLoader } from '../../engine/modelLoader'
3
4
 
4
5
  export function createModernWorkstation(
5
6
  materials: MaterialPalette,
@@ -15,13 +16,9 @@ export function createModernWorkstation(
15
16
  group.userData = { entityId: options.entityId }
16
17
  }
17
18
 
18
- const desktopMat = materials.getDeskTopMaterial(options.topColor || '#f8fafc')
19
- const legMat = materials.getMetalLegMaterial()
20
- const bezelMat = materials.getMonitorBezelMaterial()
19
+ const shadowMat = materials.getContactShadowMaterial()
21
20
  const screenMat1 = materials.getMonitorScreenMaterial('dashboard')
22
21
  const screenMat2 = materials.getMonitorScreenMaterial('code')
23
- const chairMat = materials.getLeatherMaterial('#334155')
24
- const shadowMat = materials.getContactShadowMaterial()
25
22
 
26
23
  // 0. Contact Ambient Occlusion Drop Shadows (grounds furniture on floor)
27
24
  const deskShadow = new THREE.Mesh(new THREE.PlaneGeometry(1.9, 1.1), shadowMat)
@@ -34,159 +31,161 @@ export function createModernWorkstation(
34
31
  chairShadow.position.set(0, 0.003, 0.48)
35
32
  group.add(chairShadow)
36
33
 
37
- // 1. Desktop surface (1.6m x 0.8m x 0.04m)
38
- const topGeo = new THREE.BoxGeometry(1.6, 0.04, 0.8)
39
- const topMesh = new THREE.Mesh(topGeo, desktopMat)
34
+ // 1. Container for 3D Real Models
35
+ const modelsContainer = new THREE.Group()
36
+ modelsContainer.name = `workstation-models-${options.entityId || 'generic'}`
37
+ group.add(modelsContainer)
38
+
39
+ // 2. Fallback geometry group (shown instantly while 3D models load)
40
+ const placeholderGroup = new THREE.Group()
41
+ placeholderGroup.name = 'workstation-placeholder'
42
+
43
+ const desktopMat = materials.getDeskTopMaterial(options.topColor || '#f8fafc')
44
+ const legMat = materials.getMetalLegMaterial()
45
+ const chairMat = materials.getLeatherMaterial('#334155')
46
+
47
+ const topMesh = new THREE.Mesh(new THREE.BoxGeometry(1.6, 0.04, 0.8), desktopMat)
40
48
  topMesh.position.set(0, 0.74, 0)
41
49
  topMesh.castShadow = true
42
50
  topMesh.receiveShadow = true
43
51
  if (options.entityId) topMesh.userData = { entityId: options.entityId }
44
- group.add(topMesh)
52
+ placeholderGroup.add(topMesh)
45
53
 
46
- // 2. Desk Legs (Modern metal legs)
47
- const legGeo = new THREE.BoxGeometry(0.06, 0.72, 0.7)
48
- const leftLeg = new THREE.Mesh(legGeo, legMat)
54
+ const leftLeg = new THREE.Mesh(new THREE.BoxGeometry(0.06, 0.72, 0.7), legMat)
49
55
  leftLeg.position.set(-0.7, 0.36, 0)
50
56
  leftLeg.castShadow = true
51
57
  if (options.entityId) leftLeg.userData = { entityId: options.entityId }
52
- group.add(leftLeg)
58
+ placeholderGroup.add(leftLeg)
53
59
 
54
- const rightLeg = new THREE.Mesh(legGeo, legMat)
60
+ const rightLeg = new THREE.Mesh(new THREE.BoxGeometry(0.06, 0.72, 0.7), legMat)
55
61
  rightLeg.position.set(0.7, 0.36, 0)
56
62
  rightLeg.castShadow = true
57
63
  if (options.entityId) rightLeg.userData = { entityId: options.entityId }
58
- group.add(rightLeg)
59
-
60
- // 3. Ergonomic Office Chair
61
- const chairGroup = new THREE.Group()
62
- chairGroup.position.set(0, 0, 0.48)
63
- if (options.entityId) chairGroup.userData = { entityId: options.entityId }
64
-
65
- // Seat
66
- const seatGeo = new THREE.BoxGeometry(0.48, 0.08, 0.46)
67
- const seat = new THREE.Mesh(seatGeo, chairMat)
68
- seat.position.set(0, 0.46, 0)
69
- seat.castShadow = true
70
- if (options.entityId) seat.userData = { entityId: options.entityId }
71
- chairGroup.add(seat)
72
-
73
- // Backrest
74
- const backGeo = new THREE.BoxGeometry(0.46, 0.52, 0.06)
75
- const back = new THREE.Mesh(backGeo, chairMat)
76
- back.position.set(0, 0.74, 0.2)
77
- back.rotation.x = -0.1
78
- back.castShadow = true
79
- if (options.entityId) back.userData = { entityId: options.entityId }
80
- chairGroup.add(back)
81
-
82
- // Base stand & wheels
83
- const standGeo = new THREE.CylinderGeometry(0.03, 0.03, 0.42, 8)
84
- const stand = new THREE.Mesh(standGeo, legMat)
85
- stand.position.set(0, 0.21, 0)
86
- chairGroup.add(stand)
87
-
88
- group.add(chairGroup)
89
-
90
- // 4. Primary Monitor
91
- const monitorGroup = new THREE.Group()
92
- monitorGroup.position.set(options.dualMonitor ? -0.28 : 0, 0.76, -0.22)
93
-
94
- // Stand
95
- const mStandGeo = new THREE.BoxGeometry(0.04, 0.28, 0.04)
96
- const mStand = new THREE.Mesh(mStandGeo, legMat)
97
- mStand.position.set(0, 0.14, 0)
98
- monitorGroup.add(mStand)
99
-
100
- const mBaseGeo = new THREE.CylinderGeometry(0.12, 0.12, 0.015, 16)
101
- const mBase = new THREE.Mesh(mBaseGeo, legMat)
102
- mBase.position.set(0, 0.01, 0)
103
- monitorGroup.add(mBase)
104
-
105
- // Screen frame
106
- const frameGeo = new THREE.BoxGeometry(0.68, 0.4, 0.03)
107
- const frame = new THREE.Mesh(frameGeo, bezelMat)
108
- frame.position.set(0, 0.32, 0)
109
- frame.castShadow = true
110
- if (options.entityId) frame.userData = { entityId: options.entityId }
111
- monitorGroup.add(frame)
112
-
113
- // Screen display
114
- const dispGeo = new THREE.PlaneGeometry(0.64, 0.36)
115
- const disp = new THREE.Mesh(dispGeo, screenMat1)
116
- disp.position.set(0, 0.32, 0.016)
117
- if (options.entityId) disp.userData = { entityId: options.entityId }
118
- monitorGroup.add(disp)
119
-
120
- group.add(monitorGroup)
121
-
122
- // 5. Secondary Monitor (Dual Monitor Setup)
123
- if (options.dualMonitor) {
124
- const monitor2 = new THREE.Group()
125
- monitor2.position.set(0.35, 0.76, -0.2)
126
- monitor2.rotation.y = -Math.PI / 8
127
-
128
- const m2Stand = new THREE.Mesh(mStandGeo, legMat)
129
- m2Stand.position.set(0, 0.14, 0)
130
- monitor2.add(m2Stand)
131
-
132
- const m2Base = new THREE.Mesh(mBaseGeo, legMat)
133
- m2Base.position.set(0, 0.01, 0)
134
- monitor2.add(m2Base)
135
-
136
- const m2Frame = new THREE.Mesh(frameGeo, bezelMat)
137
- m2Frame.position.set(0, 0.32, 0)
138
- m2Frame.castShadow = true
139
- if (options.entityId) m2Frame.userData = { entityId: options.entityId }
140
- monitor2.add(m2Frame)
141
-
142
- const m2Disp = new THREE.Mesh(dispGeo, screenMat2)
143
- m2Disp.position.set(0, 0.32, 0.016)
144
- if (options.entityId) m2Disp.userData = { entityId: options.entityId }
145
- monitor2.add(m2Disp)
146
-
147
- group.add(monitor2)
148
- }
149
-
150
- // 6. Laptop (if enabled)
151
- if (options.hasLaptop) {
152
- const laptopGroup = new THREE.Group()
153
- laptopGroup.position.set(0.48, 0.76, -0.05)
154
- laptopGroup.rotation.y = -Math.PI / 6
155
-
156
- const baseG = new THREE.BoxGeometry(0.3, 0.015, 0.2)
157
- const baseM = new THREE.Mesh(baseG, bezelMat)
158
- baseM.position.set(0, 0.007, 0)
159
- if (options.entityId) baseM.userData = { entityId: options.entityId }
160
- laptopGroup.add(baseM)
161
-
162
- const screenG = new THREE.BoxGeometry(0.3, 0.2, 0.01)
163
- const scrM = new THREE.Mesh(screenG, bezelMat)
164
- scrM.position.set(0, 0.1, -0.1)
165
- scrM.rotation.x = -Math.PI / 12
166
- if (options.entityId) scrM.userData = { entityId: options.entityId }
167
- laptopGroup.add(scrM)
168
-
169
- group.add(laptopGroup)
170
- }
171
-
172
- // 7. Keyboard & Mouse
173
- const kbGeo = new THREE.BoxGeometry(0.42, 0.01, 0.14)
174
- const kb = new THREE.Mesh(kbGeo, bezelMat)
175
- kb.position.set(0, 0.765, 0.08)
176
- if (options.entityId) kb.userData = { entityId: options.entityId }
177
- group.add(kb)
178
-
179
- const mouseGeo = new THREE.BoxGeometry(0.06, 0.015, 0.1)
180
- const mouse = new THREE.Mesh(mouseGeo, bezelMat)
181
- mouse.position.set(0.3, 0.765, 0.08)
182
- if (options.entityId) mouse.userData = { entityId: options.entityId }
183
- group.add(mouse)
184
-
185
- // 8. Ceramic Coffee Mug
64
+ placeholderGroup.add(rightLeg)
65
+
66
+ const chairSeat = new THREE.Mesh(new THREE.BoxGeometry(0.48, 0.08, 0.46), chairMat)
67
+ chairSeat.position.set(0, 0.46, 0.48)
68
+ chairSeat.castShadow = true
69
+ if (options.entityId) chairSeat.userData = { entityId: options.entityId }
70
+ placeholderGroup.add(chairSeat)
71
+
72
+ group.add(placeholderGroup)
73
+
74
+ // 3. Asynchronously load and mount real 3D models from Asset Catalog
75
+ const loader = ModelLoader.getInstance()
76
+ void Promise.allSettled([
77
+ loader.load('furniture:desk'),
78
+ loader.load('furniture:chairDesk'),
79
+ loader.load('equipment:screen'),
80
+ options.dualMonitor ? loader.load('equipment:screen') : Promise.resolve(null),
81
+ loader.load('equipment:keyboard'),
82
+ loader.load('equipment:mouse'),
83
+ options.hasLaptop ? loader.load('equipment:laptop') : Promise.resolve(null),
84
+ ]).then((results) => {
85
+ // If successfully loaded, replace placeholder with real models
86
+ const deskModel = results[0].status === 'fulfilled' ? results[0].value : null
87
+ const chairModel = results[1].status === 'fulfilled' ? results[1].value : null
88
+ const screenModel1 = results[2].status === 'fulfilled' ? results[2].value : null
89
+ const screenModel2 = results[3].status === 'fulfilled' ? results[3].value : null
90
+ const kbModel = results[4].status === 'fulfilled' ? results[4].value : null
91
+ const mouseModel = results[5].status === 'fulfilled' ? results[5].value : null
92
+ const laptopModel = results[6].status === 'fulfilled' ? results[6].value : null
93
+
94
+ if (deskModel) {
95
+ placeholderGroup.visible = false
96
+
97
+ // Real Desk
98
+ deskModel.scale.set(2.0, 1.95, 2.0)
99
+ deskModel.position.set(-0.7, 0, 0.38)
100
+ deskModel.traverse((node) => {
101
+ if (options.entityId) node.userData = { entityId: options.entityId }
102
+ })
103
+ modelsContainer.add(deskModel)
104
+
105
+ // Real Chair
106
+ if (chairModel) {
107
+ chairModel.scale.set(2.2, 2.2, 2.2)
108
+ chairModel.position.set(-0.35, 0, 0.65)
109
+ chairModel.rotation.y = Math.PI
110
+ chairModel.traverse((node) => {
111
+ if (options.entityId) node.userData = { entityId: options.entityId }
112
+ })
113
+ modelsContainer.add(chairModel)
114
+ }
115
+
116
+ // Real Primary Screen
117
+ if (screenModel1) {
118
+ screenModel1.scale.set(1.5, 1.5, 1.5)
119
+ screenModel1.position.set(options.dualMonitor ? -0.28 : 0, 0.74, -0.2)
120
+ screenModel1.traverse((node) => {
121
+ if (options.entityId) node.userData = { entityId: options.entityId }
122
+ })
123
+
124
+ // Overlay glowing dashboard screen plane
125
+ const disp1 = new THREE.Mesh(new THREE.PlaneGeometry(0.58, 0.34), screenMat1)
126
+ disp1.position.set(options.dualMonitor ? -0.28 : 0, 0.98, -0.19)
127
+ if (options.entityId) disp1.userData = { entityId: options.entityId }
128
+ modelsContainer.add(disp1)
129
+ modelsContainer.add(screenModel1)
130
+ }
131
+
132
+ // Real Secondary Screen (Dual Monitor Setup)
133
+ if (screenModel2) {
134
+ screenModel2.scale.set(1.5, 1.5, 1.5)
135
+ screenModel2.position.set(0.35, 0.74, -0.18)
136
+ screenModel2.rotation.y = -Math.PI / 7
137
+ screenModel2.traverse((node) => {
138
+ if (options.entityId) node.userData = { entityId: options.entityId }
139
+ })
140
+
141
+ // Overlay glowing code screen plane
142
+ const disp2 = new THREE.Mesh(new THREE.PlaneGeometry(0.58, 0.34), screenMat2)
143
+ disp2.position.set(0.35, 0.98, -0.17)
144
+ disp2.rotation.y = -Math.PI / 7
145
+ if (options.entityId) disp2.userData = { entityId: options.entityId }
146
+ modelsContainer.add(disp2)
147
+ modelsContainer.add(screenModel2)
148
+ }
149
+
150
+ // Real Keyboard
151
+ if (kbModel) {
152
+ kbModel.scale.set(1.5, 1.5, 1.5)
153
+ kbModel.position.set(0, 0.75, 0.08)
154
+ kbModel.traverse((node) => {
155
+ if (options.entityId) node.userData = { entityId: options.entityId }
156
+ })
157
+ modelsContainer.add(kbModel)
158
+ }
159
+
160
+ // Real Mouse
161
+ if (mouseModel) {
162
+ mouseModel.scale.set(1.4, 1.4, 1.4)
163
+ mouseModel.position.set(0.28, 0.75, 0.08)
164
+ mouseModel.traverse((node) => {
165
+ if (options.entityId) node.userData = { entityId: options.entityId }
166
+ })
167
+ modelsContainer.add(mouseModel)
168
+ }
169
+
170
+ // Real Laptop
171
+ if (laptopModel) {
172
+ laptopModel.scale.set(0.9, 0.9, 0.9)
173
+ laptopModel.position.set(0.5, 0.75, -0.05)
174
+ laptopModel.rotation.y = -Math.PI / 6
175
+ laptopModel.traverse((node) => {
176
+ if (options.entityId) node.userData = { entityId: options.entityId }
177
+ })
178
+ modelsContainer.add(laptopModel)
179
+ }
180
+ }
181
+ })
182
+
183
+ // Ceramic Coffee Mug
186
184
  const mugGeo = new THREE.CylinderGeometry(0.04, 0.035, 0.08, 12)
187
185
  const mugMat = materials.getWallMaterial('#ffffff')
188
186
  const mug = new THREE.Mesh(mugGeo, mugMat)
189
187
  mug.position.set(-0.55, 0.8, -0.1)
188
+ if (options.entityId) mug.userData = { entityId: options.entityId }
190
189
  group.add(mug)
191
190
 
192
191
  return group
@@ -200,7 +199,6 @@ export function createExecutiveDesk(
200
199
  if (options.entityId) group.userData = { entityId: options.entityId }
201
200
 
202
201
  const woodMat = materials.getExecutiveWoodMaterial()
203
- const chairMat = materials.getLeatherMaterial('#0f172a')
204
202
  const bezelMat = materials.getMonitorBezelMaterial()
205
203
  const screenMat = materials.getMonitorScreenMaterial('charts')
206
204
  const shadowMat = materials.getContactShadowMaterial()
@@ -216,45 +214,46 @@ export function createExecutiveDesk(
216
214
  chairShadow.position.set(0, 0.003, 0.65)
217
215
  group.add(chairShadow)
218
216
 
219
- // Main Executive Table (2.2m x 0.9m)
220
- const mainGeo = new THREE.BoxGeometry(2.2, 0.08, 0.9)
221
- const mainTop = new THREE.Mesh(mainGeo, woodMat)
217
+ // Real 3D Corner Desk
218
+ const modelsContainer = new THREE.Group()
219
+ modelsContainer.name = 'executive-models'
220
+ group.add(modelsContainer)
221
+
222
+ const placeholderGroup = new THREE.Group()
223
+ const mainTop = new THREE.Mesh(new THREE.BoxGeometry(2.2, 0.08, 0.9), woodMat)
222
224
  mainTop.position.set(0, 0.74, 0)
223
225
  mainTop.castShadow = true
224
226
  if (options.entityId) mainTop.userData = { entityId: options.entityId }
225
- group.add(mainTop)
226
-
227
- // Solid Pedestal Bases
228
- const baseLGeo = new THREE.BoxGeometry(0.3, 0.7, 0.8)
229
- const baseL = new THREE.Mesh(baseLGeo, woodMat)
230
- baseL.position.set(-0.85, 0.35, 0)
231
- baseL.castShadow = true
232
- if (options.entityId) baseL.userData = { entityId: options.entityId }
233
- group.add(baseL)
234
-
235
- const baseR = baseL.clone()
236
- baseR.position.set(0.85, 0.35, 0)
237
- group.add(baseR)
238
-
239
- // High-back Executive Leather Chair
240
- const chair = new THREE.Group()
241
- chair.position.set(0, 0, 0.65)
242
- if (options.entityId) chair.userData = { entityId: options.entityId }
243
-
244
- const seatGeo = new THREE.BoxGeometry(0.58, 0.1, 0.54)
245
- const seat = new THREE.Mesh(seatGeo, chairMat)
246
- seat.position.set(0, 0.48, 0)
247
- if (options.entityId) seat.userData = { entityId: options.entityId }
248
- chair.add(seat)
249
-
250
- const backGeo = new THREE.BoxGeometry(0.56, 0.8, 0.08)
251
- const back = new THREE.Mesh(backGeo, chairMat)
252
- back.position.set(0, 0.88, 0.22)
253
- back.rotation.x = -0.1
254
- if (options.entityId) back.userData = { entityId: options.entityId }
255
- chair.add(back)
256
-
257
- group.add(chair)
227
+ placeholderGroup.add(mainTop)
228
+ group.add(placeholderGroup)
229
+
230
+ const loader = ModelLoader.getInstance()
231
+ void Promise.allSettled([
232
+ loader.load('furniture:deskCorner'),
233
+ loader.load('furniture:chairDesk'),
234
+ ]).then(([deskRes, chairRes]) => {
235
+ if (deskRes.status === 'fulfilled') {
236
+ placeholderGroup.visible = false
237
+ const deskCorner = deskRes.value
238
+ deskCorner.scale.set(2.4, 2.0, 2.4)
239
+ deskCorner.position.set(-1.0, 0, 0.7)
240
+ deskCorner.traverse((node) => {
241
+ if (options.entityId) node.userData = { entityId: options.entityId }
242
+ })
243
+ modelsContainer.add(deskCorner)
244
+
245
+ if (chairRes.status === 'fulfilled') {
246
+ const execChair = chairRes.value
247
+ execChair.scale.set(2.5, 2.5, 2.5)
248
+ execChair.position.set(-0.35, 0, 0.8)
249
+ execChair.rotation.y = Math.PI
250
+ execChair.traverse((node) => {
251
+ if (options.entityId) node.userData = { entityId: options.entityId }
252
+ })
253
+ modelsContainer.add(execChair)
254
+ }
255
+ }
256
+ })
258
257
 
259
258
  // Executive Curved Ultrawide Display
260
259
  const screenGeo = new THREE.BoxGeometry(1.1, 0.45, 0.04)
@@ -287,30 +286,15 @@ export function createConferenceTable(materials: MaterialPalette): THREE.Group {
287
286
  shadow.position.set(0, 0.003, 0)
288
287
  group.add(shadow)
289
288
 
290
- // Large Conference Table (4.5m x 1.6m)
291
- const tableGeo = new THREE.BoxGeometry(4.5, 0.08, 1.6)
292
- const table = new THREE.Mesh(tableGeo, woodMat)
293
- table.position.set(0, 0.74, 0)
294
- table.castShadow = true
295
- table.receiveShadow = true
296
- group.add(table)
297
-
298
- // Center cable tray
299
- const trayGeo = new THREE.BoxGeometry(2.0, 0.01, 0.2)
300
- const trayMat = materials.getFrameMaterial('#0f172a')
301
- const tray = new THREE.Mesh(trayGeo, trayMat)
302
- tray.position.set(0, 0.785, 0)
303
- group.add(tray)
289
+ // Real 3D Conference Table
290
+ const modelsContainer = new THREE.Group()
291
+ group.add(modelsContainer)
304
292
 
305
- // Heavy pillars
306
- const pillarGeo = new THREE.CylinderGeometry(0.2, 0.2, 0.7, 16)
307
- const p1 = new THREE.Mesh(pillarGeo, legMat)
308
- p1.position.set(-1.4, 0.35, 0)
309
- group.add(p1)
310
-
311
- const p2 = new THREE.Mesh(pillarGeo, legMat)
312
- p2.position.set(1.4, 0.35, 0)
313
- group.add(p2)
293
+ const placeholder = new THREE.Mesh(new THREE.BoxGeometry(4.5, 0.08, 1.6), woodMat)
294
+ placeholder.position.set(0, 0.74, 0)
295
+ placeholder.castShadow = true
296
+ placeholder.receiveShadow = true
297
+ group.add(placeholder)
314
298
 
315
299
  // Surround chairs
316
300
  const addChair = (x: number, z: number, rotY: number) => {
@@ -344,5 +328,15 @@ export function createConferenceTable(materials: MaterialPalette): THREE.Group {
344
328
  addChair(-2.55, 0, Math.PI / 2)
345
329
  addChair(2.55, 0, -Math.PI / 2)
346
330
 
331
+ // Heavy pillars
332
+ const pillarGeo = new THREE.CylinderGeometry(0.2, 0.2, 0.7, 16)
333
+ const p1 = new THREE.Mesh(pillarGeo, legMat)
334
+ p1.position.set(-1.4, 0.35, 0)
335
+ group.add(p1)
336
+
337
+ const p2 = new THREE.Mesh(pillarGeo, legMat)
338
+ p2.position.set(1.4, 0.35, 0)
339
+ group.add(p2)
340
+
347
341
  return group
348
342
  }