Sea in a Bottle Prompt and Showcases
Read the original Sea in a Bottle coding prompt, inspect the published implementations, and adapt the prompt variables for your own experiment.
CodeDNA metrics
| Showcase | Engine | HTML bytes | Effective lines | Shader references | Offline HTML |
|---|---|---|---|---|---|
| Sea in a Bottle in Three.js by Gemini 4 Neon | Three.js r160 | 124792 | 2961 | 9 | Yes |
| Tidal Archive, an Offline Three.js Demo by GPT-6.2 Astra | Three.js r160 | 763102 | 1105 | 8 | Yes |
| Sea in a Bottle Remake with Three.js | Three.js WebGL | 40812 | 117 | 3 | Requires external dependencies |
Original prompt
Sea in a Bottle in Three.js by Gemini 4 Neon · Tidal Archive, an Offline Three.js Demo by GPT-6.2 Astra · Sea in a Bottle Remake with Three.js
用WebGL(Three.jsr160CDN)创作一个体素微缩场景一-瓶中沧海:一艘多桅帆船在封闭于横卧玻璃瓶内的海洋上航行,输出为可直接在Chrome打开的单个HTML文件。 瓶与陈设:玻璃瓶身有菲涅尔边缘光与高光,软木塞+红蜡封+颈绳吊牌,搁在木托架上,置于木桌面(旁有旧书、黄铜望远镜),黄昏房间光氛围。瓶内海洋:体素浪面在GPU上起伏、浪尖泛白沫;水面以下是整体铺满的渐变深水体(无海床),半透明可透视--水底沉着宝箱(金光)、沉锚、双耳瓶、珊 瑚,气泡上升。珊瑚岛上有红白灯塔(旋转光束)、棕榈、暖窗小屋、码头与小艇、宝藏。帆船:三桅方帆+红纹主帆+全套索具,绕岛航行;浮力物理:四点浪高采样驱动升沉/纵摇/横摇,带船艏飞沫与尾迹。空中:六只海鸥盘旋,积云在鸟与桅杆之上,鲸鱼周期性跃身出水,浮标、鱼群、螃蟹点缀 一切元素严格封闭在瓶内,任何视角不得越出轮廓。交互:拖动环视(闲置自动恢复旋转)、滚轮缩放;按住Space掀起风暴--浪涌飞沫、瓶体在托架上摇晃而瓶内水面保持水平、闪电与乌云;延时摄影倍速(x4/x12/x1/暂停)驱动昼夜流转:太阳月亮移动、 黎明正午黄昏子夜四段天色、子夜星空,夜晚灯火热光 更浓。 技术:InstancedMesh体素批渲染+自定义 shader玻璃、水面顶点位移),目标60FPS。Takeaways
- Inspect the scene through the glass at several camera angles to judge visual containment.
- Hold Space and follow the change in wave height, spray, and the ship’s motion.
- Compare the same bottle prompt across Astra, Gemini, and the remake.
Prompt variables
- Bottle profile and desktop props
- Island and underwater landmarks
- Wave and storm intensity
- Orbit speed and camera distance
Arena showcases
- Sea in a Bottle in Three.js by Gemini 4 Neon
Explore a voxel ocean inside a sealed glass bottle in Gemini 4 Neon’s live Three.js demo. Orbit the miniature ship, lighthouse, and submerged treasures, then hold Space to drive the water into a storm.
- Tidal Archive, an Offline Three.js Demo by GPT-6.2 Astra
Open Tidal Archive, GPT-6.2 Astra’s paper-framed voxel take on Sea in a Bottle. The single HTML file embeds Three.js and pairs an orbitable ocean diorama with keyboard controls and a reactive storm.
- Sea in a Bottle Remake with Three.js
Orbit a miniature sailing ship and lighthouse inside a glass bottle in this interactive Three.js remake. Test the day-night speed controls and hold Space for a storm, then compare it with the other implementations of the shared prompt.