BestPromptFinder
Home › Coding › Interactive 3D Scene in One HTML File With Three.js

Interactive 3D Scene in One HTML File With Three.js

Coding · Claude, ChatGPT, Gemini · coding
85AI Quality /100
91AI Usefulness est. /100
83Eval Confidence /100
No votes yetCommunity results

Quality, usefulness and confidence are AI evaluations out of 100 — not user ratings. Community results come from visitors' "worked / didn't work" votes below. How scoring works →

The prompt

Build a small interactive 3D scene in a single HTML file using Three.js loaded from a CDN. Scene: [e.g. a ship inside a glass bottle on a desk, with water that rocks gently] Interactions: [e.g. drag to orbit, scroll to zoom, click the bottle to make it rock] Requirements: - Build every object from Three.js geometry and materials; no external model or texture files. - One key light, one soft fill and an environment-style ambient so glass and water read clearly. - Smooth animation using requestAnimationFrame and delta time. - Works on a phone: touch controls, resize handling, pixel ratio capped at 2. - A tiny on-screen hint for the controls that fades after 3 seconds. - Code split into clear sections: setup, objects, animation, interaction. Output: the whole file, then 3 easy ways to extend it. Before finishing, check for console errors, that the scene stays above 30 fps on a mid-range laptop, and that nothing breaks when the window is resized.
Find similar in the app →
Did this prompt work for you?

Why this prompt

Source

Created by BestPromptFinder — editorial prompt, not user-generated. See our content & source policy.

Related Coding prompts

Python: Download a CSV From a URL
Quality 94 · GPT-5.6
Public-Market and Competitor Data Collection Agent
Quality 92 · GPT-5.6
Plain-English to SQL Query Writer
Quality 91 · GPT-5.6
PRD to MVP Technical Plan
Quality 90 · Claude Code
Third-Party API Integration
Quality 90 · Claude Code
Database Schema and Migration
Quality 90 · Claude Code