diff --git a/V2.5.1 AAA ENSAMBLE CABINET MAIN 3D visualizer.glb b/V2.5.1 AAA ENSAMBLE CABINET MAIN 3D visualizer.glb new file mode 100644 index 0000000..a484223 Binary files /dev/null and b/V2.5.1 AAA ENSAMBLE CABINET MAIN 3D visualizer.glb differ diff --git a/annotations-content.json b/annotations-content.json new file mode 100644 index 0000000..93d0de4 --- /dev/null +++ b/annotations-content.json @@ -0,0 +1,34 @@ +{ + "annotations": { + "lock": { + "title": "Abrir con llave.", + "body": "Ante cortes de energía, la maquina permanece cerrada" + }, + "biometric": { + "title": "Apertura biométrica", + "subtitle": "Funcionalidades acorde a rol del usuario", + "details": { + "clinicalUsers": "Uso diario, consumen insumos", + "operator": "Repone inventario." + } + }, + "facialRecognition": { + "title": "Reconocimiento facial (Opcional)", + "body": "Apertura de puerta con reconocimiento facial" + }, + "camera": { + "title": "Cámara (Opcional)", + "body": "Grabación de sesión cuando se abre la puerta." + } + }, + "infoPanels": { + "faceRecognition": { + "title": "Face Recognition Security", + "body": "Our AI-powered volumetric face recognition identifies users in under 0.5 seconds, ensuring hands-free, high-security access." + }, + "default": { + "title": "Interactive Display & Navigation", + "body": "Navigate through stored inventory, track usage logs, and manage permissions directly from this integrated touchscreen." + } + } +} diff --git a/index.html b/index.html index 341fef4..581995a 100644 --- a/index.html +++ b/index.html @@ -787,7 +787,7 @@ const lastEntry = meshList[meshList.length - 1]; // 0. GUI STANDBY (Specific Screen Mesh) - if (normMesh.includes('SOLID1_61')) { + if (normMesh.includes('SOLID1_61') || normMesh.includes('PANTALLANUEVA')) { child.material = new THREE.MeshBasicMaterial({ map: standbyTexture, transparent: true, @@ -979,8 +979,11 @@ hingeAssemblies.push(child); } } - // Door assembly (top level) - if (child.name === 'V251_PPP_PUERTA1') { + // Door assembly (top level) — match both old and new model names + const normChildDoor = child.name.toUpperCase().replace(/[^A-Z0-9]/g, ''); + const parentNameUpper = (child.parent && child.parent.name) ? child.parent.name.toUpperCase() : ''; + if (child.name === 'V251_PPP_PUERTA1' || + (normChildDoor.includes('PUERTA') && !parentNameUpper.includes('PUERTA'))) { doorNodes.push(child); } // Check for explicit rotation axis part @@ -1047,16 +1050,7 @@ hingeNodes.push(mesh); movingCount++; } else { - // Left side -> Fixed - // Make it appear lighter by adding subtle emissive - const newMat = new THREE.MeshStandardMaterial({ - color: 0x555555, // Base grey - emissive: 0x333333, // Subtle glow to look "lighter" - metalness: 0.6, - roughness: 0.4, - flatShading: false - }); - mesh.material = newMat; + // Left side -> Fixed (keep original GLB color for uniform appearance) fixedCount++; } }); @@ -1158,7 +1152,7 @@ // Load the model loader.load( - 'Cabinet v2.5 con eje.glb', + 'V2.5.1 AAA ENSAMBLE CABINET MAIN 3D visualizer.glb', (gltf) => { model = gltf.scene; @@ -1205,7 +1199,8 @@ const norm = object.name.toUpperCase(); if (norm.includes('CILINDRO') || norm.includes('CERRADURA') || norm.includes('SOLID1_102')) return true; if (norm.includes('SOLID1_114') || norm.includes('SOLID1_37') || norm.includes('SOLID1_41') || - norm.includes('SOLID1_40') || norm.includes('SOLID1_39')) return true; + norm.includes('SOLID1_40') || norm.includes('SOLID1_39') || + norm.includes('HUELLERO') || norm.includes('LECTOR') || norm.includes('BIOMETRICO')) return true; if (norm.includes('SOLID1_103')) return true; if (norm.includes('MESHFEATURE1') || norm.includes('SOLID1_105')) return true; let isDoor = false; @@ -1300,7 +1295,7 @@ if (normName.includes('CILINDRO') || normName.includes('CERRADURA') || normName.includes('SOLID1_102')) { zoomToLock(object); showAnnotation(object, "Abrir con llave.
Ante cortes de energía, la maquina permanece cerrada"); - } else if (normName.includes('SOLID1_114') || normName.includes('SOLID1_37') || normName.includes('SOLID1_41') || normName.includes('SOLID1_40') || normName.includes('SOLID1_39')) { + } else if (normName.includes('SOLID1_114') || normName.includes('SOLID1_37') || normName.includes('SOLID1_41') || normName.includes('SOLID1_40') || normName.includes('SOLID1_39') || normName.includes('HUELLERO') || normName.includes('LECTOR') || normName.includes('BIOMETRICO')) { zoomToBiometric(object); showAnnotation(object, ` Apertura biométrica