I'll create a highly detailed 3D Formula 1 car in Three.js. Let me first explore the project structure.
I'll build a highly detailed F1 car. Let me install Three.js and its types.
Now let me update the title and build the F1 car. Let me start with the index.html title.
Now I'll create the detailed F1 car model. Let me start with the geometry-building module which handles the lofted bodywork, wheels, wings, suspension, and all details.
I made a typo in the brake disc material. Let me fix it.
Now let me create the geometry helper utilities (loft, cross-sections, struts).
Now the main car builder. First the wheel/tyre assembly module.
Now the main car assembly module — this brings together the lofted body, nose, wings, floor, diffuser, halo, cockpit, suspension, and wheels.
Let me remove the dead stripe code that isn't used.
Now the React scene component with renderer, lighting, environment reflections, shadows, ground, and orbit controls.
Let me add saveState so the reset button restores the configured view, and update App.tsx.
Now let me build to check for errors.
The build succeeded. I noticed the floor's plan-view shape gets flipped front-to-back by the rotation. Let me fix its orientation so the coke-bottle narrowing and diffuser cutout align correctly.
Let me rebuild to confirm everything still compiles cleanly.
The F1 car viewer is complete and building successfully. Here's what I created:
3D Formula 1 Car — Model Viewer
I built a highly detailed, fully procedural F1 car in Three.js (no external model files), organized into clean modules:
src/f1/geometry.ts — Core geometry engine:
- A custom loft function that sculpts watertight bodywork by connecting superellipse cross-section rings (used for the monocoque and sidepods)
- A NACA-style airfoil generator for aerodynamically-shaped wing elements
- A strut helper for suspension/pylons
src/f1/materials.ts — A physically-based material library: metallic-flake scarlet paint with clear-coat, anthracite carbon fibre, satin titanium suspension, matte rubber, chrome, glowing brake discs, tinted visor glass, and mirror surfaces.
src/f1/wheel.ts — Each wheel is individually detailed: a lathe-profiled slick tyre with rounded shoulders, circumferential grooves and sidewall bands, a spoked rim with hub and central wheel nut, plus a carbon brake duct, drilled brake disc and caliper.
src/f1/buildCar.ts — Full assembly with accurate proportions (≈3.6 m wheelbase):
- Lofted raised-nose monocoque, airbox/roll-hoop intake, cockpit surround with helmet, visor, halo and mirrors
- Coke-bottle sidepods with radiator inlets, cooling louvres and bargeboard vanes
- Carbon floor, plank, edge fences and a strake-lined diffuser
- Multi-element front wing (4 planes) with curved endplates and nose pylons
- Rear wing with DRS flap, beam wing, endplates and swan-neck pylon, plus exhaust and rain light
- Complete double-wishbone suspension with pushrods and track rods at all four corners
src/Scene.tsx — The presentation:
- ACES filmic tone mapping, soft PCF shadows, and RoomEnvironment (PMREM) reflections for realistic metallic paint
- Four-point studio lighting (hemisphere + key + rim + fill), a clean light-grey studio floor with subtle grid and contact shadow
- OrbitControls with inertial damping, zoom/pan limits, auto-rotate turntable and a reset-view button, plus a polished glassy UI overlay
You can drag to orbit around the car, scroll to zoom, and toggle the auto-rotate turntable to inspect every detail.
Files built: index.html, src/f1/materials.ts, src/f1/geometry.ts, src/f1/wheel.ts, src/f1/buildCar.ts, src/Scene.tsx, src/App.tsx