Plan: Rewrite Auth 3D Scene to Match Hero Quality + Fix Layout
Context
The auth page 3D scene looks like a "first pass render" compared to the polished landing page hero scene. Root causes identified:
Material quality gap — Auth uses opaque meshStandardMaterial for network nodes (flat/matte look) while hero uses MeshTransmissionMaterial (glass with refraction, chromatic aberration, depth). Auth's glass objects use hardcoded thickness values instead of radius-scaled ones.
Scene clutter — 5 unrelated objects (network, tablet, paperweight, vase, platform) feel scattered. Hero has 2 cohesive object groups (thesis pages + scatter plot) that tell a story.
Lighting over-compensation — Auth lowered ambient to 0.35 then added under-fill lights to fix harsh shadows. Hero uses balanced ambient 0.5 + warm key/fill rig naturally.
Camera too far — Auth at distance 9.5 with FOV 40° makes objects small. Hero at distance 7 with FOV 38° frames objects tightly.
Tone mapping hack — Auth enables ACESFilmicToneMapping + exposure 1.1 to rescue flat lighting. Hero doesn't need it.
Wireframe lines — Auth uses lineBasicMaterial (thin, aliased). Hero uses drei Line (smooth, consistent width).
Canvas textures — Auth's tablet texture is 512x720, no grain, generic content. Hero's pages are 1024x1440 with grain noise, real medical content, 3 variants.
Layout issues — "Last used" badge clips, Clerk cardBox still has white bg, dot grid too faint.
Strategy
Rewrite auth-3d-scene.tsx from scratch using the exact same patterns, imports, material configs, lighting rig, and Canvas setup as hero-3d-scene.tsx. Keep the academic/knowledge-graph theme but with hero-level execution.
Scene Composition (2 focused object groups)
Group 1: Knowledge Graph (replaces old NetworkTopology)
Icosahedron vertex positions (deduplicated) — same algorithm
Add lastAuthenticationStrategyBadge: "text-xs" to prevent overflow
Files to Modify
File
Change
components/auth/auth-3d-scene.tsx
Full rewrite — knowledge graph + thesis book stack using hero patterns
app/(auth)/layout.tsx
Panel split 50/50, overflow fix
app/(auth)/sign-in/[[...sign-in]]/page.tsx
Widen rootBox, badge styling
app/(auth)/sign-up/[[...sign-up]]/page.tsx
Same
Verification
Visit /sign-in — left panel shows knowledge graph (glass nodes with chromatic aberration) + thesis pages with readable text, all on beige bg with dot grid
Scene quality matches hero — glass nodes shimmer, pages have visible grain, lighting is warm and cohesive
Right panel — Clerk form with no white card background, dot grid visible, no badge clipping
Mobile — right panel only (no 3D scene), form centred
npx tsc --noEmit passes with 0 errors
If you need specific details from before exiting plan mode (like exact code snippets, error messages, or content you generated), read the full transcript at: /Users/devs/.REDACTED.jsonl
Assistant
I'll start by reading all the source files I need to understand before implementing.
Assistant
Now I have a clear picture of all files. Let me implement the plan — I'll create the task list and start with the largest change (auth-3d-scene.tsx rewrite).
User
[Request interrupted by user]
User
I have a diffrent mockup for the left pane. The right pane will be lighter warm tone than left and will retain dot grid. clerk element bg will be transparent glassmorphic, with clamshell smoothened edges. Left pane image is attached. Use best possible 3d render option to achieve perfect similarity. take special care for the light, shadow,glass and all detials.