- Split monolithic i18n.js into per-language files under js/i18n/
- Lazy-load translations via dynamic import() with caching
- Add French (fr) language support
- Add error handling in _loadLang with English fallback
- Remove duplicated lang.name from per-language files (registry is single source of truth)
- Add dev-time key validation (warns on localhost when keys are missing vs en.js)
- Add missing alerts.fileTooLarge key from main to all language files
- Await async initLang() in main.js (supported by type=module)
- Added a language dropdown selector to replace the previous button-based language toggle.
- Integrated boundary falloff settings into the preview material, allowing for smoother transitions between masked and unmasked areas.
- Updated shaders to utilize boundary falloff attributes for improved visual fidelity in bump-only previews.
- Refactored related CSS styles for the new dropdown and adjusted layout for better usability.
- Introduced new functions for computing boundary attributes and managing edge data textures.
- Remove flat-shaded MeshLambertMaterial overlay that was covering the
custom shader output on user-masked faces (root cause of static shading)
- Pass smooth interpolated normal (vSmoothNormal) to fragment shader and
blend toward it on masked faces so they get smooth view-dependent
lighting instead of flat per-face shading
- Brighten user-mask color to warm orange (0.85, 0.40, 0.15) for better
visibility of lighting variation on masked surfaces
- Shader now handles all mask visualization consistently: exclude mode
(orange), include-only mode (orange for unselected), and angle mask
(grey) all receive identical smooth shading
- Track whether each boundary is from user masking or angle masking
via a new boundaryMaskTypeAttr vertex attribute (0=user, 1=angle)
- Pass vUserMask and vMaskType varyings to the fragment shader
- Use consistent teal base color for all surfaces so lighting is
uniform across masked and textured areas (fixes dark halo artifact)
- Tint the falloff gradient warm red-orange near user-painted masks
and neutral grey near angle-masked boundaries
Boundary vertices (shared between masked and unmasked faces) were
skipped during falloff computation, keeping their falloffAttr at 1.0.
This created a ring of full-intensity texture at the mask border before
the falloff gradient started. Now these vertices correctly get factor 0
(distance to boundary = 0), matching the export behavior.
Round 2 of performance and correctness improvements:
- Spatial grid index for brush painting: forEachTriInSphere now queries
only nearby grid cells instead of scanning all triangles. ~5.7x faster
for brush operations on 68k+ tri meshes.
- Decimation overflow fix: hasLinkViolation used a fixed 0x200000
multiplier for vertex-pair keys, overflowing at >2M vertices.
Now uses dynamic multiplier based on actual vertex count.
- Decimation determinant threshold: solveQ used absolute 1e-10 which
fails for large coordinates. Now relative to matrix element magnitude.
- 3MF triangle index validation: bounds-check all parsed indices against
vertex count, throw clear error on corrupt files instead of silent NaN.
- File size limit: reject files >500 MB before loading into memory,
prevents browser tab crash on oversized files.
- Accessibility: preset swatches now keyboard-navigable (role=button,
tabindex=0, Enter/Space to select). Modal dialogs trap focus and
close on Escape.
- Ctrl+click straight line tool: click to set start point, Ctrl+click
to paint a straight line between points. Ctrl+hover shows preview.
- Precision masking available for radius brush mode.
- Spatial grid rebuilt when entering/leaving precision mode.
- Render loop now only calls renderer.render() when the scene actually
changed (needsRender flag + requestRender export). Idle GPU usage
drops to near zero.
- Disabled shadow map (no receiver in scene, wasted a full render pass).
- Reuse overlay materials instead of creating new ones every paint frame.
- Dispose CanvasTexture in getEffectiveMapEntry (VRAM leak on every
slider change).
- Dispose axes/dimension geometry on model reload.
- Reuse Vector3/Quaternion temp objects in pointer/touch/wheel handlers
instead of allocating ~10 objects per mouse event.
- RAF-batch mousemove for hover/cursor, keep paint events immediate.
- Reuse faceMask buffer attribute when size matches.
- Cache getEffectiveMapEntry result (skip canvas tiling+blur when
texture and smoothing haven't changed).
- addSmoothNormals: same dedup+flat-array approach as displacement.
- Added stripes.png and stripes_02.png with metadata from Adobe Photoshop.
- Included two new woodgrain textures (woodgrain_02.jpg and woodgrain_03.jpg) for enhanced visual variety.
- Renamed "Surface Mask" section to "Mask Angles" for clarity in index.html.
- Updated translation keys and tooltips to reflect the new terminology in i18n.js.
- Removed the erase toggle button from the exclusion panel and implemented Shift key functionality to toggle erase mode in main.js.
- Adjusted brush radius handling to improve user experience and updated related UI elements in index.html.
- Enhanced the subdivision process to track original face IDs for better masking accuracy in subdivision.js.
- Added CSS styles for new UI elements and improved layout in style.css.