Theater at top level in menu

This commit is contained in:
2026-04-08 10:59:58 +02:00
parent c6e0314769
commit 556086117b
4 changed files with 117 additions and 120 deletions

View File

@@ -44,9 +44,10 @@ export const config = {
uri : `${BASE_URI}/scenes/ssgp/`, uri : `${BASE_URI}/scenes/ssgp/`,
popup: theater2Popup, popup: theater2Popup,
coords: [45.4401, 12.3408], coords: [45.4401, 12.3408],
nodes: [ nodes: {
{
label: 'Teatro', label: 'Teatro',
model: 'models/ssgp/Teatro_SSGP_Full_ConSottrazioni.glb',
opacity: 0.0,
children: [ children: [
/* /*
{ {
@@ -60,8 +61,6 @@ export const config = {
isMain: true, isMain: true,
opacity: 0.2, opacity: 0.2,
}, },
]
},
{ {
label: 'Sala / Auditorium', label: 'Sala / Auditorium',
children: [ children: [
@@ -157,7 +156,8 @@ export const config = {
}, },
] ]
} }
], ]
},
pano: `pano/gradient.jpg`, pano: `pano/gradient.jpg`,
} }
], ],

View File

@@ -77,7 +77,7 @@ function loadNodes(nodes) {
node.setRotation(0, 1.5, 0); node.setRotation(0, 1.5, 0);
// Apply any transparency before attaching to scene // Apply any transparency before attaching to scene
if (n.opacity) { if (n.opacity !== undefined && n.opacity !== null) {
node.setMaterial(new THREE.MeshPhongMaterial({ node.setMaterial(new THREE.MeshPhongMaterial({
transparent: true, transparent: true,
opacity: n.opacity, opacity: n.opacity,

View File

@@ -25,7 +25,7 @@ const contentMenuTabs = `
<!-- Tab panes --> <!-- Tab panes -->
<div class="tab-content ps-4 ms-3 overflow-y-auto"> <div class="tab-content ps-4 ms-3 overflow-y-auto">
<div class="tab-pane active p-3 ms-3" id="layer" role="tabpanel" aria-labelledby="layer-tab" tabindex="0"></div> <div class="tab-pane active p-3 ms-2" id="layer" role="tabpanel" aria-labelledby="layer-tab" tabindex="0"></div>
<div class="tab-pane p-3" id="media" role="tabpanel" aria-labelledby="media-tab" tabindex="0"></div> <div class="tab-pane p-3" id="media" role="tabpanel" aria-labelledby="media-tab" tabindex="0"></div>
</div> </div>
`; `;

View File

@@ -62,10 +62,7 @@ function traverse(node, flatList, depth = 1) {
**/ **/
export function normalizeNodes (nodes) { export function normalizeNodes (nodes) {
let flatList = []; let flatList = [];
traverse(nodes, flatList);
for (let node of nodes) {
traverse(node, flatList);
}
return flatList; return flatList;
} }