Support #12328
openAR try on Feature acuracy enhancement
Added by Ajit A 4 days ago. Updated 3 days ago.
Subtasks
Related issues
Updated by Ajit A 4 days ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
Bug: Guidance pill ("✨ Touch & drag jewelry on screen to custom-fit") failing to display on tracking lock Fix: Relocated guidance pill from an absolute layout position (top-[84px]) that collided behind header controls directly into the top bar center flex stack underneath the live status pill. Initialized showDragHint to true, removed blocking flags, expanded the header column width constraint from max-w-[65%] to max-w-[85%], and implemented a clean 20-second display timeout with an explicit dismiss button.
Bug: Real-time dragging HUD card displaying off-center and getting cut off on mobile viewports Fix: Replaced bulky rectangular modal card with an ultra-compact ~32px pill (Crosshair, live offset readout, and state badge). Replaced conflicting CSS animation transforms (fade-in-up overwriting translateX(50%)) with pure Flexbox centering (inset-x-0 top[20%] flex justify-center), ensuring zero transform collisions and keeping the customer's face, neck, and earrings completely unobstructed during adjustment.
Bug: Earring initial render floating in mid-air far outside the ears and drifting onto the cheek during head rotation Fix: Recalibrated tragus-to-earlobe drop distance to anatomical ratios (Math.max(leftTragusToChin * 0.11, faceH * 0.055, eyeSpan * 0.11)) and lateral outward offset to Math.max(eyeSpan * 0.045, faceH * 0.022) (~13.5px vs previous ~72px). Introduced a dynamic screen-space yaw boost (absYaw * eyeSpan * 0.04) to smoothly follow the 3D skull profile when turning sideways, and corrected mirrored screen-space yaw occlusion logic to fade the far ear behind the cranium.
Bug: Fine-tune calibration offsets leaking across different catalog products Fix: Isolated persistent fit preferences in localStorage under product-specific keys (noxa_ar_user_fit_${productId}). When navigating to a new jewelry piece without prior user adjustments, try-on initializes with a pristine AI auto-fit baseline (spacing: 1.0, earringY: 0, scale: 1.0). Updated the reset control to clear both generic and product-keyed overrides.
Feature: Dual-zone touch-and-drag calibration for Complete Set, Necklace, and Earrings Fix: Implemented smart pointer capture in components/VirtualTryOn.tsx with normalized coordinate zoning. Touching the central collar/chest region adjusts necklace drape height (necklaceYOffset), while touching outer quadrants adjusts earring piercing height (earringYOffset) and lateral lobule spacing (earringSpacing).
Feature: 3D cranial coordinate projection for custom earring piercing offsets Fix: In lib/ar/renderer.ts, user adjustments are projected through the 2D cranial rotation matrix (cos(R), sin(R)). Custom piercing shifts remain locked to cranial axes across head roll, pitch, and yaw without drifting off the earlobe.
Issue: Image preloader failures on remote CORS assets and Next.js proxy timeouts Fix: Enhanced preloadImage and getCachedImage in lib/ar/renderer.ts with bidirectional fallback handling. If direct cross-origin fetching fails, it automatically retries via the /proxy-image API; if the proxy fails, it falls back to direct source loading without crossOrigin blocking.
Issue: Necklace snapping when shoulders enter or leave the camera frame Fix: Replaced hard binary pose switching in lib/ar/anchors.ts with a continuous hysteresis confidence blend (clamp01((confidence - 0.20) / 0.40)). Suprasternal notch alignment and chest width transition seamlessly between full-body pose landmarks and facial anatomical fallbacks.
Repository: c:\Suthra\Noxa\Noxa_E_Comm_Fe
components/VirtualTryOn.tsx:
Added dual-zone interactive drag-to-fit handlers for necklace drape and earrings.
Embedded discoverability guidance pill into top-bar center flex stack with 20s auto-dismiss.
Implemented ultra-compact, non-obstructive live drag HUD at top-[20%].
Added per-product fit persistence (noxa_ar_user_fit_${productId}).
Added earring piercing height & spacing sliders plus necklace nudge controls.
lib/ar/anchors.ts:
Recalibrated anatomical tragus-to-earlobe drop (~33px) and lateral outward spacing (~13.5px).
Added screen-space dynamic yaw boost and corrected mirrored yaw ear occlusion.
Added smooth pose-to-face shoulder blending for necklace collar anchoring.
lib/ar/renderer.ts:
Projected custom user offsets onto 3D cranial rotation axes (cranialDeltaX, cranialDeltaY).
Added bidirectional retry fallback for remote catalog images and proxy URLs.
Added WebKit safety check for ctx.filter.
lib/hooks/useARSession.ts:
Added earringYOffset parameter passing to renderOptsRef and drawJewelry.
lib/types/ar.ts:
Added optional model3d_url and earringModel3dUrl fields to JewelryAsset.
package.json & package-lock.json:
Added three and @types/three packages.
lib/ar/threeRenderer.ts (untracked):
Scaffolding for Phase 2 Three.js WebGL hybrid rendering pipeline.
Updated by Ajit A 3 days ago
- % Done changed from 50 to 100
Bug: Bangle AR virtual try-on renders parallel along the forearm axis and flickers rapidly Fix: Resolved the orthogonal tilt by implementing auto-detection of vertical catalog cutouts (rawAspect > 0.85) in renderer.ts, applying a
−
90
∘
−90
∘
rotation so the bangle arch encircles the wrist crease. Replaced stepped front/back asset switching with an eased cosine cross-fade over the
0.35
≤
facingRatio
≤
0.65
0.35≤facingRatio≤0.65 transition deadband to eliminate rapid frame flickering. Integrated temporal tracking-loss buffering (350ms hold, 500ms decay) in useARSession.ts.
Bug: ReferenceError crash on navigating to Virtual Try-On Studio Fix: Hoisted getCategoryType helper function in components/try-on/TryOnStudio.tsx to module level, eliminating the temporal dead zone error during component initialization.
Bug: Catalog piece count mismatch between Home AR Mirror banner and Studio Fix: Synchronized filtering logic in HomeVirtualTryOnBanner.tsx and TryOnStudio.tsx to strictly include products with valid arImage, arEarringImage, or arBangleFrontImage assets, presenting an identical, verified 5-piece AR catalog across both views.
Bug: Fixed navigation header overlapping content on mobile collection and custom design pages Fix: Increased mobile top padding to pt-[190px] in app/collections/[slug]/page.tsx and components/custom-design/ShareDesignForm.tsx, clearing the expanded mobile header.
Feature: Touch-and-drag custom positioning for bangle virtual try-on Fix: Integrated full pointer touch-and-drag calibration layer in components/VirtualTryOn.tsx for bangle and bracelet categories, allowing users to slide bangles along the forearm axis and adjust rotation in real time with golden HUD coordinate indicators.
Feature: Luxury brand loader animation system replacing generic skeleton loaders Fix: Created reusable components/ui/loaders/LuxuryLoader.tsx with signature brand gold color palette and scalable sizes (xs, sm, md, lg). Replaced generic pulse skeleton loaders across blogs, cart, checkout, orders, wishlist, search modals, and product grids.
Feature: Horizontal scroll and progress counter for Featured Collections section Fix: Re-architected components/product/FeaturedCollections.tsx with smooth touch scrolling, expanded card heights for mobile viewports, and an animated progress bar featuring a 01 to N counter.
Issue: Add drag-and-drop reordering for visual media and product images in admin portal Fix: Implemented HTML5 drag-and-drop handlers in MultipleVisualUpload.tsx and CreateProduct.tsx in Noxa-Jewellery-fe, featuring GripVertical visual grab handles, live drop targets, cover badge indicators, and toast notification confirmations.
File Changes Summary
Repository: Noxa-Jewellery-be
No changes (working directory clean).
Repository: Noxa-Jewellery-fe
Modified:
src/components/MultipleVisualUpload.tsx — Added drag-and-drop reordering for product videos and GIFs with drag handles and notifications.
src/pages/products/CreateProduct.tsx — Added drag-and-drop reordering for product gallery images with cover position badges.
Repository: Noxa_E_Comm_Fe
Added (Untracked):
components/ui/loaders/LuxuryLoader.tsx — Custom luxury brand gold ring spinner component.
Modified:
app/blogs/[slug]/page.tsx — Replaced pulse skeleton with SectionLoader.
app/blogs/page.tsx — Replaced pulse skeleton with SectionLoader.
app/checkout/upi-payment/page.tsx — Integrated LuxuryLoader for suspense fallback.
app/collections/[slug]/page.tsx — Fixed mobile header clearance padding (pt-[190px]).
components/VirtualTryOn.tsx — Added touch-and-drag calibration for bangles, category mapping, and wrist status indicators.
components/cart/CartContent.tsx — Integrated LuxuryLoader for item quantity and removal actions; standardized product image fit.
components/checkout/CheckoutContent.tsx — Replaced inline spinners with LuxuryLoader across address and billing forms.
components/custom-design/ShareDesignForm.tsx — Added mobile header offset padding (pt-[190px]).
components/home/Hero.tsx — Upgraded hero banner loading state to SectionLoader.
components/home/HomeLatestBlog.tsx — Upgraded blog section loader.
components/home/HomePromoSection.tsx — Optimized bottom padding on mobile screens.
components/home/HomeVirtualTryOnBanner.tsx — Widened layout columns, synchronized 5-piece AR catalog, and added bangle category detection.
components/home/Testimonials.tsx — Upgraded testimonials section loader.
components/orders/OrderDetailsContent.tsx — Integrated LuxuryLoader for payment retry actions.
components/orders/OrdersContent.tsx — Integrated LuxuryLoader for order retry actions.
components/product/FeaturedCollections.tsx — Increased mobile card height, added horizontal swipe interaction and progress indicator.
components/search/HeaderSearchBar.tsx — Integrated LuxuryLoader for live search dropdown.
components/search/SearchModal.tsx — Integrated LuxuryLoader for search dialog.
components/try-on/TryOnStudio.tsx — Hoisted getCategoryType to module scope and filtered AR catalog to active try-on pieces.
components/ui/loaders/ProductDetailsSkeleton.tsx — Modernized with SectionLoader.
components/ui/loaders/ProductSkeleton.tsx — Modernized with SectionLoader.
components/ui/loaders/ProductsListingSkeleton.tsx — Modernized with SectionLoader.
components/wishlist/WishlistContent.tsx — Modernized wishlist loading state with SectionLoader.
lib/ar/anchors.ts — Hand-pose direction fusion, fist-invariant metric wrist scaling, and Schmitt-trigger hysteresis.
lib/ar/renderer.ts — Automatic vertical ring orientation correction (
−
90
∘
−90
∘
) and cosine dual-asset cross-fading.
lib/hooks/useARSession.ts — Persistent OneEuro filters, temporal tracking-loss buffering, and memoized frame state updates.