Rotating icosahedron · qwen3-30b-a3b-instruct-2507
Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.
transcript · 4 messages
Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.
I'll create a single-page web app with a rotating icosahedron using Three.js. The scene will include two colored point lights, orbit-style auto-rotation, and a starfield background.
index.html (3805 bytes)Successfully wrote 3805 bytes to index.html
I've created a complete single-page web app that meets all your requirements: 1. Full-screen scene with Three.js 2. A rotating icosahedron with proper material properties 3. Two colored point lights (red and green) that orbit around the icosahedron 4. Orbit-style auto-rotation where the icosahedron moves in a smooth orbital pattern 5. A subtle starfield background with 10,000 randomly positioned stars The implementation uses the provided three.min.js file and includes all code in a single self-contained index.html file with inline CSS and JavaScript. The scene is responsive to window resizing, and the animation loop handles the continuous rotation and lighting effects.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.