1 second - GPT-OSS 120B via Cerebras API
1-Second Planet
A brutally constrained build that still hits terrain, ocean, and atmosphere in a single HTML file.
Controls: Drag to orbit - Scroll to zoom
See prompt
Give me a single self-contained HTML file that renders a 3D procedurally
generated planet that you design. It should have 3D terrain, ocean, atmosphere,
etc. Use Three.js with orbit controls. Only the planet on black background, no
stars. Output only the html. Make it as detailed and aesthetic as you can. The
code should be maximum 220 lines of code. Add this import map before the module
script:
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.164.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.164.0/examples/jsm/"
}
}
</script>
Then import like this inside the module script: import * as THREE from "three";
import { OrbitControls } from "three/addons/controls/OrbitControls.js";Note: I lowered the planet detail resolution from the video versions to make these builds easier to run in a browser.