Create a spaceship out of voxel blocks
- User
Create a spaceship out of voxel blocks
Assistant
I'll create an interactive 3D voxel spaceship builder using React, Three.js, and Tailwind CSS. Let me start by setting up the project.
Now let me install the Three.js dependencies:
Now let me update the index.html title and create the voxel spaceship app:
Now I'll create the main App component and all supporting files. The spaceship will be a complete 3D voxel model with interactive rotation, zoom, and controls.
Now let me create the Spaceship component - the core voxel model:
Now let me create the Controls UI panel:
Now let me build the project to check for errors:
The project builds successfully. Let me now also check if there are any lint errors:
Everything is working. Let me also verify the complete file structure:
The project builds successfully! Here's what I created:
🚀 Voxel Spaceship Builder
A fully interactive 3D spaceship rendered entirely out of voxel blocks with Three.js / React Three Fiber.
Features:
-
Voxel Spaceship Model — A complete spaceship built from ~150 individual voxel cubes, including:
- Elongated fuselage body
- Glowing cockpit on top
- Swept wings on both sides with cannon accents
- Vertical tail fin stabilizer
- Bottom fin
- Multiple thruster nozzles at the rear with orange glow
- Accent stripes along the hull
-
5 Color Schemes — Steel (default), Crimson, Azure, Emerald, and Gold — selectable from the bottom UI panel
-
Interactive Controls:
- Drag to rotate the view
- Scroll to zoom in/out
- Right-drag to pan
- Auto-rotate toggle
- Grid toggle (shows/hides the ground plane)
- 💥 Explode toggle — scatters all voxel blocks apart with a smooth animation
-
Visual Polish:
- Animated starfield background with twinkling stars
- Gentle ship bobbing animation
- Contact shadows, ambient + directional lighting
- Glass-morphism UI panel
Files built:
index.html,src/App.tsx,src/Spaceship.tsx,src/Controls.tsx-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.