diff --git a/AGENTS.md b/AGENTS.md index d10b8972..50a3d82f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -311,7 +311,7 @@ and the `three_live_gym_reset` / `three_live_gym_step` / `three_live_gym_close` closed-loop agent gym): ```bash -# 1. Static + Spatial Linting (Structured JSON Diagnostics TL100-TL402 + Frustum/Grounding/Lighting) +# 1. Static + Spatial + Accessibility Linting (Structured JSON Diagnostics TL100-TL606 + Frustum/Grounding/Lighting/A11y) three-live-cli validate scene.js --json # 2. Visual Verification (2x2 Orthographic + Camera Contact Sheet with 1m Grid & AABB Annotations) diff --git a/compiler/src/main.rs b/compiler/src/main.rs index 0dff3809..affaa233 100644 --- a/compiler/src/main.rs +++ b/compiler/src/main.rs @@ -96,7 +96,7 @@ enum Commands { format: Option, }, - /// Validate Three.js script or HTML file and report compiler/schema/spatial diagnostics + /// Validate Three.js script or HTML file and report compiler/schema/spatial/a11y diagnostics Validate { /// Input JavaScript (.js) or HTML (.html) file path input: PathBuf, diff --git a/compiler/src/mcp.rs b/compiler/src/mcp.rs index 34eb9ef0..c2118b5b 100644 --- a/compiler/src/mcp.rs +++ b/compiler/src/mcp.rs @@ -578,7 +578,7 @@ fn mcp_tool_definitions_base() -> Value { json!([ { "name": "three_live_validate", - "description": "Validate a Three.js script (.js), HTML document (/), or .glb binary and run the 3D spatial, camera frustum, grounding, AABB collision, and lighting linter (TL100-TL402).", + "description": "Validate a Three.js script (.js), HTML document (/), or .glb binary and run the 3D spatial, camera frustum, grounding, AABB collision, lighting, and 3D/XR accessibility linter (TL100-TL606).", "inputSchema": { "type": "object", "properties": { diff --git a/compiler/src/spatial_lint.rs b/compiler/src/spatial_lint.rs index 42d466c8..26983c9f 100644 --- a/compiler/src/spatial_lint.rs +++ b/compiler/src/spatial_lint.rs @@ -12,7 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Automated 3D Spatial, Frustum, Grounding, and Lighting Linter (`TL301–TL307`). +//! Automated 3D Spatial, Frustum, Grounding, Lighting, and Accessibility Linter (`TL301–TL307`, +//! `TL601–TL606`). use crate::scene::{CameraConfig, Diagnostic, SceneGraph}; use serde::{Deserialize, Serialize}; @@ -584,6 +585,124 @@ fn is_environment_or_container_name(name: &str) -> bool { ENV_KEYWORDS.iter().any(|kw| lower.contains(kw)) } +fn is_background_or_floor_name(name: &str) -> bool { + if is_environment_or_container_name(name) { + return true; + } + let lower = name.to_ascii_lowercase(); + const FLOOR_KEYWORDS: &[&str] = &["floor", "ground", "pedestal", "workbench", "grid"]; + FLOOR_KEYWORDS.iter().any(|kw| lower.contains(kw)) +} + +fn is_3d_text_node(node_name: &str, xr_traits_val: Option<&serde_json::Value>) -> bool { + if xr_traits_val.and_then(|v| v.as_object()).is_some_and(|obj| obj.contains_key("text")) { + return true; + } + let lower = node_name.to_ascii_lowercase(); + lower.contains("text") || lower.contains("label") +} + +fn is_interactive_node( + xr_keys: &[String], + inter_events: &[String], + has_interactivity_obj: bool, +) -> bool { + if !inter_events.is_empty() || has_interactivity_obj { + return true; + } + xr_keys.iter().any(|k| matches!(k.as_str(), "grab" | "handles" | "gaze" | "holdToAsk")) +} + +fn has_accessible_name(raw_name: &str, xr_traits_val: Option<&serde_json::Value>) -> bool { + if let Some(obj) = xr_traits_val.and_then(|v| v.as_object()) { + for key in ["label", "name", "ariaLabel"] { + if obj.get(key).and_then(|v| v.as_str()).is_some_and(|s| !s.trim().is_empty()) { + return true; + } + } + if obj + .get("holdToAsk") + .and_then(|h| h.as_object()) + .and_then(|h| h.get("prompt")) + .and_then(|p| p.as_str()) + .is_some_and(|s| !s.trim().is_empty()) + { + return true; + } + } + let trimmed = raw_name.trim(); + if trimmed.is_empty() { + return false; + } + let lower = trimmed.to_ascii_lowercase(); + if matches!( + lower.as_str(), + "mesh" | "node" | "object" | "object3d" | "group" | "primitive" | "unnamed" + ) { + return false; + } + if lower + .strip_prefix("mesh_") + .or_else(|| lower.strip_prefix("node_")) + .or_else(|| lower.strip_prefix("object_")) + .is_some_and(|rest| !rest.is_empty() && rest.chars().all(|c| c.is_ascii_digit())) + { + return false; + } + true +} + +fn linear_to_srgb_channel(c: f32) -> f32 { + let x = c.clamp(0.0, 1.0); + if x <= 0.0031308 { + x * 12.92 + } else { + 1.055 * x.powf(1.0 / 2.4) - 0.055 + } +} + +/// Computes the estimated shaded surface luminance and WCAG 2.1 contrast ratio against the +/// default dark studio viewport background (`#0d1629` -> `#04070e`, `L_bg = 0.010`). +/// Returns `None` when the material color is driven by a procedural `TSL` shader graph. +fn compute_mesh_luminance_and_contrast(scene: &SceneGraph, mesh_idx: usize) -> Option<(f32, f32)> { + let mesh = scene.meshes.get(mesh_idx)?; + let mat = + mesh.material_index.and_then(|idx| scene.materials.get(idx)).cloned().unwrap_or_default(); + if mat.tsl.is_some() { + return None; + } + let mat_lum = 0.2126 * mat.base_color[0].clamp(0.0, 1.0) + + 0.7152 * mat.base_color[1].clamp(0.0, 1.0) + + 0.0722 * mat.base_color[2].clamp(0.0, 1.0); + let base_lum = if !mesh.colors.is_empty() { + let v_sum: f32 = mesh + .colors + .iter() + .map(|c| { + 0.2126 * c[0].clamp(0.0, 1.0) + + 0.7152 * c[1].clamp(0.0, 1.0) + + 0.0722 * c[2].clamp(0.0, 1.0) + }) + .sum(); + (v_sum / (mesh.colors.len() as f32)) * mat_lum + } else { + mat_lum + }; + let emissive_lum = (0.2126 * mat.emissive_factor[0].max(0.0) + + 0.7152 * mat.emissive_factor[1].max(0.0) + + 0.0722 * mat.emissive_factor[2].max(0.0)) + .min(1.0); + + let light_scale = if scene.lights.is_empty() { 0.70 } else { 1.05 }; + let metal_atten = 1.0 - 0.55 * mat.metallic.clamp(0.0, 1.0); + let spec_floor = 0.010 * (1.0 - 0.50 * mat.roughness.clamp(0.0, 1.0)); + let lit_lum = base_lum * light_scale * metal_atten + spec_floor; + let fg_lum = ((lit_lum / (1.0 + 0.25 * lit_lum)) + emissive_lum).clamp(0.0, 1.0); + let bg_lum = 0.010f32; + let contrast_ratio = (fg_lum.max(bg_lum) + 0.05) / (fg_lum.min(bg_lum) + 0.05); + Some((fg_lum, contrast_ratio)) +} + /// Pure function that selects the active 0-based LOD child index for a given distance, /// or `-1` when culled beyond `cull_distance`. /// @@ -952,6 +1071,152 @@ pub fn build_validation_report( )), }); } + + // 3D/XR Accessibility Checks (TL601–TL605) + let has_inter_obj = + scene.nodes.get(i).and_then(|n| n.interactivity.as_ref()).is_some(); + let is_interactive = is_interactive_node(&xr_keys, &inter_events, has_inter_obj); + + if in_frustum { + if let Some(m_idx) = mesh_idx { + let is_text = is_3d_text_node(&node_name, xr_traits_val); + if let Some((_fg_lum, contrast_ratio)) = + compute_mesh_luminance_and_contrast(scene, m_idx) + { + if is_text && contrast_ratio < 4.5 { + diagnostics.push(Diagnostic { + code: "TL602".to_string(), + severity: "warning".to_string(), + message: format!( + "3D text node '{}' has luminance contrast {:.2}:1 (< 4.5:1 WCAG AA text minimum) against the viewport background.", + node_name, contrast_ratio + ), + node: Some(node_name.clone()), + line: None, + column: None, + hint: Some(format!( + "Use a high-luminance text color (e.g. 0xe2e8f0 or 0xffffff) or add a contrasting backing plate behind '{}'.", + node_name + )), + }); + } else if !is_text + && is_opaque + && !has_zone_trait + && (scene.meshes.len() == 1 + || !is_background_or_floor_name(&node_name)) + && contrast_ratio < 3.0 + { + diagnostics.push(Diagnostic { + code: "TL601".to_string(), + severity: "warning".to_string(), + message: format!( + "Mesh '{}' has low luminance contrast ({:.2}:1 < 3.0:1 WCAG AA non-text minimum) against the dark viewport background.", + node_name, contrast_ratio + ), + node: Some(node_name.clone()), + line: None, + column: None, + hint: Some( + "Use a brighter material color (e.g. >= 0x94a3b8 or 0x38bdf8), reduce metalness (<= 0.55), or add emissive/rim lighting so the mesh is clearly distinguishable." + .to_string(), + ), + }); + } + } + } + + // TL603: Interactive Target Size (< 0.4% viewport coverage / < 2.5 deg visual + // angle) + if is_interactive && coverage_pct < 0.4 { + diagnostics.push(Diagnostic { + code: "TL603".to_string(), + severity: "warning".to_string(), + message: format!( + "Interactive node '{}' covers only {:.1}% of the viewport (< 0.4% minimum XR/pointer target size).", + node_name, coverage_pct + ), + node: Some(node_name.clone()), + line: None, + column: None, + hint: Some(format!( + "Increase the scale of '{}', add a larger collider/hit proxy, or move it closer to the camera so users can reliably select or grab it.", + node_name + )), + }); + } + } + + // TL604: Missing Accessible Name / Semantic Label on Interactive Node + if is_interactive && !has_accessible_name(&node_name, xr_traits_val) { + diagnostics.push(Diagnostic { + code: "TL604".to_string(), + severity: "info".to_string(), + message: format!( + "Interactive node '{}' has no descriptive accessible name or label for screen readers and voice selection.", + node_name + ), + node: Some(node_name.clone()), + line: None, + column: None, + hint: Some( + "Assign a descriptive mesh.name (e.g. mesh.name = 'MainControlValve') or userData.xr.label so assistive technologies and Talk-to-Select can address it." + .to_string(), + ), + }); + } + + // TL605: Vestibular & Motion Safety (WCAG 2.1 SC 2.3.3) + if let Some(xr_obj) = xr_traits_val.and_then(|v| v.as_object()) { + if let Some(orbit_speed) = xr_obj + .get("orbit") + .and_then(|o| o.as_object()) + .and_then(|o| o.get("speed")) + .and_then(|s| s.as_f64()) + { + if orbit_speed.is_finite() && orbit_speed.abs() > 2.5 { + diagnostics.push(Diagnostic { + code: "TL605".to_string(), + severity: "info".to_string(), + message: format!( + "Node '{}' has high continuous orbit speed ({:.2} rad/s > 2.5 rad/s vestibular comfort threshold).", + node_name, + orbit_speed.abs() + ), + node: Some(node_name.clone()), + line: None, + column: None, + hint: Some( + "Reduce userData.xr.orbit.speed to <= 1.5 rad/s to prevent vestibular discomfort in XR." + .to_string(), + ), + }); + } + } + if let Some(stiffness) = xr_obj + .get("follow") + .and_then(|f| f.as_object()) + .and_then(|f| f.get("stiffness")) + .and_then(|s| s.as_f64()) + { + if stiffness.is_finite() && stiffness > 25.0 { + diagnostics.push(Diagnostic { + code: "TL605".to_string(), + severity: "info".to_string(), + message: format!( + "Node '{}' has high head-follow stiffness ({:.1} > 25.0 vestibular comfort threshold).", + node_name, stiffness + ), + node: Some(node_name.clone()), + line: None, + column: None, + hint: Some( + "Reduce userData.xr.follow.stiffness (e.g. 4..12) and enable lazy follow so head-locked UI moves smoothly." + .to_string(), + ), + }); + } + } + } } node_reports.push(NodeSpatialReport { @@ -1112,6 +1377,84 @@ pub fn build_validation_report( let ix = (aabb_a.max[0].min(aabb_b.max[0]) - aabb_a.min[0].max(aabb_b.min[0])).max(0.0); let iy = (aabb_a.max[1].min(aabb_b.max[1]) - aabb_a.min[1].max(aabb_b.min[1])).max(0.0); let iz = (aabb_a.max[2].min(aabb_b.max[2]) - aabb_a.min[2].max(aabb_b.min[2])).max(0.0); + let sb = aabb_b.size(); + + // TL606: Color-Vision Deficiency (Deuteranopia/Protanopia) Sibling Indistinguishability + let inter_a = is_interactive_node( + &node_reports[i].xr_traits, + &node_reports[i].interactivity_events, + scene.nodes.get(i).and_then(|n| n.interactivity.as_ref()).is_some(), + ); + let inter_b = is_interactive_node( + &node_reports[j].xr_traits, + &node_reports[j].interactivity_events, + scene.nodes.get(j).and_then(|n| n.interactivity.as_ref()).is_some(), + ); + if inter_a && inter_b && mat_a != mat_b { + let same_dims = (0..3).all(|k| { + let mx = sa[k].max(sb[k]); + mx > 1e-4 && (sa[k].min(sb[k]) / mx) >= 0.85 + }); + if same_dims { + let ma = + mat_a.and_then(|idx| scene.materials.get(idx)).cloned().unwrap_or_default(); + let mb = + mat_b.and_then(|idx| scene.materials.get(idx)).cloned().unwrap_or_default(); + if ma.base_color_texture.is_none() + && mb.base_color_texture.is_none() + && ma.tsl.is_none() + && mb.tsl.is_none() + { + let srgb_a = [ + linear_to_srgb_channel(ma.base_color[0]), + linear_to_srgb_channel(ma.base_color[1]), + linear_to_srgb_channel(ma.base_color[2]), + ]; + let srgb_b = [ + linear_to_srgb_channel(mb.base_color[0]), + linear_to_srgb_channel(mb.base_color[1]), + linear_to_srgb_channel(mb.base_color[2]), + ]; + let rgb_dist = ((srgb_a[0] - srgb_b[0]).powi(2) + + (srgb_a[1] - srgb_b[1]).powi(2) + + (srgb_a[2] - srgb_b[2]).powi(2)) + .sqrt(); + // Red-green opponent channel vs blue-yellow channel & WCAG 1.4.1 (< 3:1) + // luminance check + let rg_a = srgb_a[0] - srgb_a[1]; + let rg_b = srgb_b[0] - srgb_b[1]; + let opposite_rg = rg_a * rg_b < 0.0 && (rg_a - rg_b).abs() >= 0.45; + let low_blue_diff = srgb_a[2] < 0.40 + && srgb_b[2] < 0.40 + && (srgb_a[2] - srgb_b[2]).abs() < 0.22; + let lum_a = 0.2126 * ma.base_color[0] + + 0.7152 * ma.base_color[1] + + 0.0722 * ma.base_color[2]; + let lum_b = 0.2126 * mb.base_color[0] + + 0.7152 * mb.base_color[1] + + 0.0722 * mb.base_color[2]; + let lum_cr = (lum_a.max(lum_b) + 0.05) / (lum_a.min(lum_b) + 0.05); + if rgb_dist >= 0.35 && opposite_rg && low_blue_diff && lum_cr < 2.0 { + diagnostics.push(Diagnostic { + code: "TL606".to_string(), + severity: "info".to_string(), + message: format!( + "Interactive sibling meshes '{}' and '{}' have identical dimensions and rely on red-green hue alone (indistinguishable under deuteranopia/protanopia).", + node_reports[i].name, node_reports[j].name + ), + node: Some(node_reports[i].name.clone()), + line: None, + column: None, + hint: Some( + "Differentiate interactive controls by shape, scale, 3D text/icon label, or luminance contrast (>= 3:1) in addition to color." + .to_string(), + ), + }); + } + } + } + } + if ix <= 0.0 || iy <= 0.0 || iz <= 0.0 { continue; } @@ -1120,7 +1463,6 @@ pub fn build_validation_report( let vol_b = aabb_b.volume(); let min_vol = vol_a.min(vol_b); let max_vol = vol_a.max(vol_b); - let sb = aabb_b.size(); let cb = aabb_b.center(); let same_proportion = (0..3).all(|k| { let mx = sa[k].max(sb[k]); diff --git a/compiler/tests/three_compiler_test.rs b/compiler/tests/three_compiler_test.rs index 9c3142b4..83285513 100644 --- a/compiler/tests/three_compiler_test.rs +++ b/compiler/tests/three_compiler_test.rs @@ -5721,3 +5721,130 @@ fn test_stage3_science_crystal_miller_planes_and_callouts() { assert!(usda.contains("HydrogenBondDashes")); assert!(usda.contains("BondAngleArc")); } + +#[test] +fn test_a11y_linter_tl601_to_tl606() { + use serde_json::json; + use three_live_compiler::{handle_mcp_request, validate_and_lint_scene}; + + let a11y_script = r#" + scene.add(new THREE.AmbientLight(0xffffff, 0.8)); + const sun = new THREE.DirectionalLight(0xffffff, 1.4); + sun.position.set(2, 4, 3); + scene.add(sun); + + // TL601: Low non-text contrast (< 3.0:1 against #0d1629 dark studio background) + const darkChip = new THREE.Mesh( + new THREE.BoxGeometry(0.6, 0.2, 0.6), + new THREE.MeshStandardMaterial({ color: 0x334155, metalness: 0.4, roughness: 0.5 }) + ); + darkChip.name = 'DarkGullWingIC'; + darkChip.position.set(-1.2, 0.1, 0); + scene.add(darkChip); + + // TL602: 3D text / label contrast (< 4.5:1 WCAG AA text threshold) + const dimLabel = new THREE.Mesh( + new THREE.BoxGeometry(0.5, 0.2, 0.05), + new THREE.MeshStandardMaterial({ color: 0x64748b, roughness: 0.5 }) + ); + dimLabel.name = 'StatusLabel'; + dimLabel.position.set(0, 0.8, 0); + dimLabel.userData.xr = { text: { text: 'LOW CONTRAST', size: 0.12 } }; + scene.add(dimLabel); + + // TL603 (tiny interactive target < 0.4% coverage) + TL604 (missing accessible name) + const tinyUnnamedBtn = new THREE.Mesh( + new THREE.SphereGeometry(0.03, 12, 8), + new THREE.MeshStandardMaterial({ color: 0x38bdf8 }) + ); + tinyUnnamedBtn.position.set(0.8, 0.5, -1.5); + tinyUnnamedBtn.userData.xr = { grab: true }; + scene.add(tinyUnnamedBtn); + + // TL605: Vestibular comfort (orbit speed > 2.5 rad/s) + const fastSpinner = new THREE.Mesh( + new THREE.BoxGeometry(0.4, 0.4, 0.4), + new THREE.MeshStandardMaterial({ color: 0xfacc15 }) + ); + fastSpinner.name = 'RapidOrbitOrb'; + fastSpinner.position.set(1.2, 0.5, 0); + fastSpinner.userData.xr = { orbit: { radius: 0.5, speed: 4.2 } }; + scene.add(fastSpinner); + + // TL606: Red-green interactive siblings of identical dimensions + const redBtn = new THREE.Mesh( + new THREE.BoxGeometry(0.35, 0.35, 0.35), + new THREE.MeshStandardMaterial({ color: 0xdc2626 }) + ); + redBtn.name = 'StopButton'; + redBtn.position.set(-0.35, 0.2, 0.5); + redBtn.userData.xr = { grab: '1-hand' }; + scene.add(redBtn); + + const greenBtn = new THREE.Mesh( + new THREE.BoxGeometry(0.35, 0.35, 0.35), + new THREE.MeshStandardMaterial({ color: 0x16a34a }) + ); + greenBtn.name = 'StartButton'; + greenBtn.position.set(0.35, 0.2, 0.5); + greenBtn.userData.xr = { grab: '1-hand' }; + scene.add(greenBtn); + + camera.position.set(0, 1.2, 3.5); + camera.lookAt(0, 0.4, 0); + "#; + + let report = validate_and_lint_scene(a11y_script, "a11y.js", 1.5); + assert!( + report.valid, + "Default validation should keep valid=true when only warnings/infos are present: {:?}", + report.diagnostics + ); + + for expected_code in ["TL601", "TL602", "TL603", "TL604", "TL605", "TL606"] { + assert!( + report.diagnostics.iter().any(|d| d.code == expected_code), + "Expected {} diagnostic in report, got: {:?}", + expected_code, + report.diagnostics + ); + } + + // Verify severities: TL601–TL603 are warnings; TL604–TL606 are info suggestions + for warn_code in ["TL601", "TL602", "TL603"] { + let diag = report.diagnostics.iter().find(|d| d.code == warn_code).unwrap(); + assert_eq!(diag.severity, "warning", "{} should be warning by default", warn_code); + assert!(diag.hint.is_some(), "{} should include an actionable hint", warn_code); + } + for info_code in ["TL604", "TL605", "TL606"] { + let diag = report.diagnostics.iter().find(|d| d.code == info_code).unwrap(); + assert_eq!(diag.severity, "info", "{} should be info suggestion by default", info_code); + assert!(diag.hint.is_some(), "{} should include an actionable hint", info_code); + } + + // Verify MCP `three_live_validate` returns the TL601–TL606 diagnostics in its JSON report + let mcp_req = json!({ + "jsonrpc": "2.0", + "id": 601, + "method": "tools/call", + "params": { + "name": "three_live_validate", + "arguments": { + "code": a11y_script + } + } + }); + let mcp_resp = handle_mcp_request(&mcp_req).expect("MCP response"); + assert_eq!(mcp_resp["result"]["isError"], false); + let mcp_report: serde_json::Value = + serde_json::from_str(mcp_resp["result"]["content"][0]["text"].as_str().unwrap()).unwrap(); + assert_eq!(mcp_report["valid"], true); + let mcp_diags = mcp_report["diagnostics"].as_array().unwrap(); + for expected_code in ["TL601", "TL602", "TL603", "TL604", "TL605", "TL606"] { + assert!( + mcp_diags.iter().any(|d| d["code"] == expected_code), + "MCP three_live_validate missing {}", + expected_code + ); + } +} diff --git a/docs/llm-guide.md b/docs/llm-guide.md index fe4fc09d..df921503 100644 --- a/docs/llm-guide.md +++ b/docs/llm-guide.md @@ -466,7 +466,7 @@ For scripts and RL harnesses, `three-live-cli gym play level.js` prints the (`{"actions": [...], "ticks": 30, "frame": "f.png"}`) and prints one observation (or `{"error": ...}`) per line, keeping state in memory. -### Diagnostic Code Summary (`TL100–TL402`) +### Diagnostic Code Summary (`TL100-TL606`) | Code | Category | Meaning & Fix | | :------ | :------- | :----------------------------------- | @@ -550,3 +550,20 @@ For scripts and RL harnesses, `three-live-cli gym play level.js` prints the : : : (`xr-hands`, `gemini-live`, : : : : `plugins`, `slot="spatial"`) placed : : : : on ``. : +| `TL601` | A11y | Foreground mesh luminance contrast | +: : : `< 3.0:1` (WCAG 2.1 SC 1.4.11) : +: : : against dark studio viewport. : +| `TL602` | A11y | 3D text / label contrast `< 4.5:1` | +: : : (WCAG 2.1 SC 1.4.3). : +| `TL603` | A11y | Interactive target covers `< 0.4%` | +: : : of viewport (`< 2.5°` XR visual : +: : : angle, WCAG 2.2 SC 2.5.8). : +| `TL604` | A11y | Interactive node missing descriptive | +: : : `mesh.name` or `userData.xr.label` : +: : : (`info` suggestion). : +| `TL605` | A11y | Continuous `orbit.speed > 2.5 rad/s` | +: : : or `follow.stiffness > 25` (`info` : +: : : vestibular comfort suggestion). : +| `TL606` | A11y | Interactive siblings of identical | +: : : size rely on red-green hue alone : +: : : (`info` CVD suggestion). : diff --git a/examples/kits/catalog-data.js b/examples/kits/catalog-data.js index bc6b3d4c..892a9134 100644 --- a/examples/kits/catalog-data.js +++ b/examples/kits/catalog-data.js @@ -22,14 +22,14 @@ if (typeof module === 'object' && module.exports) { } })(typeof globalThis !== 'undefined' ? globalThis : this, function() { const STUDIO_RIG = [ - 'const key = new THREE.DirectionalLight(0xfff7ed, 2.2);', + 'const key = new THREE.DirectionalLight(0xfff7ed, 2.25);', 'key.position.set(3.5, 5.2, 4.0);', 'key.castShadow = true;', 'scene.add(key);', - 'const fill = new THREE.DirectionalLight(0x93c5fd, 0.95);', - 'fill.position.set(-4.0, 2.4, -2.6);', + 'const fill = new THREE.DirectionalLight(0xbae6fd, 1.18);', + 'fill.position.set(-4.0, 2.5, 2.8);', 'scene.add(fill);', - 'scene.add(new THREE.HemisphereLight(0xe0f2fe, 0x1e293b, 0.65));', + 'scene.add(new THREE.HemisphereLight(0xe0f2fe, 0x64748b, 0.9));', ].join('\n'); function wrapScene(bodyLines) { @@ -164,7 +164,7 @@ const { label: '24T Helical + Hub', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.24 });', 'const gear = new THREE.Mesh(', ' new THREE.Mechanical.SpurGearGeometry({', ' module: 0.04, teeth: 24, thickness: 0.14,', @@ -180,7 +180,7 @@ const { label: '16T Straight Pinion', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.85, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.53, roughness: 0.26 });', 'const gear = new THREE.Mesh(', ' new THREE.Mechanical.SpurGearGeometry({', ' module: 0.05, teeth: 16, thickness: 0.18, bore: 0.16, keywayWidth: 0.04, keywayDepth: 0.02', @@ -205,7 +205,7 @@ const { label: '20T Miter Gear', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.86, roughness: 0.25 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.53, roughness: 0.25 });', 'const bevel = new THREE.Mesh(', ' new THREE.Mechanical.BevelGearGeometry({', ' module: 0.045, teeth: 20, mateTeeth: 20, faceWidth: 0.16,', @@ -220,7 +220,7 @@ const { label: '14T:28T Pinion', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.24 });', 'const bevel = new THREE.Mesh(', ' new THREE.Mechanical.BevelGearGeometry({', ' module: 0.05, teeth: 14, mateTeeth: 28, bore: 0.14, hubRadius: 0.2, hubLength: 0.14', @@ -245,7 +245,7 @@ const { label: '42T Planetary Ring', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, metalness: 0.88, roughness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.28 });', 'const ring = new THREE.Mesh(', ' new THREE.Mechanical.InternalRingGearGeometry({', ' module: 0.035, teeth: 42, thickness: 0.16, boltCount: 8, boltHoleDiameter: 0.075', @@ -259,7 +259,7 @@ const { label: '32T Compact Housing', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.75, roughness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.5, roughness: 0.28 });', 'const ring = new THREE.Mesh(', ' new THREE.Mechanical.InternalRingGearGeometry({', ' module: 0.04, teeth: 32, thickness: 0.18, boltCount: 6, boltHoleDiameter: 0.08', @@ -284,7 +284,7 @@ const { label: '12-Tooth Linear Rack', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.26 });', 'const rack = new THREE.Mesh(', ' new THREE.Mechanical.RackGeometry({', ' module: 0.05, teeth: 12, thickness: 0.18, backHeight: 0.14', @@ -297,7 +297,7 @@ const { label: '18-Tooth Fine Pitch', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x475569, metalness: 0.9, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.54, roughness: 0.24 });', 'const rack = new THREE.Mesh(', ' new THREE.Mechanical.RackGeometry({', ' module: 0.035, teeth: 18, thickness: 0.14, backHeight: 0.11', @@ -321,7 +321,7 @@ const { label: 'Toothed Timing Pulley', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.9, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.54, roughness: 0.22 });', 'const pulley = new THREE.Mesh(', ' new THREE.Mechanical.PulleyGeometry({', ' profile: "timing", pitchRadius: 0.42, width: 0.22, teeth: 28,', @@ -336,7 +336,7 @@ const { label: 'Dual-Groove V-Belt', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, metalness: 0.85, roughness: 0.3 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.3 });', 'const pulley = new THREE.Mesh(', ' new THREE.Mechanical.PulleyGeometry({', ' profile: "v-belt", pitchRadius: 0.48, width: 0.3, grooves: 2, bore: 0.18, hubRadius: 0.22', @@ -350,7 +350,7 @@ const { label: 'Flat Crowned Drum', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.82, roughness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.52, roughness: 0.28 });', 'const pulley = new THREE.Mesh(', ' new THREE.Mechanical.PulleyGeometry({', ' profile: "flat", pitchRadius: 0.44, width: 0.32, bore: 0.16', @@ -376,7 +376,7 @@ const { label: 'Socket Cap M10×35', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x475569, metalness: 0.88, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.26 });', 'const bolt = new THREE.Mesh(', ' new THREE.Mechanical.BoltGeometry({', ' preset: "M10x35", headType: "socket", cosmeticThreads: true, scale: 15, origin: "center"', @@ -390,7 +390,7 @@ const { label: 'Hex Bolt M12×40', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.9, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.54, roughness: 0.22 });', 'const bolt = new THREE.Mesh(', ' new THREE.Mechanical.BoltGeometry({', ' preset: "M12x40", headType: "hex", cosmeticThreads: true, scale: 14, origin: "center"', @@ -404,7 +404,7 @@ const { label: 'Countersunk M8×25', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.85, roughness: 0.25 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.53, roughness: 0.25 });', 'const bolt = new THREE.Mesh(', ' new THREE.Mechanical.BoltGeometry({', ' preset: "M8x25", headType: "countersunk", cosmeticThreads: true, scale: 18, origin: "center"', @@ -429,7 +429,7 @@ const { label: 'Nyloc Lock Nut M12', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.9, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.54, roughness: 0.22 });', 'const nut = new THREE.Mesh(', ' new THREE.Mechanical.NutGeometry({ preset: "M12", nutType: "nyloc", cosmeticThreads: true, scale: 25 }),', ' mat', @@ -441,7 +441,7 @@ const { label: 'Flange Nut M10', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.86, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.53, roughness: 0.24 });', 'const nut = new THREE.Mesh(', ' new THREE.Mechanical.NutGeometry({ preset: "M10", nutType: "flange", cosmeticThreads: true, scale: 28 }),', ' mat', @@ -453,7 +453,7 @@ const { label: 'Standard Hex M12', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.24 });', 'const nut = new THREE.Mesh(', ' new THREE.Mechanical.NutGeometry({ preset: "M12", nutType: "hex", cosmeticThreads: true, scale: 25 }),', ' mat', @@ -476,7 +476,7 @@ const { label: 'Chamfered ISO M12', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.92, roughness: 0.2 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.54, roughness: 0.2 });', 'const washer = new THREE.Mesh(', ' new THREE.Mechanical.WasherGeometry({ preset: "M12", chamfer: 0.0005, scale: 24 }),', ' mat', @@ -488,7 +488,7 @@ const { label: 'Wide Fender Washer', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.86, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.53, roughness: 0.24 });', 'const washer = new THREE.Mesh(', ' new THREE.Mechanical.WasherGeometry({ innerDiameter: 0.18, outerDiameter: 0.68, thickness: 0.055, chamfer: 0.01 }),', ' mat', @@ -511,7 +511,7 @@ const { label: '3-Step CNC Drive Shaft', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.92, roughness: 0.18 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.54, roughness: 0.18 });', 'const shaft = new THREE.Mesh(', ' new THREE.Mechanical.ShaftGeometry({', ' steps: [', @@ -529,7 +529,7 @@ const { label: 'D-Cut Motor Shaft', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.9, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.54, roughness: 0.22 });', 'const shaft = new THREE.Mesh(', ' new THREE.Mechanical.ShaftGeometry({ diameter: 0.28, length: 1.1, dCut: 0.045, chamfer: 0.02 }),', ' mat', @@ -552,7 +552,7 @@ const { label: 'Jaw-Spider Coupling', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.78, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.51, roughness: 0.26 });', 'const coupler = new THREE.Mesh(', ' new THREE.Mechanical.ShaftCouplerGeometry({', ' style: "jaw-spider", outerDiameter: 0.55, length: 0.75, bore1: 0.16, bore2: 0.2, jaws: 3', @@ -566,7 +566,7 @@ const { label: 'Rigid Split-Clamp', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.22 });', 'const coupler = new THREE.Mesh(', ' new THREE.Mechanical.ShaftCouplerGeometry({', ' style: "rigid-clamp", outerDiameter: 0.52, length: 0.78, bore1: 0.18, bore2: 0.18, clampScrews: true', @@ -591,7 +591,7 @@ const { label: 'Open Deep-Groove Bearing', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, metalness: 0.94, roughness: 0.16 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, metalness: 0.55, roughness: 0.16 });', 'const brg = new THREE.Mesh(', ' new THREE.Mechanical.BearingGeometry({', ' innerDiameter: 0.36, outerDiameter: 0.88, width: 0.24, balls: 9, shielded: false', @@ -605,7 +605,7 @@ const { label: 'Flanged Shielded Bearing', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.9, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.54, roughness: 0.22 });', 'const brg = new THREE.Mesh(', ' new THREE.Mechanical.BearingGeometry({', ' innerDiameter: 0.34, outerDiameter: 0.82, width: 0.24, shielded: true, flanged: true, flangeDiameter: 0.94', @@ -630,7 +630,7 @@ const { label: 'UCP Pedestal Bearing', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x0ea5e9, metalness: 0.55, roughness: 0.42 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.55, roughness: 0.42 });', 'const block = new THREE.Mesh(', ' new THREE.Mechanical.PillowBlockGeometry({', ' bore: 0.28, centerHeight: 0.48, baseLength: 1.35, baseWidth: 0.38, housingRadius: 0.42', @@ -654,7 +654,7 @@ const { label: '7-Coil Compression Spring', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.9, roughness: 0.2 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.54, roughness: 0.2 });', 'const spring = new THREE.Mesh(', ' new THREE.Mechanical.HelicalSpringGeometry({', ' meanRadius: 0.32, wireRadius: 0.055, coils: 7, length: 1.15, flatEnds: true', @@ -667,7 +667,7 @@ const { label: 'Heavy 4.5-Coil Die Spring', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xef4444, metalness: 0.45, roughness: 0.38 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf87171, metalness: 0.45, roughness: 0.38 });', 'const spring = new THREE.Mesh(', ' new THREE.Mechanical.HelicalSpringGeometry({', ' meanRadius: 0.34, wireRadius: 0.075, coils: 4.5, length: 1.0, flatEnds: true', @@ -687,38 +687,41 @@ const 'Circular weld-neck & slip-on mounting flange with center bore & bolt-circle holes.', tags: ['flange', 'plate', 'weld-neck', 'bolt-circle', 'mount'], orbit: {theta: 28, phi: 30, zoom: 1.22}, - variants: [ - { - label: '8-Bolt Weld-Neck Flange', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.25 });', - 'const flange = new THREE.Mesh(', - ' new THREE.Mechanical.FlangePlateGeometry({', - ' outerRadius: 0.62, thickness: 0.12, bore: 0.42,', - ' boltCount: 8, boltCircleRadius: 0.48, boltHoleDiameter: 0.085,', - ' neckRadius: 0.28, neckHeight: 0.22', - ' }),', - ' mat', - ');', - 'flange.rotation.x = -0.25;', - 'scene.add(flange);', - ]), - }, - { - label: '4-Bolt Flat Plate', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.84, roughness: 0.28 });', - 'const flange = new THREE.Mesh(', - ' new THREE.Mechanical.FlangePlateGeometry({', - ' outerRadius: 0.55, thickness: 0.1, bore: 0.3, boltCount: 4, boltCircleRadius: 0.4, boltHoleDiameter: 0.09', - ' }),', - ' mat', - ');', - 'flange.rotation.x = -0.25;', - 'scene.add(flange);', - ]), - }, - ], + variants: + [ + { + label: '8-Bolt Weld-Neck Flange', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.25 });', + 'const flange = new THREE.Mesh(', + ' new THREE.Mechanical.FlangePlateGeometry({', + ' outerRadius: 0.62, thickness: 0.12, bore: 0.42,', + ' boltCount: 8, boltCircleRadius: 0.48, boltHoleDiameter: 0.085,', + ' neckRadius: 0.28, neckHeight: 0.22', + ' }),', + ' mat', + ');', + 'flange.rotation.x = -0.25;', + 'scene.add(flange);', + ]), + }, + { + label: '4-Bolt Flat Plate', + code: + wrapScene( + [ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.52, roughness: 0.28 });', + 'const flange = new THREE.Mesh(', + ' new THREE.Mechanical.FlangePlateGeometry({', + ' outerRadius: 0.55, thickness: 0.1, bore: 0.3, boltCount: 4, boltCircleRadius: 0.4, boltHoleDiameter: 0.09', + ' }),', + ' mat', + ');', + 'flange.rotation.x = -0.25;', + 'scene.add(flange);', + ]), + }, + ], }, { slug: 'mechanical-profile-extrusion', @@ -734,7 +737,7 @@ const { label: 'T-Slot Aluminum Extrusion', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.88, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.24 });', 'const beam = new THREE.Mesh(', ' new THREE.Mechanical.ProfileExtrusionGeometry({', ' profile: "t-slot", width: 0.45, height: 0.45, length: 1.25', @@ -748,7 +751,7 @@ const { label: 'Wide-Flange Steel I-Beam', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, metalness: 0.85, roughness: 0.32 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, metalness: 0.32, roughness: 0.28 });', 'const beam = new THREE.Mesh(', ' new THREE.Mechanical.ProfileExtrusionGeometry({', ' profile: "i-beam", width: 0.48, height: 0.58, length: 1.35, wallThickness: 0.055', @@ -762,7 +765,7 @@ const { label: 'Structural C-Channel', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.65, roughness: 0.35 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xfbbf24, metalness: 0.28, roughness: 0.32 });', 'const beam = new THREE.Mesh(', ' new THREE.Mechanical.ProfileExtrusionGeometry({', ' profile: "c-channel", width: 0.36, height: 0.54, length: 1.3, wallThickness: 0.055', @@ -776,7 +779,7 @@ const { label: 'L-Angle Steel Bracket', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.86, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.32, roughness: 0.26 });', 'const beam = new THREE.Mesh(', ' new THREE.Mechanical.ProfileExtrusionGeometry({', ' profile: "l-angle", width: 0.46, height: 0.46, length: 1.3, wallThickness: 0.06', @@ -790,7 +793,7 @@ const { label: 'Hollow Rectangular Tube', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.78, roughness: 0.25 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x7dd3fc, metalness: 0.3, roughness: 0.25 });', 'const beam = new THREE.Mesh(', ' new THREE.Mechanical.ProfileExtrusionGeometry({', ' profile: "rect-tube", width: 0.52, height: 0.36, length: 1.35, wallThickness: 0.05', @@ -898,7 +901,7 @@ const { label: 'Spiral Staircase', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, roughness: 0.42, metalness: 0.35 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, roughness: 0.42, metalness: 0.35 });', 'const stair = new THREE.Mesh(', ' new THREE.Architecture.StaircaseGeometry({', ' mode: "spiral", rise: 2.9, width: 0.95, turns: 1.15, origin: "center"', @@ -937,7 +940,7 @@ const { label: 'Open-Stringer Straight', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.65, roughness: 0.35 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.35, roughness: 0.32 });', 'const stair = new THREE.Mesh(', ' new THREE.Architecture.StaircaseGeometry({', ' mode: "straight", rise: 2.6, width: 1.1, solid: false, origin: "center"', @@ -961,7 +964,7 @@ const { label: 'Gambrel Vaulted Shell', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xb45309, roughness: 0.55, metalness: 0.15 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, roughness: 0.55, metalness: 0.15 });', 'const roof = new THREE.Mesh(', ' new THREE.Architecture.RoofGeometry({', ' style: "gambrel", width: 5.2, depth: 6.4, height: 2.3, solid: false, origin: "center"', @@ -974,7 +977,7 @@ const { label: 'Hip Roof', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x475569, roughness: 0.6, metalness: 0.25 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xa78bfa, roughness: 0.6, metalness: 0.25 });', 'const roof = new THREE.Mesh(', ' new THREE.Architecture.RoofGeometry({', ' style: "hip", width: 5.5, depth: 7.5, pitchDeg: 32, origin: "center"', @@ -987,7 +990,7 @@ const { label: 'Mansard Dual-Pitch', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, roughness: 0.5, metalness: 0.3 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.5, metalness: 0.3 });', 'const roof = new THREE.Mesh(', ' new THREE.Architecture.RoofGeometry({', ' style: "mansard", width: 5.6, depth: 7.0, height: 2.2, origin: "center"', @@ -1013,7 +1016,7 @@ const { label: 'Classic Gable Roof', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xdc2626, roughness: 0.58, metalness: 0.12 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf87171, roughness: 0.58, metalness: 0.12 });', 'const roof = new THREE.Mesh(', ' new THREE.Architecture.RoofGeometry({', ' style: "gable", width: 5.4, depth: 7.0, pitchDeg: 34, origin: "center"', @@ -1052,7 +1055,7 @@ const { label: 'Double Arched Swing (40% Open)', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xb45309, roughness: 0.45, metalness: 0.12 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xfb923c, roughness: 0.45, metalness: 0.12 });', 'const door = new THREE.Mesh(', ' new THREE.Architecture.DoorGeometry({', ' style: "arched", operation: "swing", leaves: 2, width: 1.65, height: 2.25,', @@ -1066,7 +1069,7 @@ const { label: 'Exposed-Rail Barn Door', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, roughness: 0.48, metalness: 0.2 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, roughness: 0.48, metalness: 0.2 });', 'const door = new THREE.Mesh(', ' new THREE.Architecture.DoorGeometry({', ' style: "panel-2", operation: "barn", width: 1.05, height: 2.15, openFraction: 0.55, origin: "center"', @@ -1105,7 +1108,7 @@ const { label: 'OXO Sliding Patio Door', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, roughness: 0.38, metalness: 0.45 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.38, metalness: 0.45 });', 'const door = new THREE.Mesh(', ' new THREE.Architecture.DoorGeometry({', ' style: "french", operation: "slider", trackPattern: "OXO", width: 2.4, height: 2.15, openFraction: 0.6, origin: "center"', @@ -1140,80 +1143,73 @@ const 'window', 'casement', 'double-hung', 'sash', 'mullion', 'arched' ], orbit: {theta: 26, phi: 18, zoom: 1.22}, - variants: - [ - { - label: 'Arched Fanlight Window', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, roughness: 0.52, metalness: 0.15 });', - 'const win = new THREE.Mesh(', - ' new THREE.Architecture.WindowGeometry({', - ' style: "arched", width: 1.3, height: 1.75, cols: 2, rows: 2, sill: true, origin: "center"', - ' }),', - ' mat', - ');', - 'scene.add(win);', - ]), - }, - { - label: 'Double Casement (Open)', - code: - wrapScene( - [ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.4, metalness: 0.45 });', - 'const win = new THREE.Mesh(', - ' new THREE.Architecture.WindowGeometry({', - ' style: "casement", leaves: 2, width: 1.4, height: 1.35, openFraction: 0.55, casing: true, sill: true, origin: "center"', - ' }),', - ' mat', - ');', - 'scene.add(win);', - ]), - }, - { - label: 'Double-Hung Sash', - code: - wrapScene( - [ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf8fafc, roughness: 0.58 });', - 'const win = new THREE.Mesh(', - ' new THREE.Architecture.WindowGeometry({', - ' style: "double-hung", width: 1.15, height: 1.55, cols: 2, rows: 2, openFraction: 0.45, topOpenFraction: 0.3, casing: true, origin: "center"', - ' }),', - ' mat', - ');', - 'scene.add(win);', - ]), - }, - { - label: 'Top-Hinged Awning Window', - code: - wrapScene( - [ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, roughness: 0.42, metalness: 0.35 });', - 'const win = new THREE.Mesh(', - ' new THREE.Architecture.WindowGeometry({', - ' style: "awning", width: 1.35, height: 0.95, openFraction: 0.65, casing: true, sill: true, origin: "center"', - ' }),', - ' mat', - ');', - 'scene.add(win);', - ]), - }, - { - label: '3-Track Sliding Window', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.45, metalness: 0.4 });', - 'const win = new THREE.Mesh(', - ' new THREE.Architecture.WindowGeometry({', - ' style: "slider", trackPattern: "XOX", width: 1.85, height: 1.2, openFraction: 0.55, sill: true, origin: "center"', - ' }),', - ' mat', - ');', - 'scene.add(win);', - ]), - }, - ], + variants: [ + { + label: 'Arched Fanlight Window', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, roughness: 0.52, metalness: 0.15 });', + 'const win = new THREE.Mesh(', + ' new THREE.Architecture.WindowGeometry({', + ' style: "arched", width: 1.3, height: 1.75, cols: 2, rows: 2, sill: true, origin: "center"', + ' }),', + ' mat', + ');', + 'scene.add(win);', + ]), + }, + { + label: 'Double Casement (Open)', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.4, metalness: 0.45 });', + 'const win = new THREE.Mesh(', + ' new THREE.Architecture.WindowGeometry({', + ' style: "casement", leaves: 2, width: 1.4, height: 1.35, openFraction: 0.55, casing: true, sill: true, origin: "center"', + ' }),', + ' mat', + ');', + 'scene.add(win);', + ]), + }, + { + label: 'Double-Hung Sash', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf8fafc, roughness: 0.58 });', + 'const win = new THREE.Mesh(', + ' new THREE.Architecture.WindowGeometry({', + ' style: "double-hung", width: 1.15, height: 1.55, cols: 2, rows: 2, openFraction: 0.45, topOpenFraction: 0.3, casing: true, origin: "center"', + ' }),', + ' mat', + ');', + 'scene.add(win);', + ]), + }, + { + label: 'Top-Hinged Awning Window', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, roughness: 0.42, metalness: 0.35 });', + 'const win = new THREE.Mesh(', + ' new THREE.Architecture.WindowGeometry({', + ' style: "awning", width: 1.35, height: 0.95, openFraction: 0.65, casing: true, sill: true, origin: "center"', + ' }),', + ' mat', + ');', + 'scene.add(win);', + ]), + }, + { + label: '3-Track Sliding Window', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.45, metalness: 0.4 });', + 'const win = new THREE.Mesh(', + ' new THREE.Architecture.WindowGeometry({', + ' style: "slider", trackPattern: "XOX", width: 1.85, height: 1.2, openFraction: 0.55, sill: true, origin: "center"', + ' }),', + ' mat', + ');', + 'scene.add(win);', + ]), + }, + ], }, { slug: 'architecture-railing', @@ -1227,7 +1223,7 @@ const { label: 'IBC Baluster Guardrail', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.78, roughness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.51, roughness: 0.28 });', 'const rail = new THREE.Mesh(', ' new THREE.Architecture.RailingGeometry({', ' style: "baluster", length: 2.8, height: 1.07, origin: "center"', @@ -1240,7 +1236,7 @@ const { label: 'Horizontal-Bar Cable Rail', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.85, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.22 });', 'const rail = new THREE.Mesh(', ' new THREE.Architecture.RailingGeometry({', ' style: "horizontal-bar", length: 2.8, height: 1.07, horizontalBars: 6, origin: "center"', @@ -1316,7 +1312,7 @@ const { label: 'Structural Steel H-Column', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, metalness: 0.82, roughness: 0.3 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.52, roughness: 0.3 });', 'const col = new THREE.Mesh(', ' new THREE.Architecture.ColumnGeometry({', ' style: "h-column", height: 2.8, radius: 0.24, origin: "center"', @@ -1383,7 +1379,7 @@ const { label: '3D Z-Bend DN100 Run', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.72, roughness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.49, roughness: 0.28 });', 'const pipe = new THREE.Mesh(', ' new THREE.Industrial.PipeRunGeometry({', ' size: "DN100", flangedEnds: true,', @@ -1397,7 +1393,7 @@ const { label: 'U-Loop Manifold DN80', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.22 });', 'const pipe = new THREE.Mesh(', ' new THREE.Industrial.PipeRunGeometry({', ' size: "DN80", flangedEnds: true,', @@ -1422,7 +1418,7 @@ const { label: 'Flanged Reducing Tee', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, metalness: 0.85, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.26 });', 'const tee = new THREE.Mesh(', ' new THREE.Industrial.PipeFittingGeometry({', ' kind: "tee", size: "DN125", secondarySize: "DN80", flanged: true', @@ -1435,7 +1431,7 @@ const { label: 'Flanged 90° Elbow', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.88, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.24 });', 'const elbow = new THREE.Mesh(', ' new THREE.Industrial.PipeFittingGeometry({ kind: "elbow-90", size: "DN125", flanged: true }),', ' mat', @@ -1446,7 +1442,7 @@ const { label: '4-Way Flanged Cross', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.72, roughness: 0.3 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.49, roughness: 0.3 });', 'const cross = new THREE.Mesh(', ' new THREE.Industrial.PipeFittingGeometry({ kind: "cross", size: "DN100", flanged: true }),', ' mat', @@ -1457,7 +1453,7 @@ const { label: 'Concentric Flanged Reducer', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.78, roughness: 0.25 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.51, roughness: 0.25 });', 'const red = new THREE.Mesh(', ' new THREE.Industrial.PipeFittingGeometry({ kind: "reducer", size: "DN150", secondarySize: "DN80", flanged: true }),', ' mat', @@ -1482,7 +1478,7 @@ const { label: 'Rising-Stem Gate Valve', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xef4444, metalness: 0.58, roughness: 0.34 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xfca5a5, metalness: 0.28, roughness: 0.32 });', 'const valve = new THREE.Mesh(', ' new THREE.Industrial.ValveGeometry({ kind: "gate-handwheel", size: "DN125", openFraction: 0.75 }),', ' mat', @@ -1504,7 +1500,7 @@ const { label: 'Quarter-Turn Ball Valve', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.82, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.52, roughness: 0.26 });', 'const valve = new THREE.Mesh(', ' new THREE.Industrial.ValveGeometry({ kind: "ball-lever", size: "DN100", openFraction: 0.35 }),', ' mat', @@ -1515,7 +1511,7 @@ const { label: 'Wafer Butterfly Valve', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x3b82f6, metalness: 0.65, roughness: 0.3 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.47, roughness: 0.3 });', 'const valve = new THREE.Mesh(', ' new THREE.Industrial.ValveGeometry({ kind: "butterfly", size: "DN150", openFraction: 0.45 }),', ' mat', @@ -1526,7 +1522,7 @@ const { label: 'Swing Check Valve', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.85, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.53, roughness: 0.24 });', 'const valve = new THREE.Mesh(', ' new THREE.Industrial.ValveGeometry({ kind: "check", size: "DN125" }),', ' mat', @@ -1548,7 +1544,7 @@ const { label: '22 kW Process Pump Skid', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x0ea5e9, metalness: 0.62, roughness: 0.34 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.47, roughness: 0.34 });', 'const pump = new THREE.Mesh(', ' new THREE.Industrial.CentrifugalPumpGeometry({', ' suctionSize: "DN100", dischargeSize: "DN80", motorPowerKw: 22, origin: "center"', @@ -1572,7 +1568,7 @@ const { label: '2-Bay × 3-Level Rack', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf97316, metalness: 0.52, roughness: 0.4 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xfb923c, metalness: 0.52, roughness: 0.4 });', 'const rack = new THREE.Mesh(', ' new THREE.Industrial.PalletRackGeometry({', ' bays: 2, levels: 3, bayWidth: 2.3, depth: 1.05, height: 3.8, origin: "center"', @@ -1597,7 +1593,7 @@ const { label: 'Live-Roller Conveyor', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.8, roughness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.51, roughness: 0.28 });', 'const conv = new THREE.Mesh(', ' new THREE.Industrial.ConveyorGeometry({', ' kind: "roller", length: 2.8, width: 0.75, height: 0.85, sideGuides: true, origin: "center"', @@ -1610,7 +1606,7 @@ const { label: 'Inclined Belt Conveyor', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x475569, metalness: 0.68, roughness: 0.36 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.48, roughness: 0.36 });', 'const conv = new THREE.Mesh(', ' new THREE.Industrial.ConveyorGeometry({', ' kind: "belt", length: 3.0, width: 0.75, height: 0.8, inclineDeg: 14, sideGuides: true, origin: "center"', @@ -1636,7 +1632,7 @@ const { label: 'Dual-Guardrail Catwalk', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xeab308, metalness: 0.58, roughness: 0.36 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xeab308, metalness: 0.46, roughness: 0.36 });', 'const catwalk = new THREE.Mesh(', ' new THREE.Industrial.CatwalkPlatformGeometry({', ' length: 3.2, width: 1.1, height: 1.6, guardrail: "both", origin: "center"', @@ -1673,7 +1669,7 @@ const { label: 'Uncaged Wall Ladder', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.82, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.52, roughness: 0.26 });', 'const ladder = new THREE.Mesh(', ' new THREE.Industrial.IndustrialLadderGeometry({', ' height: 3.2, width: 0.5, includeCage: false, origin: "center"', @@ -1693,34 +1689,35 @@ const 'Forklift crash guardrails, tubular safety handrails & heavy baseplate bollards.', tags: ['barrier', 'bollard', 'guardrail', 'forklift', 'safety'], orbit: {theta: 28, phi: 22, zoom: 1.22}, - variants: [ - { - label: 'Double Crash Guardrail', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xfacc15, metalness: 0.48, roughness: 0.38 });', - 'const barrier = new THREE.Mesh(', - ' new THREE.Industrial.SafetyBarrierGeometry({', - ' kind: "guardrail-double", length: 2.6, height: 0.95, origin: "center"', - ' }),', - ' mat', - ');', - 'scene.add(barrier);', - ]), - }, - { - label: 'Heavy Steel Bollard', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf97316, metalness: 0.45, roughness: 0.4 });', - 'const barrier = new THREE.Mesh(', - ' new THREE.Industrial.SafetyBarrierGeometry({', - ' kind: "bollard", height: 1.05, postRadius: 0.085, origin: "center"', - ' }),', - ' mat', - ');', - 'scene.add(barrier);', - ]), - }, - ], + variants: + [ + { + label: 'Double Crash Guardrail', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xfacc15, metalness: 0.48, roughness: 0.38 });', + 'const barrier = new THREE.Mesh(', + ' new THREE.Industrial.SafetyBarrierGeometry({', + ' kind: "guardrail-double", length: 2.6, height: 0.95, origin: "center"', + ' }),', + ' mat', + ');', + 'scene.add(barrier);', + ]), + }, + { + label: 'Heavy Steel Bollard', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xfb923c, metalness: 0.45, roughness: 0.4 });', + 'const barrier = new THREE.Mesh(', + ' new THREE.Industrial.SafetyBarrierGeometry({', + ' kind: "bollard", height: 1.05, postRadius: 0.085, origin: "center"', + ' }),', + ' mat', + ');', + 'scene.add(barrier);', + ]), + }, + ], }, { slug: 'industrial-storage-tank', @@ -1734,7 +1731,7 @@ const { label: 'Vertical Dished on Legs', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.88, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.22 });', 'const tank = new THREE.Mesh(', ' new THREE.Industrial.StorageTankGeometry({', ' kind: "vertical-dished", radius: 0.75, shellHeight: 1.6, legHeight: 0.7, manway: true, origin: "center"', @@ -1747,7 +1744,7 @@ const { label: 'Horizontal Saddle Vessel', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.82, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.52, roughness: 0.26 });', 'const tank = new THREE.Mesh(', ' new THREE.Industrial.StorageTankGeometry({', ' kind: "horizontal-saddle", radius: 0.65, length: 2.4, manway: true, origin: "center"', @@ -1760,7 +1757,7 @@ const { label: 'Cone-Hopper Silo', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, metalness: 0.75, roughness: 0.3 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, metalness: 0.5, roughness: 0.3 });', 'const tank = new THREE.Mesh(', ' new THREE.Industrial.StorageTankGeometry({', ' kind: "cone-hopper", radius: 0.8, shellHeight: 1.4, hopperHeight: 0.85, legHeight: 0.9, origin: "center"', @@ -1773,7 +1770,7 @@ const { label: 'API 650 Flat-Bottom Tank', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xf8fafc, metalness: 0.65, roughness: 0.34 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf8fafc, metalness: 0.47, roughness: 0.34 });', 'const tank = new THREE.Mesh(', ' new THREE.Industrial.StorageTankGeometry({', ' kind: "flat-api650", radius: 1.15, shellHeight: 1.5, manway: true, origin: "center"', @@ -2151,41 +2148,44 @@ const 'metaballs' ], orbit: {theta: 32, phi: 24, zoom: 1.2}, - variants: [ - { - label: 'Gyroid TPMS (Viridis)', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 0.28, metalness: 0.12 });', - 'const iso = new THREE.Mesh(', - ' new THREE.Science.IsoSurfaceGeometry({ preset: "gyroid", resolution: 28, colormap: "viridis" }),', - ' mat', - ');', - 'scene.add(iso);', - ]), - }, - { - label: 'Schwarz-P Minimal Surface', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 0.28, metalness: 0.12 });', - 'const iso = new THREE.Mesh(', - ' new THREE.Science.IsoSurfaceGeometry({ preset: "schwarz-p", resolution: 28, colormap: "plasma" }),', - ' mat', - ');', - 'scene.add(iso);', - ]), - }, - { - label: 'Metaball Cluster', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 0.22, metalness: 0.15 });', - 'const iso = new THREE.Mesh(', - ' new THREE.Science.IsoSurfaceGeometry({ preset: "metaballs", resolution: 28, colormap: "turbo" }),', - ' mat', - ');', - 'scene.add(iso);', - ]), - }, - ], + variants: + [ + { + label: 'Gyroid TPMS (Viridis)', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 0.28, metalness: 0.12 });', + 'const iso = new THREE.Mesh(', + ' new THREE.Science.IsoSurfaceGeometry({ preset: "gyroid", resolution: 28, colormap: "viridis" }),', + ' mat', + ');', + 'scene.add(iso);', + ]), + }, + { + label: 'Schwarz-P Minimal Surface', + code: + wrapScene( + [ + 'const mat = new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 0.28, metalness: 0.12 });', + 'const iso = new THREE.Mesh(', + ' new THREE.Science.IsoSurfaceGeometry({ preset: "schwarz-p", resolution: 28, colormap: "plasma" }),', + ' mat', + ');', + 'scene.add(iso);', + ]), + }, + { + label: 'Metaball Cluster', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 0.22, metalness: 0.15 });', + 'const iso = new THREE.Mesh(', + ' new THREE.Science.IsoSurfaceGeometry({ preset: "metaballs", resolution: 28, colormap: "turbo" }),', + ' mat', + ');', + 'scene.add(iso);', + ]), + }, + ], }, { slug: 'science-streamline', @@ -2399,7 +2399,7 @@ const { label: '85×56 mm SBC Carrier Board', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x15803d, roughness: 0.38, metalness: 0.12 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x22c55e, roughness: 0.38, metalness: 0.12 });', 'const pcb = new THREE.Mesh(', ' new THREE.Electronics.PcbBoardGeometry({', ' width: 0.085, length: 0.056, thickness: 0.0024, cornerRadius: 0.004, cornerHoles: true,', @@ -2414,7 +2414,7 @@ const { label: 'Circular Sensor Daughterboard', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x1d4ed8, roughness: 0.36, metalness: 0.16 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, roughness: 0.36, metalness: 0.16 });', 'const pcb = new THREE.Mesh(', ' new THREE.Electronics.PcbBoardGeometry({', ' width: 0.06, length: 0.06, thickness: 0.002, cornerRadius: 0.026, cornerHoles: false,', @@ -2441,7 +2441,7 @@ const { label: 'Vented Base + Bosses & Cutouts', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x475569, roughness: 0.42, metalness: 0.25 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, roughness: 0.42, metalness: 0.25 });', 'const box = new THREE.Mesh(', ' new THREE.Electronics.EnclosureGeometry({', ' part: "base", width: 0.11, length: 0.08, height: 0.042,', @@ -2458,7 +2458,7 @@ const { label: 'Closed Flanged Wall Box', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, roughness: 0.38, metalness: 0.35 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.38, metalness: 0.35 });', 'const box = new THREE.Mesh(', ' new THREE.Electronics.EnclosureGeometry({', ' part: "closed", flanges: true, ventSlots: 6, scale: 10, origin: "center"', @@ -2482,7 +2482,7 @@ const { label: '13-Fin Anodized Heatsink', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.84, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, metalness: 0.52, roughness: 0.24 });', 'const sink = new THREE.Mesh(', ' new THREE.Electronics.HeatsinkGeometry({', ' width: 0.065, length: 0.065, height: 0.032, finCount: 13, taperRatio: 0.65, origin: "center"', @@ -2496,7 +2496,7 @@ const { label: 'Silver Extruded Heatsink', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.9, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.54, roughness: 0.22 });', 'const sink = new THREE.Mesh(', ' new THREE.Electronics.HeatsinkGeometry({', ' width: 0.075, length: 0.05, height: 0.024, finCount: 15, origin: "center"', @@ -2521,7 +2521,7 @@ const { label: 'Slotted TS35×7.5 Rail', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.9, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.54, roughness: 0.24 });', 'const rail = new THREE.Mesh(', ' new THREE.Electronics.DinRailGeometry({ profile: "ts35x7.5", length: 0.14, slotted: true }),', ' mat', @@ -2533,7 +2533,7 @@ const { label: 'Deep TS35×15 Top-Hat Rail', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.84, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.52, roughness: 0.26 });', 'const rail = new THREE.Mesh(', ' new THREE.Electronics.DinRailGeometry({ profile: "ts35x15", length: 0.14, slotted: true }),', ' mat', @@ -2552,84 +2552,77 @@ const 'JEDEC gull-wing QFP/SOIC, through-hole DIP, QFN, BGA ball-grid, SOT-23, TO-220 & D2PAK packages.', tags: ['ic', 'chip', 'qfp', 'dip', 'soic', 'bga', 'to220', 'jedec'], orbit: {theta: 32, phi: 30, zoom: 1.22}, - variants: - [ - { - label: 'LQFP-64 Microcontroller', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x334155, roughness: 0.42, metalness: 0.28 });', - 'const ic = new THREE.Mesh(', - ' new THREE.Electronics.IcPackageGeometry({ preset: "LQFP-64", scale: 65, origin: "center" }),', - ' mat', - ');', - 'scene.add(ic);', - ]), - }, - { - label: 'DIP-16 Through-Hole IC', - code: - wrapScene( - [ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x334155, roughness: 0.45, metalness: 0.25 });', - 'const ic = new THREE.Mesh(', - ' new THREE.Electronics.IcPackageGeometry({ preset: "DIP-16", scale: 45, origin: "center" }),', - ' mat', - ');', - 'scene.add(ic);', - ]), - }, - { - label: 'TO-220 Power MOSFET', - code: - wrapScene( - [ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x475569, roughness: 0.38, metalness: 0.45 });', - 'const ic = new THREE.Mesh(', - ' new THREE.Electronics.IcPackageGeometry({ preset: "TO-220", scale: 55, origin: "center" }),', - ' mat', - ');', - 'scene.add(ic);', - ]), - }, - { - label: 'BGA-64 Ball-Grid Package', - code: - wrapScene( - [ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x334155, roughness: 0.4, metalness: 0.3 });', - 'const ic = new THREE.Mesh(', - ' new THREE.Electronics.IcPackageGeometry({ preset: "BGA-64", scale: 80, origin: "center" }),', - ' mat', - ');', - 'ic.rotation.x = Math.PI * 0.72;', - 'scene.add(ic);', - ]), - }, - { - label: 'SOIC-8 Gull-Wing IC', - code: - wrapScene( - [ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x334155, roughness: 0.4, metalness: 0.32 });', - 'const ic = new THREE.Mesh(', - ' new THREE.Electronics.IcPackageGeometry({ preset: "SOIC-8", scale: 110, origin: "center" }),', - ' mat', - ');', - 'scene.add(ic);', - ]), - }, - { - label: 'D2PAK Surface-Mount Power', - code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x475569, roughness: 0.35, metalness: 0.55 });', - 'const ic = new THREE.Mesh(', - ' new THREE.Electronics.IcPackageGeometry({ preset: "D2PAK", scale: 55, origin: "center" }),', - ' mat', - ');', - 'scene.add(ic);', - ]), - }, - ], + variants: [ + { + label: 'LQFP-64 Microcontroller', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.42, metalness: 0.28 });', + 'const ic = new THREE.Mesh(', + ' new THREE.Electronics.IcPackageGeometry({ preset: "LQFP-64", scale: 65, origin: "center" }),', + ' mat', + ');', + 'scene.add(ic);', + ]), + }, + { + label: 'DIP-16 Through-Hole IC', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, roughness: 0.45, metalness: 0.25 });', + 'const ic = new THREE.Mesh(', + ' new THREE.Electronics.IcPackageGeometry({ preset: "DIP-16", scale: 45, origin: "center" }),', + ' mat', + ');', + 'scene.add(ic);', + ]), + }, + { + label: 'TO-220 Power MOSFET', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, roughness: 0.38, metalness: 0.45 });', + 'const ic = new THREE.Mesh(', + ' new THREE.Electronics.IcPackageGeometry({ preset: "TO-220", scale: 55, origin: "center" }),', + ' mat', + ');', + 'scene.add(ic);', + ]), + }, + { + label: 'BGA-64 Ball-Grid Package', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0x34d399, roughness: 0.4, metalness: 0.3 });', + 'const ic = new THREE.Mesh(', + ' new THREE.Electronics.IcPackageGeometry({ preset: "BGA-64", scale: 80, origin: "center" }),', + ' mat', + ');', + 'ic.rotation.x = Math.PI * 0.72;', + 'scene.add(ic);', + ]), + }, + { + label: 'SOIC-8 Gull-Wing IC', + code: wrapScene([ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, roughness: 0.4, metalness: 0.32 });', + 'const ic = new THREE.Mesh(', + ' new THREE.Electronics.IcPackageGeometry({ preset: "SOIC-8", scale: 110, origin: "center" }),', + ' mat', + ');', + 'scene.add(ic);', + ]), + }, + { + label: 'D2PAK Surface-Mount Power', + code: + wrapScene( + [ + 'const mat = new THREE.MeshStandardMaterial({ color: 0xa78bfa, roughness: 0.35, metalness: 0.55 });', + 'const ic = new THREE.Mesh(', + ' new THREE.Electronics.IcPackageGeometry({ preset: "D2PAK", scale: 55, origin: "center" }),', + ' mat', + ');', + 'scene.add(ic);', + ]), + }, + ], }, { slug: 'electronics-pin-header', @@ -2643,7 +2636,7 @@ const { label: '2×8 Shrouded IDC Box Header', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x334155, roughness: 0.45, metalness: 0.25 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.45, metalness: 0.25 });', 'const hdr = new THREE.Mesh(', ' new THREE.Electronics.PinHeaderGeometry({ gender: "shrouded", rows: 2, cols: 8, scale: 35 }),', ' mat', @@ -2654,7 +2647,7 @@ const { label: '1×8 Right-Angle Male GPIO', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.78, roughness: 0.26 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.51, roughness: 0.26 });', 'const hdr = new THREE.Mesh(', ' new THREE.Electronics.PinHeaderGeometry({ gender: "male", rows: 1, cols: 8, rightAngle: true, scale: 40 }),', ' mat', @@ -2679,7 +2672,7 @@ const { label: 'USB-C Receptacle', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.88, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.22 });', 'const conn = new THREE.Mesh(', ' new THREE.Electronics.ConnectorGeometry({ kind: "usb-c", scale: 80, origin: "center" }),', ' mat', @@ -2690,7 +2683,7 @@ const { label: 'RJ45 Ethernet Jack', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.75, roughness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.5, roughness: 0.28 });', 'const conn = new THREE.Mesh(', ' new THREE.Electronics.ConnectorGeometry({ kind: "rj45", scale: 45, origin: "center" }),', ' mat', @@ -2701,7 +2694,7 @@ const { label: '4-Pole Screw Terminal Block', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x16a34a, roughness: 0.42, metalness: 0.15 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x22c55e, roughness: 0.42, metalness: 0.15 });', 'const conn = new THREE.Mesh(', ' new THREE.Electronics.ConnectorGeometry({ kind: "terminal-block", poles: 4, scale: 42, origin: "center" }),', ' mat', @@ -2712,7 +2705,7 @@ const { label: 'SMA RF Coax Bulkhead', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xeab308, metalness: 0.88, roughness: 0.2 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xeab308, metalness: 0.53, roughness: 0.2 });', 'const conn = new THREE.Mesh(', ' new THREE.Electronics.ConnectorGeometry({ kind: "sma", scale: 65, origin: "center" }),', ' mat', @@ -2723,7 +2716,7 @@ const { label: 'HDMI Type-A Receptacle', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.88, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.22 });', 'const conn = new THREE.Mesh(', ' new THREE.Electronics.ConnectorGeometry({ kind: "hdmi", scale: 55, origin: "center" }),', ' mat', @@ -2734,7 +2727,7 @@ const { label: 'DC Barrel Power Jack', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x334155, roughness: 0.42, metalness: 0.28 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, roughness: 0.42, metalness: 0.28 });', 'const conn = new THREE.Mesh(', ' new THREE.Electronics.ConnectorGeometry({ kind: "barrel-jack", scale: 55, origin: "center" }),', ' mat', @@ -2756,7 +2749,7 @@ const { label: 'M3 Brass Male-Female Hex', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xd97706, metalness: 0.88, roughness: 0.22 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xf59e0b, metalness: 0.53, roughness: 0.22 });', 'const spacer = new THREE.Mesh(', ' new THREE.Electronics.StandoffSpacerGeometry({', ' shape: "hex", thread: "M3", length: 0.012, maleStudLength: 0.005, origin: "center"', @@ -2771,7 +2764,7 @@ const { label: 'M4 Cylindrical Spacer', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.85, roughness: 0.24 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xcbd5e1, metalness: 0.53, roughness: 0.24 });', 'const spacer = new THREE.Mesh(', ' new THREE.Electronics.StandoffSpacerGeometry({', ' shape: "round", thread: "M4", length: 0.015, origin: "center"', @@ -2799,7 +2792,7 @@ const { label: '6×6 mm Tactile Push Switch', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x64748b, roughness: 0.4, metalness: 0.35 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, roughness: 0.4, metalness: 0.35 });', 'const part = new THREE.Mesh(', ' new THREE.Electronics.DiscreteComponentGeometry({ kind: "tactile-switch", scale: 95, origin: "center" }),', ' mat', @@ -2810,7 +2803,7 @@ const { label: 'Radial Electrolytic Capacitor', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x1d4ed8, roughness: 0.32, metalness: 0.45 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x38bdf8, roughness: 0.32, metalness: 0.45 });', 'const part = new THREE.Mesh(', ' new THREE.Electronics.DiscreteComponentGeometry({ kind: "electrolytic-cap", scale: 55, origin: "center" }),', ' mat', @@ -2821,7 +2814,7 @@ const { label: '5 mm Domed Indicator LED', code: wrapScene([ - 'const mat = new THREE.MeshPhysicalMaterial({ color: 0xef4444, roughness: 0.12, metalness: 0.05, clearcoat: 1.0 });', + 'const mat = new THREE.MeshPhysicalMaterial({ color: 0xf87171, roughness: 0.12, metalness: 0.05, clearcoat: 1.0 });', 'const part = new THREE.Mesh(', ' new THREE.Electronics.DiscreteComponentGeometry({ kind: "led-domed", scale: 65, origin: "center" }),', ' mat', @@ -2832,7 +2825,7 @@ const { label: 'HC-49U Quartz Crystal', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, metalness: 0.92, roughness: 0.18 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0xe2e8f0, metalness: 0.54, roughness: 0.18 });', 'const part = new THREE.Mesh(', ' new THREE.Electronics.DiscreteComponentGeometry({ kind: "crystal-hc49", scale: 55, origin: "center" }),', ' mat', @@ -2843,7 +2836,7 @@ const { label: '0805 SMD Chip Passive', code: wrapScene([ - 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.65, roughness: 0.3 });', + 'const mat = new THREE.MeshStandardMaterial({ color: 0x94a3b8, metalness: 0.47, roughness: 0.3 });', 'const part = new THREE.Mesh(', ' new THREE.Electronics.DiscreteComponentGeometry({ kind: "smd-chip", package: "0805", scale: 180, origin: "center" }),', ' mat', diff --git a/examples/kits/thumbs/architecture-archway-v1.webp b/examples/kits/thumbs/architecture-archway-v1.webp index fece1074..dac90400 100644 Binary files a/examples/kits/thumbs/architecture-archway-v1.webp and b/examples/kits/thumbs/architecture-archway-v1.webp differ diff --git a/examples/kits/thumbs/architecture-archway.webp b/examples/kits/thumbs/architecture-archway.webp index 59cd1d9b..08915517 100644 Binary files a/examples/kits/thumbs/architecture-archway.webp and b/examples/kits/thumbs/architecture-archway.webp differ diff --git a/examples/kits/thumbs/architecture-column-v1.webp b/examples/kits/thumbs/architecture-column-v1.webp index 4994027d..741563f3 100644 Binary files a/examples/kits/thumbs/architecture-column-v1.webp and b/examples/kits/thumbs/architecture-column-v1.webp differ diff --git a/examples/kits/thumbs/architecture-column-v2.webp b/examples/kits/thumbs/architecture-column-v2.webp index afc83874..cce82e3d 100644 Binary files a/examples/kits/thumbs/architecture-column-v2.webp and b/examples/kits/thumbs/architecture-column-v2.webp differ diff --git a/examples/kits/thumbs/architecture-column-v3.webp b/examples/kits/thumbs/architecture-column-v3.webp index 9269a0b5..6546ad96 100644 Binary files a/examples/kits/thumbs/architecture-column-v3.webp and b/examples/kits/thumbs/architecture-column-v3.webp differ diff --git a/examples/kits/thumbs/architecture-column.webp b/examples/kits/thumbs/architecture-column.webp index bb73db03..0889387e 100644 Binary files a/examples/kits/thumbs/architecture-column.webp and b/examples/kits/thumbs/architecture-column.webp differ diff --git a/examples/kits/thumbs/architecture-door-v1.webp b/examples/kits/thumbs/architecture-door-v1.webp index bc1983c7..9d5a921b 100644 Binary files a/examples/kits/thumbs/architecture-door-v1.webp and b/examples/kits/thumbs/architecture-door-v1.webp differ diff --git a/examples/kits/thumbs/architecture-door-v2.webp b/examples/kits/thumbs/architecture-door-v2.webp index da39352c..b6cae9d0 100644 Binary files a/examples/kits/thumbs/architecture-door-v2.webp and b/examples/kits/thumbs/architecture-door-v2.webp differ diff --git a/examples/kits/thumbs/architecture-door-v3.webp b/examples/kits/thumbs/architecture-door-v3.webp index e39eaa69..6b18fe26 100644 Binary files a/examples/kits/thumbs/architecture-door-v3.webp and b/examples/kits/thumbs/architecture-door-v3.webp differ diff --git a/examples/kits/thumbs/architecture-door-v4.webp b/examples/kits/thumbs/architecture-door-v4.webp index 5b0c6985..5643ecac 100644 Binary files a/examples/kits/thumbs/architecture-door-v4.webp and b/examples/kits/thumbs/architecture-door-v4.webp differ diff --git a/examples/kits/thumbs/architecture-door-v5.webp b/examples/kits/thumbs/architecture-door-v5.webp index ad885a60..ee98b17d 100644 Binary files a/examples/kits/thumbs/architecture-door-v5.webp and b/examples/kits/thumbs/architecture-door-v5.webp differ diff --git a/examples/kits/thumbs/architecture-door.webp b/examples/kits/thumbs/architecture-door.webp index 8d69de89..6d4504cf 100644 Binary files a/examples/kits/thumbs/architecture-door.webp and b/examples/kits/thumbs/architecture-door.webp differ diff --git a/examples/kits/thumbs/architecture-railing-v1.webp b/examples/kits/thumbs/architecture-railing-v1.webp index ef316da6..7c2e5cea 100644 Binary files a/examples/kits/thumbs/architecture-railing-v1.webp and b/examples/kits/thumbs/architecture-railing-v1.webp differ diff --git a/examples/kits/thumbs/architecture-railing-v2.webp b/examples/kits/thumbs/architecture-railing-v2.webp index 2327fb0b..76da82e0 100644 Binary files a/examples/kits/thumbs/architecture-railing-v2.webp and b/examples/kits/thumbs/architecture-railing-v2.webp differ diff --git a/examples/kits/thumbs/architecture-railing.webp b/examples/kits/thumbs/architecture-railing.webp index 797a2871..38fe4ae3 100644 Binary files a/examples/kits/thumbs/architecture-railing.webp and b/examples/kits/thumbs/architecture-railing.webp differ diff --git a/examples/kits/thumbs/architecture-roof-v1.webp b/examples/kits/thumbs/architecture-roof-v1.webp index 8c80d55f..b67c21c5 100644 Binary files a/examples/kits/thumbs/architecture-roof-v1.webp and b/examples/kits/thumbs/architecture-roof-v1.webp differ diff --git a/examples/kits/thumbs/architecture-roof-v2.webp b/examples/kits/thumbs/architecture-roof-v2.webp index d4364fbc..805a2fe3 100644 Binary files a/examples/kits/thumbs/architecture-roof-v2.webp and b/examples/kits/thumbs/architecture-roof-v2.webp differ diff --git a/examples/kits/thumbs/architecture-roof-v3.webp b/examples/kits/thumbs/architecture-roof-v3.webp index 3a8973a0..56f69079 100644 Binary files a/examples/kits/thumbs/architecture-roof-v3.webp and b/examples/kits/thumbs/architecture-roof-v3.webp differ diff --git a/examples/kits/thumbs/architecture-roof-v4.webp b/examples/kits/thumbs/architecture-roof-v4.webp index 83406a0c..3f67f723 100644 Binary files a/examples/kits/thumbs/architecture-roof-v4.webp and b/examples/kits/thumbs/architecture-roof-v4.webp differ diff --git a/examples/kits/thumbs/architecture-roof-v5.webp b/examples/kits/thumbs/architecture-roof-v5.webp index ed9e1ec8..580affea 100644 Binary files a/examples/kits/thumbs/architecture-roof-v5.webp and b/examples/kits/thumbs/architecture-roof-v5.webp differ diff --git a/examples/kits/thumbs/architecture-roof.webp b/examples/kits/thumbs/architecture-roof.webp index 9f89d394..7e59d6f2 100644 Binary files a/examples/kits/thumbs/architecture-roof.webp and b/examples/kits/thumbs/architecture-roof.webp differ diff --git a/examples/kits/thumbs/architecture-slab.webp b/examples/kits/thumbs/architecture-slab.webp index 6d2bb1ab..e4c85b00 100644 Binary files a/examples/kits/thumbs/architecture-slab.webp and b/examples/kits/thumbs/architecture-slab.webp differ diff --git a/examples/kits/thumbs/architecture-staircase-v1.webp b/examples/kits/thumbs/architecture-staircase-v1.webp index a4511bcb..39db75b0 100644 Binary files a/examples/kits/thumbs/architecture-staircase-v1.webp and b/examples/kits/thumbs/architecture-staircase-v1.webp differ diff --git a/examples/kits/thumbs/architecture-staircase-v2.webp b/examples/kits/thumbs/architecture-staircase-v2.webp index 2bd74396..f993f193 100644 Binary files a/examples/kits/thumbs/architecture-staircase-v2.webp and b/examples/kits/thumbs/architecture-staircase-v2.webp differ diff --git a/examples/kits/thumbs/architecture-staircase-v3.webp b/examples/kits/thumbs/architecture-staircase-v3.webp index 8b127fcb..6bfc1d7f 100644 Binary files a/examples/kits/thumbs/architecture-staircase-v3.webp and b/examples/kits/thumbs/architecture-staircase-v3.webp differ diff --git a/examples/kits/thumbs/architecture-staircase.webp b/examples/kits/thumbs/architecture-staircase.webp index e4ef0a36..7be909d0 100644 Binary files a/examples/kits/thumbs/architecture-staircase.webp and b/examples/kits/thumbs/architecture-staircase.webp differ diff --git a/examples/kits/thumbs/architecture-wall-v1.webp b/examples/kits/thumbs/architecture-wall-v1.webp index eccaa229..69173eb1 100644 Binary files a/examples/kits/thumbs/architecture-wall-v1.webp and b/examples/kits/thumbs/architecture-wall-v1.webp differ diff --git a/examples/kits/thumbs/architecture-wall.webp b/examples/kits/thumbs/architecture-wall.webp index 4815f96d..be7ac757 100644 Binary files a/examples/kits/thumbs/architecture-wall.webp and b/examples/kits/thumbs/architecture-wall.webp differ diff --git a/examples/kits/thumbs/architecture-window-v1.webp b/examples/kits/thumbs/architecture-window-v1.webp index e88b0629..54d68781 100644 Binary files a/examples/kits/thumbs/architecture-window-v1.webp and b/examples/kits/thumbs/architecture-window-v1.webp differ diff --git a/examples/kits/thumbs/architecture-window-v2.webp b/examples/kits/thumbs/architecture-window-v2.webp index 5976fa3b..a80dfd26 100644 Binary files a/examples/kits/thumbs/architecture-window-v2.webp and b/examples/kits/thumbs/architecture-window-v2.webp differ diff --git a/examples/kits/thumbs/architecture-window-v3.webp b/examples/kits/thumbs/architecture-window-v3.webp index 1699d373..999f8088 100644 Binary files a/examples/kits/thumbs/architecture-window-v3.webp and b/examples/kits/thumbs/architecture-window-v3.webp differ diff --git a/examples/kits/thumbs/architecture-window-v4.webp b/examples/kits/thumbs/architecture-window-v4.webp index c7001a43..f0f10507 100644 Binary files a/examples/kits/thumbs/architecture-window-v4.webp and b/examples/kits/thumbs/architecture-window-v4.webp differ diff --git a/examples/kits/thumbs/architecture-window.webp b/examples/kits/thumbs/architecture-window.webp index 5af5dca3..cee08145 100644 Binary files a/examples/kits/thumbs/architecture-window.webp and b/examples/kits/thumbs/architecture-window.webp differ diff --git a/examples/kits/thumbs/electronics-connector-v1.webp b/examples/kits/thumbs/electronics-connector-v1.webp index 4b9f7025..2ac0e82e 100644 Binary files a/examples/kits/thumbs/electronics-connector-v1.webp and b/examples/kits/thumbs/electronics-connector-v1.webp differ diff --git a/examples/kits/thumbs/electronics-connector-v2.webp b/examples/kits/thumbs/electronics-connector-v2.webp index 42fc21cb..e316f2a5 100644 Binary files a/examples/kits/thumbs/electronics-connector-v2.webp and b/examples/kits/thumbs/electronics-connector-v2.webp differ diff --git a/examples/kits/thumbs/electronics-connector-v3.webp b/examples/kits/thumbs/electronics-connector-v3.webp index 575de188..40abc3be 100644 Binary files a/examples/kits/thumbs/electronics-connector-v3.webp and b/examples/kits/thumbs/electronics-connector-v3.webp differ diff --git a/examples/kits/thumbs/electronics-connector-v4.webp b/examples/kits/thumbs/electronics-connector-v4.webp index 41ecf2b4..4704c568 100644 Binary files a/examples/kits/thumbs/electronics-connector-v4.webp and b/examples/kits/thumbs/electronics-connector-v4.webp differ diff --git a/examples/kits/thumbs/electronics-connector-v5.webp b/examples/kits/thumbs/electronics-connector-v5.webp index a92c7c91..82ceb1dd 100644 Binary files a/examples/kits/thumbs/electronics-connector-v5.webp and b/examples/kits/thumbs/electronics-connector-v5.webp differ diff --git a/examples/kits/thumbs/electronics-connector.webp b/examples/kits/thumbs/electronics-connector.webp index b55b1698..70757f0f 100644 Binary files a/examples/kits/thumbs/electronics-connector.webp and b/examples/kits/thumbs/electronics-connector.webp differ diff --git a/examples/kits/thumbs/electronics-din-rail-v1.webp b/examples/kits/thumbs/electronics-din-rail-v1.webp index 55fd22b9..17fde222 100644 Binary files a/examples/kits/thumbs/electronics-din-rail-v1.webp and b/examples/kits/thumbs/electronics-din-rail-v1.webp differ diff --git a/examples/kits/thumbs/electronics-din-rail.webp b/examples/kits/thumbs/electronics-din-rail.webp index 9f0ab9ab..2155f249 100644 Binary files a/examples/kits/thumbs/electronics-din-rail.webp and b/examples/kits/thumbs/electronics-din-rail.webp differ diff --git a/examples/kits/thumbs/electronics-discrete-component-v1.webp b/examples/kits/thumbs/electronics-discrete-component-v1.webp index 63c590e5..80ec7b16 100644 Binary files a/examples/kits/thumbs/electronics-discrete-component-v1.webp and b/examples/kits/thumbs/electronics-discrete-component-v1.webp differ diff --git a/examples/kits/thumbs/electronics-discrete-component-v2.webp b/examples/kits/thumbs/electronics-discrete-component-v2.webp index d15bdfbc..40b2579d 100644 Binary files a/examples/kits/thumbs/electronics-discrete-component-v2.webp and b/examples/kits/thumbs/electronics-discrete-component-v2.webp differ diff --git a/examples/kits/thumbs/electronics-discrete-component-v3.webp b/examples/kits/thumbs/electronics-discrete-component-v3.webp index 01d5227d..7a7c9c41 100644 Binary files a/examples/kits/thumbs/electronics-discrete-component-v3.webp and b/examples/kits/thumbs/electronics-discrete-component-v3.webp differ diff --git a/examples/kits/thumbs/electronics-discrete-component-v4.webp b/examples/kits/thumbs/electronics-discrete-component-v4.webp index ba1c9062..96d14faf 100644 Binary files a/examples/kits/thumbs/electronics-discrete-component-v4.webp and b/examples/kits/thumbs/electronics-discrete-component-v4.webp differ diff --git a/examples/kits/thumbs/electronics-discrete-component.webp b/examples/kits/thumbs/electronics-discrete-component.webp index d736e805..fbda629e 100644 Binary files a/examples/kits/thumbs/electronics-discrete-component.webp and b/examples/kits/thumbs/electronics-discrete-component.webp differ diff --git a/examples/kits/thumbs/electronics-enclosure-v1.webp b/examples/kits/thumbs/electronics-enclosure-v1.webp index 2da8f528..fb18c6e7 100644 Binary files a/examples/kits/thumbs/electronics-enclosure-v1.webp and b/examples/kits/thumbs/electronics-enclosure-v1.webp differ diff --git a/examples/kits/thumbs/electronics-enclosure.webp b/examples/kits/thumbs/electronics-enclosure.webp index 74fafcb7..bc4ca67f 100644 Binary files a/examples/kits/thumbs/electronics-enclosure.webp and b/examples/kits/thumbs/electronics-enclosure.webp differ diff --git a/examples/kits/thumbs/electronics-heatsink-v1.webp b/examples/kits/thumbs/electronics-heatsink-v1.webp index 135f4185..2421659d 100644 Binary files a/examples/kits/thumbs/electronics-heatsink-v1.webp and b/examples/kits/thumbs/electronics-heatsink-v1.webp differ diff --git a/examples/kits/thumbs/electronics-heatsink.webp b/examples/kits/thumbs/electronics-heatsink.webp index 8ba99b24..41572aeb 100644 Binary files a/examples/kits/thumbs/electronics-heatsink.webp and b/examples/kits/thumbs/electronics-heatsink.webp differ diff --git a/examples/kits/thumbs/electronics-ic-package-v1.webp b/examples/kits/thumbs/electronics-ic-package-v1.webp index 33e16edb..176d2245 100644 Binary files a/examples/kits/thumbs/electronics-ic-package-v1.webp and b/examples/kits/thumbs/electronics-ic-package-v1.webp differ diff --git a/examples/kits/thumbs/electronics-ic-package-v2.webp b/examples/kits/thumbs/electronics-ic-package-v2.webp index 8e96cd94..4fe01f89 100644 Binary files a/examples/kits/thumbs/electronics-ic-package-v2.webp and b/examples/kits/thumbs/electronics-ic-package-v2.webp differ diff --git a/examples/kits/thumbs/electronics-ic-package-v3.webp b/examples/kits/thumbs/electronics-ic-package-v3.webp index b8a81b5a..5417a1af 100644 Binary files a/examples/kits/thumbs/electronics-ic-package-v3.webp and b/examples/kits/thumbs/electronics-ic-package-v3.webp differ diff --git a/examples/kits/thumbs/electronics-ic-package-v4.webp b/examples/kits/thumbs/electronics-ic-package-v4.webp index 1396ac4c..9c034773 100644 Binary files a/examples/kits/thumbs/electronics-ic-package-v4.webp and b/examples/kits/thumbs/electronics-ic-package-v4.webp differ diff --git a/examples/kits/thumbs/electronics-ic-package-v5.webp b/examples/kits/thumbs/electronics-ic-package-v5.webp index 1c0f46f3..d1a1104c 100644 Binary files a/examples/kits/thumbs/electronics-ic-package-v5.webp and b/examples/kits/thumbs/electronics-ic-package-v5.webp differ diff --git a/examples/kits/thumbs/electronics-ic-package.webp b/examples/kits/thumbs/electronics-ic-package.webp index dd809424..cb3d7c2c 100644 Binary files a/examples/kits/thumbs/electronics-ic-package.webp and b/examples/kits/thumbs/electronics-ic-package.webp differ diff --git a/examples/kits/thumbs/electronics-pcb-board-v1.webp b/examples/kits/thumbs/electronics-pcb-board-v1.webp index 3196609a..2ed23881 100644 Binary files a/examples/kits/thumbs/electronics-pcb-board-v1.webp and b/examples/kits/thumbs/electronics-pcb-board-v1.webp differ diff --git a/examples/kits/thumbs/electronics-pcb-board.webp b/examples/kits/thumbs/electronics-pcb-board.webp index 1f98c436..4eec5a81 100644 Binary files a/examples/kits/thumbs/electronics-pcb-board.webp and b/examples/kits/thumbs/electronics-pcb-board.webp differ diff --git a/examples/kits/thumbs/electronics-pin-header-v1.webp b/examples/kits/thumbs/electronics-pin-header-v1.webp index a201c8b6..53afa828 100644 Binary files a/examples/kits/thumbs/electronics-pin-header-v1.webp and b/examples/kits/thumbs/electronics-pin-header-v1.webp differ diff --git a/examples/kits/thumbs/electronics-pin-header.webp b/examples/kits/thumbs/electronics-pin-header.webp index 3903664d..8d13ebd3 100644 Binary files a/examples/kits/thumbs/electronics-pin-header.webp and b/examples/kits/thumbs/electronics-pin-header.webp differ diff --git a/examples/kits/thumbs/electronics-standoff-spacer-v1.webp b/examples/kits/thumbs/electronics-standoff-spacer-v1.webp index 125a6154..543e65d3 100644 Binary files a/examples/kits/thumbs/electronics-standoff-spacer-v1.webp and b/examples/kits/thumbs/electronics-standoff-spacer-v1.webp differ diff --git a/examples/kits/thumbs/electronics-standoff-spacer.webp b/examples/kits/thumbs/electronics-standoff-spacer.webp index cd5eac72..8b092c8f 100644 Binary files a/examples/kits/thumbs/electronics-standoff-spacer.webp and b/examples/kits/thumbs/electronics-standoff-spacer.webp differ diff --git a/examples/kits/thumbs/industrial-catwalk-platform.webp b/examples/kits/thumbs/industrial-catwalk-platform.webp index c123a97a..87fe02db 100644 Binary files a/examples/kits/thumbs/industrial-catwalk-platform.webp and b/examples/kits/thumbs/industrial-catwalk-platform.webp differ diff --git a/examples/kits/thumbs/industrial-centrifugal-pump.webp b/examples/kits/thumbs/industrial-centrifugal-pump.webp index e4b7d5fd..5e2d1523 100644 Binary files a/examples/kits/thumbs/industrial-centrifugal-pump.webp and b/examples/kits/thumbs/industrial-centrifugal-pump.webp differ diff --git a/examples/kits/thumbs/industrial-conveyor-v1.webp b/examples/kits/thumbs/industrial-conveyor-v1.webp index 168b73a0..f80c234e 100644 Binary files a/examples/kits/thumbs/industrial-conveyor-v1.webp and b/examples/kits/thumbs/industrial-conveyor-v1.webp differ diff --git a/examples/kits/thumbs/industrial-conveyor.webp b/examples/kits/thumbs/industrial-conveyor.webp index c4b7471f..cd2e6d6b 100644 Binary files a/examples/kits/thumbs/industrial-conveyor.webp and b/examples/kits/thumbs/industrial-conveyor.webp differ diff --git a/examples/kits/thumbs/industrial-ladder-v1.webp b/examples/kits/thumbs/industrial-ladder-v1.webp index b4f8e0ca..ea20f08e 100644 Binary files a/examples/kits/thumbs/industrial-ladder-v1.webp and b/examples/kits/thumbs/industrial-ladder-v1.webp differ diff --git a/examples/kits/thumbs/industrial-ladder.webp b/examples/kits/thumbs/industrial-ladder.webp index def0a662..aec377b0 100644 Binary files a/examples/kits/thumbs/industrial-ladder.webp and b/examples/kits/thumbs/industrial-ladder.webp differ diff --git a/examples/kits/thumbs/industrial-pallet-rack.webp b/examples/kits/thumbs/industrial-pallet-rack.webp index 282a4db3..523396d5 100644 Binary files a/examples/kits/thumbs/industrial-pallet-rack.webp and b/examples/kits/thumbs/industrial-pallet-rack.webp differ diff --git a/examples/kits/thumbs/industrial-pipe-fitting-v1.webp b/examples/kits/thumbs/industrial-pipe-fitting-v1.webp index 3ff2897a..e97ed55a 100644 Binary files a/examples/kits/thumbs/industrial-pipe-fitting-v1.webp and b/examples/kits/thumbs/industrial-pipe-fitting-v1.webp differ diff --git a/examples/kits/thumbs/industrial-pipe-fitting-v2.webp b/examples/kits/thumbs/industrial-pipe-fitting-v2.webp index db8c24ee..a0f39915 100644 Binary files a/examples/kits/thumbs/industrial-pipe-fitting-v2.webp and b/examples/kits/thumbs/industrial-pipe-fitting-v2.webp differ diff --git a/examples/kits/thumbs/industrial-pipe-fitting-v3.webp b/examples/kits/thumbs/industrial-pipe-fitting-v3.webp index ab338205..b955d269 100644 Binary files a/examples/kits/thumbs/industrial-pipe-fitting-v3.webp and b/examples/kits/thumbs/industrial-pipe-fitting-v3.webp differ diff --git a/examples/kits/thumbs/industrial-pipe-fitting.webp b/examples/kits/thumbs/industrial-pipe-fitting.webp index d50ba234..40e369d7 100644 Binary files a/examples/kits/thumbs/industrial-pipe-fitting.webp and b/examples/kits/thumbs/industrial-pipe-fitting.webp differ diff --git a/examples/kits/thumbs/industrial-pipe-run-v1.webp b/examples/kits/thumbs/industrial-pipe-run-v1.webp index bfac115a..1a01a0e2 100644 Binary files a/examples/kits/thumbs/industrial-pipe-run-v1.webp and b/examples/kits/thumbs/industrial-pipe-run-v1.webp differ diff --git a/examples/kits/thumbs/industrial-pipe-run.webp b/examples/kits/thumbs/industrial-pipe-run.webp index 5f6e1b25..9e285ac5 100644 Binary files a/examples/kits/thumbs/industrial-pipe-run.webp and b/examples/kits/thumbs/industrial-pipe-run.webp differ diff --git a/examples/kits/thumbs/industrial-safety-barrier-v1.webp b/examples/kits/thumbs/industrial-safety-barrier-v1.webp index 0e8c36bd..3ccd4ac9 100644 Binary files a/examples/kits/thumbs/industrial-safety-barrier-v1.webp and b/examples/kits/thumbs/industrial-safety-barrier-v1.webp differ diff --git a/examples/kits/thumbs/industrial-safety-barrier.webp b/examples/kits/thumbs/industrial-safety-barrier.webp index c581f84f..82e72865 100644 Binary files a/examples/kits/thumbs/industrial-safety-barrier.webp and b/examples/kits/thumbs/industrial-safety-barrier.webp differ diff --git a/examples/kits/thumbs/industrial-storage-tank-v1.webp b/examples/kits/thumbs/industrial-storage-tank-v1.webp index 73d88cd1..ac63cb12 100644 Binary files a/examples/kits/thumbs/industrial-storage-tank-v1.webp and b/examples/kits/thumbs/industrial-storage-tank-v1.webp differ diff --git a/examples/kits/thumbs/industrial-storage-tank-v2.webp b/examples/kits/thumbs/industrial-storage-tank-v2.webp index 8a6abc1c..dda5bf29 100644 Binary files a/examples/kits/thumbs/industrial-storage-tank-v2.webp and b/examples/kits/thumbs/industrial-storage-tank-v2.webp differ diff --git a/examples/kits/thumbs/industrial-storage-tank-v3.webp b/examples/kits/thumbs/industrial-storage-tank-v3.webp index ebdce942..27eabeb4 100644 Binary files a/examples/kits/thumbs/industrial-storage-tank-v3.webp and b/examples/kits/thumbs/industrial-storage-tank-v3.webp differ diff --git a/examples/kits/thumbs/industrial-storage-tank.webp b/examples/kits/thumbs/industrial-storage-tank.webp index 7cc1009a..b2cc8109 100644 Binary files a/examples/kits/thumbs/industrial-storage-tank.webp and b/examples/kits/thumbs/industrial-storage-tank.webp differ diff --git a/examples/kits/thumbs/industrial-valve-v1.webp b/examples/kits/thumbs/industrial-valve-v1.webp index a306e871..7a965f58 100644 Binary files a/examples/kits/thumbs/industrial-valve-v1.webp and b/examples/kits/thumbs/industrial-valve-v1.webp differ diff --git a/examples/kits/thumbs/industrial-valve-v2.webp b/examples/kits/thumbs/industrial-valve-v2.webp index 49665707..d2def311 100644 Binary files a/examples/kits/thumbs/industrial-valve-v2.webp and b/examples/kits/thumbs/industrial-valve-v2.webp differ diff --git a/examples/kits/thumbs/industrial-valve-v3.webp b/examples/kits/thumbs/industrial-valve-v3.webp index f9aafcdd..c82d1385 100644 Binary files a/examples/kits/thumbs/industrial-valve-v3.webp and b/examples/kits/thumbs/industrial-valve-v3.webp differ diff --git a/examples/kits/thumbs/industrial-valve-v4.webp b/examples/kits/thumbs/industrial-valve-v4.webp index fddf4f8d..986ca0c1 100644 Binary files a/examples/kits/thumbs/industrial-valve-v4.webp and b/examples/kits/thumbs/industrial-valve-v4.webp differ diff --git a/examples/kits/thumbs/industrial-valve.webp b/examples/kits/thumbs/industrial-valve.webp index a18c3df4..5b6c5d7e 100644 Binary files a/examples/kits/thumbs/industrial-valve.webp and b/examples/kits/thumbs/industrial-valve.webp differ diff --git a/examples/kits/thumbs/mechanical-bearing-v1.webp b/examples/kits/thumbs/mechanical-bearing-v1.webp index cca2fb13..0e87b665 100644 Binary files a/examples/kits/thumbs/mechanical-bearing-v1.webp and b/examples/kits/thumbs/mechanical-bearing-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-bearing.webp b/examples/kits/thumbs/mechanical-bearing.webp index 12b53444..ebedd3b8 100644 Binary files a/examples/kits/thumbs/mechanical-bearing.webp and b/examples/kits/thumbs/mechanical-bearing.webp differ diff --git a/examples/kits/thumbs/mechanical-bevel-gear-v1.webp b/examples/kits/thumbs/mechanical-bevel-gear-v1.webp index 260de3cd..ad9d735f 100644 Binary files a/examples/kits/thumbs/mechanical-bevel-gear-v1.webp and b/examples/kits/thumbs/mechanical-bevel-gear-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-bevel-gear.webp b/examples/kits/thumbs/mechanical-bevel-gear.webp index 00e7aac3..b5e79843 100644 Binary files a/examples/kits/thumbs/mechanical-bevel-gear.webp and b/examples/kits/thumbs/mechanical-bevel-gear.webp differ diff --git a/examples/kits/thumbs/mechanical-bolt-v1.webp b/examples/kits/thumbs/mechanical-bolt-v1.webp index be7e1c34..55d8a9ec 100644 Binary files a/examples/kits/thumbs/mechanical-bolt-v1.webp and b/examples/kits/thumbs/mechanical-bolt-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-bolt-v2.webp b/examples/kits/thumbs/mechanical-bolt-v2.webp index 2b231850..3989590c 100644 Binary files a/examples/kits/thumbs/mechanical-bolt-v2.webp and b/examples/kits/thumbs/mechanical-bolt-v2.webp differ diff --git a/examples/kits/thumbs/mechanical-bolt.webp b/examples/kits/thumbs/mechanical-bolt.webp index 35361bf1..98581c23 100644 Binary files a/examples/kits/thumbs/mechanical-bolt.webp and b/examples/kits/thumbs/mechanical-bolt.webp differ diff --git a/examples/kits/thumbs/mechanical-flange-plate-v1.webp b/examples/kits/thumbs/mechanical-flange-plate-v1.webp index 4a2585c5..42685704 100644 Binary files a/examples/kits/thumbs/mechanical-flange-plate-v1.webp and b/examples/kits/thumbs/mechanical-flange-plate-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-flange-plate.webp b/examples/kits/thumbs/mechanical-flange-plate.webp index 3e26468b..253179f0 100644 Binary files a/examples/kits/thumbs/mechanical-flange-plate.webp and b/examples/kits/thumbs/mechanical-flange-plate.webp differ diff --git a/examples/kits/thumbs/mechanical-helical-spring-v1.webp b/examples/kits/thumbs/mechanical-helical-spring-v1.webp index c33cf6ed..e2d070f6 100644 Binary files a/examples/kits/thumbs/mechanical-helical-spring-v1.webp and b/examples/kits/thumbs/mechanical-helical-spring-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-helical-spring.webp b/examples/kits/thumbs/mechanical-helical-spring.webp index acce7d80..2e6c3b41 100644 Binary files a/examples/kits/thumbs/mechanical-helical-spring.webp and b/examples/kits/thumbs/mechanical-helical-spring.webp differ diff --git a/examples/kits/thumbs/mechanical-internal-ring-gear-v1.webp b/examples/kits/thumbs/mechanical-internal-ring-gear-v1.webp index d107d37e..91d8be3b 100644 Binary files a/examples/kits/thumbs/mechanical-internal-ring-gear-v1.webp and b/examples/kits/thumbs/mechanical-internal-ring-gear-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-internal-ring-gear.webp b/examples/kits/thumbs/mechanical-internal-ring-gear.webp index 83c37dd8..bc660adc 100644 Binary files a/examples/kits/thumbs/mechanical-internal-ring-gear.webp and b/examples/kits/thumbs/mechanical-internal-ring-gear.webp differ diff --git a/examples/kits/thumbs/mechanical-nut-v1.webp b/examples/kits/thumbs/mechanical-nut-v1.webp index b496bcfd..8746e66c 100644 Binary files a/examples/kits/thumbs/mechanical-nut-v1.webp and b/examples/kits/thumbs/mechanical-nut-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-nut-v2.webp b/examples/kits/thumbs/mechanical-nut-v2.webp index b5374247..ba2492d9 100644 Binary files a/examples/kits/thumbs/mechanical-nut-v2.webp and b/examples/kits/thumbs/mechanical-nut-v2.webp differ diff --git a/examples/kits/thumbs/mechanical-nut.webp b/examples/kits/thumbs/mechanical-nut.webp index 21578ca5..20d67069 100644 Binary files a/examples/kits/thumbs/mechanical-nut.webp and b/examples/kits/thumbs/mechanical-nut.webp differ diff --git a/examples/kits/thumbs/mechanical-pillow-block.webp b/examples/kits/thumbs/mechanical-pillow-block.webp index 87fd0ed3..19476316 100644 Binary files a/examples/kits/thumbs/mechanical-pillow-block.webp and b/examples/kits/thumbs/mechanical-pillow-block.webp differ diff --git a/examples/kits/thumbs/mechanical-profile-extrusion-v1.webp b/examples/kits/thumbs/mechanical-profile-extrusion-v1.webp index e184fb69..0229fda1 100644 Binary files a/examples/kits/thumbs/mechanical-profile-extrusion-v1.webp and b/examples/kits/thumbs/mechanical-profile-extrusion-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-profile-extrusion-v2.webp b/examples/kits/thumbs/mechanical-profile-extrusion-v2.webp index 18ee346e..c43250bc 100644 Binary files a/examples/kits/thumbs/mechanical-profile-extrusion-v2.webp and b/examples/kits/thumbs/mechanical-profile-extrusion-v2.webp differ diff --git a/examples/kits/thumbs/mechanical-profile-extrusion-v3.webp b/examples/kits/thumbs/mechanical-profile-extrusion-v3.webp index af5e4be0..00aed1c9 100644 Binary files a/examples/kits/thumbs/mechanical-profile-extrusion-v3.webp and b/examples/kits/thumbs/mechanical-profile-extrusion-v3.webp differ diff --git a/examples/kits/thumbs/mechanical-profile-extrusion-v4.webp b/examples/kits/thumbs/mechanical-profile-extrusion-v4.webp index 1a3b1ba4..76ad2f41 100644 Binary files a/examples/kits/thumbs/mechanical-profile-extrusion-v4.webp and b/examples/kits/thumbs/mechanical-profile-extrusion-v4.webp differ diff --git a/examples/kits/thumbs/mechanical-profile-extrusion.webp b/examples/kits/thumbs/mechanical-profile-extrusion.webp index 94e292b8..eb8c2430 100644 Binary files a/examples/kits/thumbs/mechanical-profile-extrusion.webp and b/examples/kits/thumbs/mechanical-profile-extrusion.webp differ diff --git a/examples/kits/thumbs/mechanical-pulley-v1.webp b/examples/kits/thumbs/mechanical-pulley-v1.webp index 77be1b1d..e0ff23a7 100644 Binary files a/examples/kits/thumbs/mechanical-pulley-v1.webp and b/examples/kits/thumbs/mechanical-pulley-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-pulley-v2.webp b/examples/kits/thumbs/mechanical-pulley-v2.webp index b2b6d25a..1467a31d 100644 Binary files a/examples/kits/thumbs/mechanical-pulley-v2.webp and b/examples/kits/thumbs/mechanical-pulley-v2.webp differ diff --git a/examples/kits/thumbs/mechanical-pulley.webp b/examples/kits/thumbs/mechanical-pulley.webp index 53221619..d399db3f 100644 Binary files a/examples/kits/thumbs/mechanical-pulley.webp and b/examples/kits/thumbs/mechanical-pulley.webp differ diff --git a/examples/kits/thumbs/mechanical-rack-v1.webp b/examples/kits/thumbs/mechanical-rack-v1.webp index a30c6a13..1b4287bc 100644 Binary files a/examples/kits/thumbs/mechanical-rack-v1.webp and b/examples/kits/thumbs/mechanical-rack-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-rack.webp b/examples/kits/thumbs/mechanical-rack.webp index b931d1d6..4bb556f2 100644 Binary files a/examples/kits/thumbs/mechanical-rack.webp and b/examples/kits/thumbs/mechanical-rack.webp differ diff --git a/examples/kits/thumbs/mechanical-shaft-coupler-v1.webp b/examples/kits/thumbs/mechanical-shaft-coupler-v1.webp index 250f9717..85390a57 100644 Binary files a/examples/kits/thumbs/mechanical-shaft-coupler-v1.webp and b/examples/kits/thumbs/mechanical-shaft-coupler-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-shaft-coupler.webp b/examples/kits/thumbs/mechanical-shaft-coupler.webp index a80a3e6e..7a1667b7 100644 Binary files a/examples/kits/thumbs/mechanical-shaft-coupler.webp and b/examples/kits/thumbs/mechanical-shaft-coupler.webp differ diff --git a/examples/kits/thumbs/mechanical-shaft-v1.webp b/examples/kits/thumbs/mechanical-shaft-v1.webp index e28ae2fb..41c10653 100644 Binary files a/examples/kits/thumbs/mechanical-shaft-v1.webp and b/examples/kits/thumbs/mechanical-shaft-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-shaft.webp b/examples/kits/thumbs/mechanical-shaft.webp index 2d1d9629..ce90744c 100644 Binary files a/examples/kits/thumbs/mechanical-shaft.webp and b/examples/kits/thumbs/mechanical-shaft.webp differ diff --git a/examples/kits/thumbs/mechanical-spur-gear-v1.webp b/examples/kits/thumbs/mechanical-spur-gear-v1.webp index 47435ec1..e9c004d3 100644 Binary files a/examples/kits/thumbs/mechanical-spur-gear-v1.webp and b/examples/kits/thumbs/mechanical-spur-gear-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-spur-gear.webp b/examples/kits/thumbs/mechanical-spur-gear.webp index a1f39063..8d2cd102 100644 Binary files a/examples/kits/thumbs/mechanical-spur-gear.webp and b/examples/kits/thumbs/mechanical-spur-gear.webp differ diff --git a/examples/kits/thumbs/mechanical-washer-v1.webp b/examples/kits/thumbs/mechanical-washer-v1.webp index abb72f4a..44a0d3d6 100644 Binary files a/examples/kits/thumbs/mechanical-washer-v1.webp and b/examples/kits/thumbs/mechanical-washer-v1.webp differ diff --git a/examples/kits/thumbs/mechanical-washer.webp b/examples/kits/thumbs/mechanical-washer.webp index f29203ae..dc3ffbff 100644 Binary files a/examples/kits/thumbs/mechanical-washer.webp and b/examples/kits/thumbs/mechanical-washer.webp differ diff --git a/examples/kits/thumbs/science-angle-arc-v1.webp b/examples/kits/thumbs/science-angle-arc-v1.webp index 91f0b7d6..59d16af4 100644 Binary files a/examples/kits/thumbs/science-angle-arc-v1.webp and b/examples/kits/thumbs/science-angle-arc-v1.webp differ diff --git a/examples/kits/thumbs/science-angle-arc.webp b/examples/kits/thumbs/science-angle-arc.webp index 5466c475..68a4e1d9 100644 Binary files a/examples/kits/thumbs/science-angle-arc.webp and b/examples/kits/thumbs/science-angle-arc.webp differ diff --git a/examples/kits/thumbs/science-atomic-orbital-v1.webp b/examples/kits/thumbs/science-atomic-orbital-v1.webp index eeea8287..88c309e7 100644 Binary files a/examples/kits/thumbs/science-atomic-orbital-v1.webp and b/examples/kits/thumbs/science-atomic-orbital-v1.webp differ diff --git a/examples/kits/thumbs/science-atomic-orbital-v2.webp b/examples/kits/thumbs/science-atomic-orbital-v2.webp index fb7b99a9..d91f5fb1 100644 Binary files a/examples/kits/thumbs/science-atomic-orbital-v2.webp and b/examples/kits/thumbs/science-atomic-orbital-v2.webp differ diff --git a/examples/kits/thumbs/science-atomic-orbital.webp b/examples/kits/thumbs/science-atomic-orbital.webp index 25861c8d..68f817b9 100644 Binary files a/examples/kits/thumbs/science-atomic-orbital.webp and b/examples/kits/thumbs/science-atomic-orbital.webp differ diff --git a/examples/kits/thumbs/science-axes-3d-v1.webp b/examples/kits/thumbs/science-axes-3d-v1.webp index 247b2093..73d2d0d7 100644 Binary files a/examples/kits/thumbs/science-axes-3d-v1.webp and b/examples/kits/thumbs/science-axes-3d-v1.webp differ diff --git a/examples/kits/thumbs/science-axes-3d.webp b/examples/kits/thumbs/science-axes-3d.webp index 553cd58e..5c6fb6fa 100644 Binary files a/examples/kits/thumbs/science-axes-3d.webp and b/examples/kits/thumbs/science-axes-3d.webp differ diff --git a/examples/kits/thumbs/science-crystal-lattice-v1.webp b/examples/kits/thumbs/science-crystal-lattice-v1.webp index aafd447f..341ac213 100644 Binary files a/examples/kits/thumbs/science-crystal-lattice-v1.webp and b/examples/kits/thumbs/science-crystal-lattice-v1.webp differ diff --git a/examples/kits/thumbs/science-crystal-lattice-v2.webp b/examples/kits/thumbs/science-crystal-lattice-v2.webp index c27122c7..59ac26e4 100644 Binary files a/examples/kits/thumbs/science-crystal-lattice-v2.webp and b/examples/kits/thumbs/science-crystal-lattice-v2.webp differ diff --git a/examples/kits/thumbs/science-crystal-lattice-v3.webp b/examples/kits/thumbs/science-crystal-lattice-v3.webp index d7bb0937..36c27b0a 100644 Binary files a/examples/kits/thumbs/science-crystal-lattice-v3.webp and b/examples/kits/thumbs/science-crystal-lattice-v3.webp differ diff --git a/examples/kits/thumbs/science-crystal-lattice.webp b/examples/kits/thumbs/science-crystal-lattice.webp index 23ace00a..d8a3efca 100644 Binary files a/examples/kits/thumbs/science-crystal-lattice.webp and b/examples/kits/thumbs/science-crystal-lattice.webp differ diff --git a/examples/kits/thumbs/science-dashed-line-v1.webp b/examples/kits/thumbs/science-dashed-line-v1.webp index 68368614..2267815c 100644 Binary files a/examples/kits/thumbs/science-dashed-line-v1.webp and b/examples/kits/thumbs/science-dashed-line-v1.webp differ diff --git a/examples/kits/thumbs/science-dashed-line.webp b/examples/kits/thumbs/science-dashed-line.webp index b5b9e534..059b55e6 100644 Binary files a/examples/kits/thumbs/science-dashed-line.webp and b/examples/kits/thumbs/science-dashed-line.webp differ diff --git a/examples/kits/thumbs/science-double-helix.webp b/examples/kits/thumbs/science-double-helix.webp index 30d6356b..65e5e216 100644 Binary files a/examples/kits/thumbs/science-double-helix.webp and b/examples/kits/thumbs/science-double-helix.webp differ diff --git a/examples/kits/thumbs/science-isosurface-v1.webp b/examples/kits/thumbs/science-isosurface-v1.webp index a4398c57..684787ef 100644 Binary files a/examples/kits/thumbs/science-isosurface-v1.webp and b/examples/kits/thumbs/science-isosurface-v1.webp differ diff --git a/examples/kits/thumbs/science-isosurface-v2.webp b/examples/kits/thumbs/science-isosurface-v2.webp index cd5150ad..af072f58 100644 Binary files a/examples/kits/thumbs/science-isosurface-v2.webp and b/examples/kits/thumbs/science-isosurface-v2.webp differ diff --git a/examples/kits/thumbs/science-isosurface.webp b/examples/kits/thumbs/science-isosurface.webp index 106abf0c..f084029c 100644 Binary files a/examples/kits/thumbs/science-isosurface.webp and b/examples/kits/thumbs/science-isosurface.webp differ diff --git a/examples/kits/thumbs/science-molecule-v1.webp b/examples/kits/thumbs/science-molecule-v1.webp index 0bf96ade..f2f39df7 100644 Binary files a/examples/kits/thumbs/science-molecule-v1.webp and b/examples/kits/thumbs/science-molecule-v1.webp differ diff --git a/examples/kits/thumbs/science-molecule-v2.webp b/examples/kits/thumbs/science-molecule-v2.webp index bd64d01e..5c6a193d 100644 Binary files a/examples/kits/thumbs/science-molecule-v2.webp and b/examples/kits/thumbs/science-molecule-v2.webp differ diff --git a/examples/kits/thumbs/science-molecule.webp b/examples/kits/thumbs/science-molecule.webp index 0b801641..14618c19 100644 Binary files a/examples/kits/thumbs/science-molecule.webp and b/examples/kits/thumbs/science-molecule.webp differ diff --git a/examples/kits/thumbs/science-optical-element-v1.webp b/examples/kits/thumbs/science-optical-element-v1.webp index 33908a04..b76278b4 100644 Binary files a/examples/kits/thumbs/science-optical-element-v1.webp and b/examples/kits/thumbs/science-optical-element-v1.webp differ diff --git a/examples/kits/thumbs/science-optical-element.webp b/examples/kits/thumbs/science-optical-element.webp index 209894db..249ea27a 100644 Binary files a/examples/kits/thumbs/science-optical-element.webp and b/examples/kits/thumbs/science-optical-element.webp differ diff --git a/examples/kits/thumbs/science-parametric-surface-v1.webp b/examples/kits/thumbs/science-parametric-surface-v1.webp index 209e7ff1..4081bc9a 100644 Binary files a/examples/kits/thumbs/science-parametric-surface-v1.webp and b/examples/kits/thumbs/science-parametric-surface-v1.webp differ diff --git a/examples/kits/thumbs/science-parametric-surface.webp b/examples/kits/thumbs/science-parametric-surface.webp index ebea9e2c..1a0806af 100644 Binary files a/examples/kits/thumbs/science-parametric-surface.webp and b/examples/kits/thumbs/science-parametric-surface.webp differ diff --git a/examples/kits/thumbs/science-ribbon-v1.webp b/examples/kits/thumbs/science-ribbon-v1.webp index cc1ddb69..42eab432 100644 Binary files a/examples/kits/thumbs/science-ribbon-v1.webp and b/examples/kits/thumbs/science-ribbon-v1.webp differ diff --git a/examples/kits/thumbs/science-ribbon.webp b/examples/kits/thumbs/science-ribbon.webp index 8d77ecc1..14e83a04 100644 Binary files a/examples/kits/thumbs/science-ribbon.webp and b/examples/kits/thumbs/science-ribbon.webp differ diff --git a/examples/kits/thumbs/science-streamline-v1.webp b/examples/kits/thumbs/science-streamline-v1.webp index 9203ca01..edcf2cc2 100644 Binary files a/examples/kits/thumbs/science-streamline-v1.webp and b/examples/kits/thumbs/science-streamline-v1.webp differ diff --git a/examples/kits/thumbs/science-streamline.webp b/examples/kits/thumbs/science-streamline.webp index 84cb2466..31a4eae2 100644 Binary files a/examples/kits/thumbs/science-streamline.webp and b/examples/kits/thumbs/science-streamline.webp differ diff --git a/examples/kits/thumbs/science-surface-plot-v1.webp b/examples/kits/thumbs/science-surface-plot-v1.webp index 27bd54c0..77c1500a 100644 Binary files a/examples/kits/thumbs/science-surface-plot-v1.webp and b/examples/kits/thumbs/science-surface-plot-v1.webp differ diff --git a/examples/kits/thumbs/science-surface-plot.webp b/examples/kits/thumbs/science-surface-plot.webp index 118341fc..cde97a15 100644 Binary files a/examples/kits/thumbs/science-surface-plot.webp and b/examples/kits/thumbs/science-surface-plot.webp differ diff --git a/examples/kits/thumbs/science-vector-field-v1.webp b/examples/kits/thumbs/science-vector-field-v1.webp index c8764e07..6cf317d9 100644 Binary files a/examples/kits/thumbs/science-vector-field-v1.webp and b/examples/kits/thumbs/science-vector-field-v1.webp differ diff --git a/examples/kits/thumbs/science-vector-field.webp b/examples/kits/thumbs/science-vector-field.webp index c51e349c..a42ac9c7 100644 Binary files a/examples/kits/thumbs/science-vector-field.webp and b/examples/kits/thumbs/science-vector-field.webp differ diff --git a/examples/llms-full.txt b/examples/llms-full.txt index e8572e65..91d66205 100644 --- a/examples/llms-full.txt +++ b/examples/llms-full.txt @@ -458,7 +458,7 @@ For scripts and RL harnesses, `three-live-cli gym play level.js` prints the (`{"actions": [...], "ticks": 30, "frame": "f.png"}`) and prints one observation (or `{"error": ...}`) per line, keeping state in memory. -### Diagnostic Code Summary (`TL100–TL402`) +### Diagnostic Code Summary (`TL100-TL606`) | Code | Category | Meaning & Fix | | :------ | :------- | :----------------------------------- | @@ -542,6 +542,23 @@ For scripts and RL harnesses, `three-live-cli gym play level.js` prints the : : : (`xr-hands`, `gemini-live`, : : : : `plugins`, `slot="spatial"`) placed : : : : on ``. : +| `TL601` | A11y | Foreground mesh luminance contrast | +: : : `< 3.0:1` (WCAG 2.1 SC 1.4.11) : +: : : against dark studio viewport. : +| `TL602` | A11y | 3D text / label contrast `< 4.5:1` | +: : : (WCAG 2.1 SC 1.4.3). : +| `TL603` | A11y | Interactive target covers `< 0.4%` | +: : : of viewport (`< 2.5°` XR visual : +: : : angle, WCAG 2.2 SC 2.5.8). : +| `TL604` | A11y | Interactive node missing descriptive | +: : : `mesh.name` or `userData.xr.label` : +: : : (`info` suggestion). : +| `TL605` | A11y | Continuous `orbit.speed > 2.5 rad/s` | +: : : or `follow.stiffness > 25` (`info` : +: : : vestibular comfort suggestion). : +| `TL606` | A11y | Interactive siblings of identical | +: : : size rely on red-green hue alone : +: : : (`info` CVD suggestion). : ================================================================================ SOURCE: skills/three-live-authoring/references/xr-traits-and-plugins.md @@ -1414,7 +1431,7 @@ Every procedural compilation (`toCanvas3D()`, `toGLB()`, `toUSDZ()`) runs `Scene -------------------------------------------------------------------------------- -## 5. Closed-Loop CLI Diagnostics (`TL100–TL402`), Headless Contact Sheets & Scenario Simulation +## 5. Closed-Loop CLI Diagnostics (`TL100-TL606`), Headless Contact Sheets & Scenario Simulation Use `three-live-cli` to verify `.js`, `.html`, and `.glb` scenes without a browser: @@ -1435,30 +1452,36 @@ three-live-cli sim scene.js --duration=5.0 \ --json ``` -### Diagnostic Code Table (`TL100–TL402`) - -Code | Severity | Condition | Actionable Fix -:------ | :-------- | :----------------------------------------------------------------- | :------------- -`TL100` | `error` | Syntax error, runtime exception, or quota exceeded | Check `line`/`column` in JSON output and fix JS syntax or reduce vertex/mesh count. -`TL101` | `warning` | `ShaderMaterial` / `RawShaderMaterial` fallback | Replace with `THREE.MeshStandardMaterial` or `THREE.MeshPhysicalMaterial`. -`TL102` | `warning` | Polyhedron/Tube geometry fallback | Use `SphereGeometry`, `CylinderGeometry`, `ExtrudeGeometry`, `LatheGeometry`, or `THREE.CSG`. -`TL103` | `warning` | `THREE.GLTFLoader` / `TextureLoader` / `fetch` | Load external `.glb` via `` or ``. -`TL104` | `info` | `requestAnimationFrame` in static export | Use `userData.xr.orbit` or `userData.interactivity` so motion survives `.glb`/`.usdz` export. -`TL105` | `warning` | Unknown `THREE.*` constructor/method | Remove unsupported Three.js helper call. -`TL201` | `warning` | Unknown `userData.xr` or `userData.interactivity` key | Apply the Levenshtein suggestion in `suggestion` (e.g. `grabbable` -> `grab`). -`TL202` | `warning` | Out-of-range numeric trait clamped | Keep `gaze.dwellMs` in `[200, 10000]`, `bloom.strength` in `[0, 5]`, `outline.thickness` in `[0.002, 0.25]`. -`TL203` | `error` | Unsafe media/live/room URL or anchor ID | Use `https://` (or clean relative paths) for media, `wss://` for relays, and alphanumeric anchor IDs. -`TL204` | `error` | Broken target node reference | Ensure `orbit.target`, `ik.*`, `spawner.template`, and `interactivity.*.target` match an existing `mesh.name`. -`TL205` | `warning` | Unnamed interactive/spatial mesh | Set a unique `mesh.name = "..."` before attaching `userData.xr` or `userData.interactivity`. -`TL301` | `error` | Empty scene (`meshCount == 0`) | Call `scene.add(mesh)` with at least one non-empty geometry. -`TL302` | `warning` | Camera inside mesh AABB | Move camera outside `summary.worldBounds` or shrink the enclosing mesh. -`TL303` | `warning` | Mesh outside camera frustum or extreme framing | Reposition the mesh or adjust camera `position` / `lookAt` so `screenCoveragePct` is between `5%` and `85%`. -`TL304` | `warning` | Extreme scene scale (`< 0.01 m` or `> 200 m`) | Author dimensions in meters (`1 unit = 1 meter`); scale millimeter meshes by `0.001`. -`TL305` | `warning` | Unlit metallic PBR material | Add a `DirectionalLight` / `AmbientLight` or set `environment` on ``. -`TL306` | `warning` | Co-located sibling meshes (`> 80%` overlap) | Offset sibling positions or use `THREE.CSG.subtract(a, b)` for boolean cutouts. -`TL307` | `info` | Floating or buried scene / character | Align `min.y` to `0.0` (`mesh.position.y = height / 2`) so AR/VR placement sits on the floor. -`TL401` | `error` | Inline `