Skip to content

Add landing page, animated background, light mode viewer, file picker… - #75

Merged
devaraj3 merged 3 commits into
mainfrom
feature/landing-page-performance
May 17, 2026
Merged

Add landing page, animated background, light mode viewer, file picker…#75
devaraj3 merged 3 commits into
mainfrom
feature/landing-page-performance

Conversation

@devaraj3

Copy link
Copy Markdown
Owner

What this PR does

Landing page

  • New landing page at / with animated grid background and scan effect
  • "Upload CAD File" button opens file picker directly — no double-click needed
  • Drag-and-drop from landing page navigates to viewer with file pre-loaded
  • Animated background: flat 2D grid with blue scan light sweeping top-to-bottom

CAD Viewer

  • Viewer switched to light mode (grey canvas background, light toolbar)
  • Drag-and-drop works directly on the viewer canvas too
  • Custom loading overlay with file name, size, stage label, and progress bar

Performance

  • Render-on-demand: GPU no longer renders at 60fps when camera is still
  • three-mesh-bvh: fast raycasting for measurements on large meshes
  • Geometry merging: draw calls reduced from thousands to single digits
  • Adaptive tessellation: large files use coarser mesh for faster load
  • IndexedDB cache: same file loads instantly on second open (no retessellation)
  • Progressive rendering: assembly parts appear one-by-one as they tessellate

Routing

  • React Router wired: / → Landing, /viewer → Viewer, * → 404
  • fileStore module passes dropped/picked file across route navigation

… CTA, progress loader, BVH performance, geometry cache
@vercel

vercel Bot commented May 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cad-viewer Ready Ready Preview, Comment May 17, 2026 11:08am

@devaraj3
devaraj3 merged commit fdfc174 into main May 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant