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
+11
-16
@@ -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, "<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);
|
||||
showAnnotation(object, `
|
||||
<strong>Apertura biométrica</strong><br>
|
||||
|
||||
Reference in new issue
Block a user