Make simple voxel redactor in html
- User
Make simple voxel redactor in html
Assistant
Tailwind v4 + React. I'll build a Three.js-powered voxel editor: an engine module plus a React UI overlay.
I need to remove a stray helper block I left in the constructor.
Build succeeded. Here's what I made:
Voxel Redactor — a browser-based 3D voxel editor built with React + Three.js.
Engine (
src/voxel/engine.ts)- 32³ build volume with shadow-casting lights, floor plane, grid helper and bounding wireframe
- Orbit/zoom camera (drag to orbit, wheel to zoom); a movement threshold prevents accidental edits while orbiting
- Raycast-based placement: clicking a cube face adds the next voxel outward, clicking the floor drops one on the ground
- Translucent rollover preview cube tinted with the active color (red when erasing)
- Tools: Build, Erase, Paint (recolor existing cube), Pick (eyedropper)
- Mirror-X symmetry mode, grid toggle, fill-floor-layer helper
- Batched undo/redo history (200 steps), clear scene
- Save/load scenes, PNG render export
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.