Files
3do-tads.configurator/src/assets/scene.json
Carmine Savino 234cd7d415 Add project configuration and scene controller
- Created a new project configuration file `project.json` with metadata, camera settings, scene details, and lighting configurations.
- Implemented a new scene controller in `scena-controller copy.js` to manage 3D scene rendering, model loading, and user interactions.
- Integrated various loaders for STL and GLB models, along with functionality for dynamic material updates and model visibility toggling.
- Enhanced camera controls using TrackballControls for improved user navigation within the 3D environment.
2026-01-21 16:10:18 +01:00

272 lines
7.9 KiB
JSON

{
"metadata": {
"version": 4.6,
"type": "Object",
"generator": "Object3D.toJSON"
},
"object": {
"uuid": "2ef7dca1-f570-417b-b55a-46c017f98630",
"type": "Scene",
"name": "Scene",
"layers": 1,
"matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
"up": [0,1,0],
"children": [
{
"uuid": "f106381a-534c-497e-acbd-a3b2ad121b9a",
"type": "DirectionalLight",
"name": "DirectionalLight",
"layers": 1,
"matrix": [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
3.0997198829600077,
-97.44223652603492,
1
],
"up": [
0,
1,
0
],
"color": 16777215,
"intensity": 0.8,
"shadow": {
"camera": {
"uuid": "38eaf299-1e78-4fc7-adce-080811a9fe47",
"type": "OrthographicCamera",
"layers": 1,
"up": [
0,
1,
0
],
"zoom": 1,
"left": -5,
"right": 5,
"top": 5,
"bottom": -5,
"near": 0.5,
"far": 500
}
},
"target": "0e530621-c1bb-48c8-87e3-224a85a2e9c1"
},
{
"uuid": "0b4faf09-07b3-4ab2-80a7-955bf83b8815",
"type": "DirectionalLight",
"name": "DirectionalLight",
"layers": 1,
"matrix": [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
50,
0,
0,
1
],
"up": [
0,
1,
0
],
"color": 16777215,
"intensity": 1,
"shadow": {
"camera": {
"uuid": "3487b036-5d5a-4331-b589-3b9c0472d0af",
"type": "OrthographicCamera",
"layers": 1,
"up": [
0,
1,
0
],
"zoom": 1,
"left": -5,
"right": 5,
"top": 5,
"bottom": -5,
"near": 0.5,
"far": 500
}
},
"target": "77316e30-bf2c-49ae-bbbd-1a40c413140c"
},
{
"uuid": "4ef0f77a-df7b-42f8-809d-35028cfc71bc",
"type": "DirectionalLight",
"name": "DirectionalLight",
"layers": 1,
"matrix": [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
-50,
0,
0,
1
],
"up": [
0,
1,
0
],
"color": 16777215,
"intensity": 1,
"shadow": {
"camera": {
"uuid": "0d0ac848-ef38-4ddc-9d4b-bd1a3fa259e6",
"type": "OrthographicCamera",
"layers": 1,
"up": [
0,
1,
0
],
"zoom": 1,
"left": -5,
"right": 5,
"top": 5,
"bottom": -5,
"near": 0.5,
"far": 500
}
},
"target": "9a8f9881-3997-4b11-9a5d-ab5dbaf0de11"
},
{
"uuid": "54bbb245-78cb-4ab9-bd57-0f02711f8a03",
"type": "DirectionalLight",
"name": "DirectionalLight",
"layers": 1,
"matrix": [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
-38.28056498637591,
4.399184106340684,
1
],
"up": [
0,
1,
0
],
"color": 16777215,
"intensity": 0.6,
"shadow": {
"camera": {
"uuid": "ba78f102-e863-4df9-a295-f56af374dbe9",
"type": "OrthographicCamera",
"layers": 1,
"up": [
0,
1,
0
],
"zoom": 1,
"left": -5,
"right": 5,
"top": 5,
"bottom": -5,
"near": 0.5,
"far": 500
}
},
"target": "ac43e49a-3301-4a12-9d90-0ce724dff367"
},
{
"uuid": "5f633583-57db-4472-be10-2dce0a75d139",
"type": "DirectionalLight",
"name": "DirectionalLight",
"layers": 1,
"matrix": [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
15.833769711930671,
37.90623637377939,
1
],
"up": [
0,
1,
0
],
"color": 16777215,
"intensity": 0.5,
"shadow": {
"camera": {
"uuid": "9e8a1c42-2f57-4648-9db1-40e59ac6b6e0",
"type": "OrthographicCamera",
"layers": 1,
"up": [
0,
1,
0
],
"zoom": 1,
"left": -5,
"right": 5,
"top": 5,
"bottom": -5,
"near": 0.5,
"far": 500
}
},
"target": "44ee6450-dc88-46e5-90e7-781de0a69288"
}
]
}
}