Archived
feat: swap to model v2.5.1, fix door animation and hinge colors
- Load V2.5.1 AAA ENSAMBLE CABINET MAIN 3D visualizer.glb - Fix door not animating: update setupHingePivot to match new door node name (V2.5.1 PPP PUERTA copy:1) via pattern instead of exact match - Fix hinge color inconsistency: remove runtime material override on fixed hinge halves so all 8 hinge meshes keep their uniform original GLB color - Add HUELLERO/LECTOR/BIOMETRICO patterns for new fingerprint reader mesh - Update GUI screen material match to also target PANTALLANUEVA node - Add annotations-content.json backup of all annotation and panel text Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
fd5c15a9d7
commit
a52ce66b0a
3 files changed
+45
-16
No files matched your search
Binary file not shown.
@@ -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."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+11
-16
@@ -787,7 +787,7 @@
|
|||||||
const lastEntry = meshList[meshList.length - 1];
|
const lastEntry = meshList[meshList.length - 1];
|
||||||
|
|
||||||
// 0. GUI STANDBY (Specific Screen Mesh)
|
// 0. GUI STANDBY (Specific Screen Mesh)
|
||||||
if (normMesh.includes('SOLID1_61')) {
|
if (normMesh.includes('SOLID1_61') || normMesh.includes('PANTALLANUEVA')) {
|
||||||
child.material = new THREE.MeshBasicMaterial({
|
child.material = new THREE.MeshBasicMaterial({
|
||||||
map: standbyTexture,
|
map: standbyTexture,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
@@ -979,8 +979,11 @@
|
|||||||
hingeAssemblies.push(child);
|
hingeAssemblies.push(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Door assembly (top level)
|
// Door assembly (top level) — match both old and new model names
|
||||||
if (child.name === 'V251_PPP_PUERTA1') {
|
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);
|
doorNodes.push(child);
|
||||||
}
|
}
|
||||||
// Check for explicit rotation axis part
|
// Check for explicit rotation axis part
|
||||||
@@ -1047,16 +1050,7 @@
|
|||||||
hingeNodes.push(mesh);
|
hingeNodes.push(mesh);
|
||||||
movingCount++;
|
movingCount++;
|
||||||
} else {
|
} else {
|
||||||
// Left side -> Fixed
|
// Left side -> Fixed (keep original GLB color for uniform appearance)
|
||||||
// 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;
|
|
||||||
fixedCount++;
|
fixedCount++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1158,7 +1152,7 @@
|
|||||||
|
|
||||||
// Load the model
|
// Load the model
|
||||||
loader.load(
|
loader.load(
|
||||||
'Cabinet v2.5 con eje.glb',
|
'V2.5.1 AAA ENSAMBLE CABINET MAIN 3D visualizer.glb',
|
||||||
(gltf) => {
|
(gltf) => {
|
||||||
model = gltf.scene;
|
model = gltf.scene;
|
||||||
|
|
||||||
@@ -1205,7 +1199,8 @@
|
|||||||
const norm = object.name.toUpperCase();
|
const norm = object.name.toUpperCase();
|
||||||
if (norm.includes('CILINDRO') || norm.includes('CERRADURA') || norm.includes('SOLID1_102')) return true;
|
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') ||
|
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('SOLID1_103')) return true;
|
||||||
if (norm.includes('MESHFEATURE1') || norm.includes('SOLID1_105')) return true;
|
if (norm.includes('MESHFEATURE1') || norm.includes('SOLID1_105')) return true;
|
||||||
let isDoor = false;
|
let isDoor = false;
|
||||||
@@ -1300,7 +1295,7 @@
|
|||||||
if (normName.includes('CILINDRO') || normName.includes('CERRADURA') || normName.includes('SOLID1_102')) {
|
if (normName.includes('CILINDRO') || normName.includes('CERRADURA') || normName.includes('SOLID1_102')) {
|
||||||
zoomToLock(object);
|
zoomToLock(object);
|
||||||
showAnnotation(object, "<strong>Abrir con llave.</strong><br>Ante cortes de energía, la maquina permanece cerrada");
|
showAnnotation(object, "<strong>Abrir con llave.</strong><br>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);
|
zoomToBiometric(object);
|
||||||
showAnnotation(object, `
|
showAnnotation(object, `
|
||||||
<strong>Apertura biométrica</strong><br>
|
<strong>Apertura biométrica</strong><br>
|
||||||
|
|||||||
Reference in new issue
Block a user