Datasets:
image imagewidth (px) 1.6k 1.6k |
|---|
OptiQ 3D Coder assets
Five game-style 3D assets written by mlx-community/Qwen3.5-4B-3D-Coder-OptiQ-4bit, a 4B model running locally on a Mac (M4, 24 GB). The model writes each asset as a single-file Three.js HTML scene. That code is unedited. The .glb files in assets/ were exported from those generated scenes in a headless browser, so they can be viewed in the gallery here or dropped into a game engine.
Assets
| Asset | GLB | Source | Prompt | Tokens |
|---|---|---|---|---|
| Stone golem boss | golem.glb | HTML, front, side | Please create one self-contained HTML file with Three.js from cdnjs showing a stone golem boss with glowing green crystals growing from its shoulders. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 10,771 |
| Pirate deck cannon | cannon.glb | HTML, PNG | Please create one self-contained HTML file with Three.js from cdnjs showing a pirate deck cannon on a wooden carriage with a stack of cannonballs. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 14,269 |
| Potion set | potions.glb | HTML, PNG | Please create one self-contained HTML file with Three.js from cdnjs showing a set of three potion bottles, red, blue and green, with corks, on a small wooden tray. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 12,802 |
| Voxel swamp goblin | voxel-goblin.glb | HTML, PNG | Please create one self-contained HTML file with Three.js from cdnjs showing a swamp goblin enemy with big ears, a leather vest and a spiked wooden club. Render it as a deliberate 3D voxel model built from visible cubic blocks, with clear depth, readable silhouettes, and solid spatial relationships. Make it a single game-ready asset centred on a plain ground plane, slowly turning on a turntable, with mouse orbit controls. | 20,079 |
| Castle guard tower | tower.glb | HTML, PNG | Please create one self-contained HTML file with Three.js from cdnjs showing a medieval castle guard tower module with battlements, a wooden door and a flag waving at the top. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 14,070 |
Token counts include the model's reasoning. Each run used this system prompt from the base model's author:
Use only the Three.js core ES module from
https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.module.min.js.
Do not import addons or legacy examples/js paths;
implement any camera controls directly inside the HTML.
Settings: temperature 0.6, top_p 0.95, top_k 20, no repetition penalty, max_tokens 64000, thinking on, seeded.
Notes
- These are picks, not a typical sample. Of 18 attempts, 11 rendered in the browser, 3 crashed on load and 4 looped in reasoning until the 64k token cap. These five were chosen from the 11 that rendered.
- They aren't flawless. The potions have no visible corks, the goblin's ears are flat from the side, and the tower's battlements are oversized.
- The GLBs are exports of the rendered scenes. Each was exported with Three.js r160's
GLTFExporterafter the scene had built. The large ground plane, lights, fog, background and the golem's floating dust particles were left out, and animation is not included, so each file is the static asset. Materials are simplified in the conversion: glow, shadows and some non-standard materials won't look exactly as they do in the original page. Open the HTML insource/to see the scene as the model wrote it.
Run the model
pip install mlx-optiq
optiq serve --model mlx-community/Qwen3.5-4B-3D-Coder-OptiQ-4bit
OptiQ is a free MLX toolkit to quantize, fine-tune and serve LLMs locally on Apple Silicon. OptiQ Code is its coding agent.
Credits
The base model is ccore/Qwen3.5-4B-3D-Coder, a Qwen3.5 4B fine-tune for writing Three.js scenes, released under Apache 2.0. This dataset uses the same license.
- Downloads last month
- 79