Build an interactive 3D Human Anatomy & Organ System Explore...
Prompt
Build an interactive 3D Human Anatomy & Organ System Explorer web application using React Three Fiber, Three.js, and Tailwind CSS, designed with a clean, dark-mode medical study lab aesthetic. ### 1. 3D Scene & Visuals - **Environment:** Deep dark background (`#09090b`) with soft studio three-point lighting, subtle ambient occlusion, and smooth `OrbitControls` (zoom, pan, rotate) with camera preset buttons (Anterior/Front, Posterior/Back, Lateral/Side, and Reset View). - **Anatomical Model & Layer Hierarchy:** - Create a structured, modular 3D human body model with clean, optimized low-to-mid polygon topology for smooth real-time rendering across desktop and tablet screens. - Organize meshes into toggleable anatomical system layers: 1. **Skeletal System:** Skull, vertebral column, rib cage, pelvis, and limb bones. 2. **Muscular System:** Major superficial skeletal muscles (e.g., pectorals, deltoids, biceps, quadriceps, abdominals, trapezius, latissimus dorsi) with semi-transparent ghosting support so inner organs remain visible when toggled. 3. **Major Organs (Visceral System):** Brain, heart, lungs, liver, stomach, kidneys, and intestines positioned accurately inside the thoracic and abdominal cavities. 4. **Circulatory & Nervous Highlights (Optional Overlay):** Major arteries/veins (aorta, vena cava) and central nervous pathways (brain + spinal cord). ### 2. Raycasting & Click-to-Inspect Interaction - Implement Three.js **Raycasting** (`onPointerOver`, `onPointerOut`, `onClick`) so hovering over any individual muscle, bone, or organ highlights it with an emissive outline/tint and shows a compact floating tooltip with its name. - Clicking any anatomical part smoothly focuses/zooms the camera slightly toward that region, isolates or highlights the selected mesh, and opens its detailed study card. ### 3. Anatomical Metadata & Study Content - Connect every clickable 3D mesh ID to a structured JSON metadata dictionary containing: - **Anatomical Name & System** (e.g., *Biceps Brachii — Muscular System*) - **Primary Physiological Function:** Clear, student-friendly bullet points explaining what the organ or muscle does. - **Location & Key Connections:** Adjacent structures, origins/insertions (for muscles), or system role (for organs). - **Quick Exam / Study Note:** A concise memory tip or key physiological fact. ### 4. Interactive UI Controls (Minimalist Floating Overlay) - **System Layer Toggles:** Pill switches or eye-icon toggles to independently show, hide, or make semi-transparent (X-ray mode) the Skeletal, Muscular, and Organ layers. - **Persistent Search Bar with Autocomplete:** Typing any organ, bone, or muscle name (e.g., *"Heart"*, *"Femur"*, *"Deltoid"*) filters a dropdown list; selecting a result automatically rotates the 3D camera to face that structure, highlights it, and opens its info panel. - **Responsive Info Drawer:** A sleek side panel on desktop and collapsible bottom drawer on tablet/mobile displaying the selected structure’s name, system tag, and bulleted physiological functions without obstructing the 3D viewport. ### 5. Code Quality & Performance - Separate the 3D scene/raycasting logic, anatomical metadata dictionary, and UI controls into clean, modular components. - Optimize materials, geometry instancing, and shadow maps to maintain 60 FPS on mid-range tablet GPUs.
A system prompt was added to support web rendering
Response not available