Tabbit
ResourcesBlogModels
Tabbit LogoTabbit

Tabbit — The AI Browser that Works for You

Topics

  • Best Browsers 2026: Rankings and Top Lists
  • AI Browser Guides and Resources
  • Browser Comparisons: Head-to-Head Guides
  • Browser Reviews and Explainers
  • Browser Alternatives
  • Browser Directory: Guides by Browser
  • Agentic Browser Resources
  • Browser Downloads and Install Guides
  • Browser Productivity Resources
  • SillyTavern Model Guides and Presets

Popular Guides

  • Best Browsers 2026: Top 10 Ranked & Compared
  • Best Free AI Browsers 2026: Plans & Prices Compared
  • Rabbit Browser: What It Is & Why Tabbit Is Better
  • Firefox vs Chrome 2026: Privacy, RAM & Speed Compared
  • Best Lightweight Browsers 2026: 7 Tested for RAM & Speed
  • AI Browser List 2026: 10 Browsers Compared
  • Neobrowser: Norton Neo, Download & Alternatives
  • Edge vs Chrome 2026: Speed, RAM & Battery Tested
  • Best Internet Browser for Android 2026
  • Best AI Browser 2026: Top 9 Tested & Ranked

Events

  • Tabbit Skill Competition
  • KPOP SBTI Fandom Personality Test
  • Tabbit Campus Creator Program
  • fifi's Picks: AI Skills for Research Papers
  • User Survey

About

  • Tabbit Blog
  • Press & Media
English
简体中文English
Showcases & prompts
CommunityGLM-5.4

Using GLM 5.4 to Generate a Voxel Coral Reef

Original source

X; public Gist

AuthorIvan Fioravanti (@ivanfioravanti)

Source date2026-11-24

Tabbit curation2026-11-24

Read original

One-sentence takeaway

This is a complete prompt for a code-generation model: it asks GLM 5.4 to use Three.js to generate a dense, interactive voxel underwater scene in a single HTML file. The original post demonstrates the detail and voxel density, but the author also explicitly notes that some geometry errors remain.

Use cases

  • Suitable tasks: generating voxel scenes in Three.js that run directly in a browser, testing a model's ability to handle multi-constraint frontend tasks, and producing interactive visual prototypes that can be screen-recorded.

  • Unsuitable tasks: requiring a single generation to guarantee no geometry errors, consistently reach 60 FPS, or be used directly in a production 3D project. The prompt is very long and provides no reproducible record of hardware, browser, runtime, or final voxel count.

  • Applicable model version: GLM 5.4; the original post also says the author tested other models with the same prompt, but provides no complete comparison data.

  • Applicable client, Agent, or API: not specified; the prompt assumes that the model can generate a complete HTML/JavaScript file and use CDN modules.

  • Recommended reasoning tier and parameters: not specified. Start with the model's default settings, then record the model, temperature, context length, browser, and GPU separately.

Ready-to-use content

The following is the author's linked original Gist prompt, which can be run directly in English. It requires outputting only one self-contained HTML file.

Create a single, self-contained HTML file: a cinematic, highly detailed voxel-art underwater scene rendered in real time with Three.js (load via ES-module importmap from cdn.jsdelivr.net; use OrbitControls and EffectComposer from three/addons). No external assets — everything procedural.

Voxel resolution (critical)
Use TINY voxels: base voxel size 0.04 world units. The shark alone should contain 60,000–100,000 voxels; the full scene 400,000–800,000.
Render all voxels with InstancedMesh (one per material/region group), never individual meshes. Per-instance color via instanceColor.
Build creatures by voxelizing analytic shapes (signed-distance functions: ellipsoids, tapered cylinders, smooth-unions) sampled on the grid, then color each voxel procedurally from its body-space coordinates. Only keep surface voxels (hollow interiors) to save instances.

Hero: tiger shark (~3.5 m, centered over the reef)
Real anatomy: blunt wide snout, visible gill slits (5 per side, dark recessed voxels), dark eye with a lighter ring, slightly open mouth with a row of white tooth voxels, tall first dorsal fin, small second dorsal, pectoral fins angled down and out, pelvic fins, anal fin, heterocercal tail (upper lobe much longer), and claspers optional.
Pattern: countershading (grey-olive back fading to cream-white belly with a soft gradient band), plus dark vertical tiger stripes and blotches on the upper flanks that fade toward the tail. Subtle per-voxel color noise so it never looks flat.
Animation (done in the vertex shader via onBeforeCompile, so voxels deform as a body, not as a rigid block):
Lateral swimming wave traveling head→tail, amplitude near zero at the head and largest at the tail tip, ~0.35 Hz.
Tail and caudal fin sweep with the wave; pectoral fins make tiny trim adjustments.
Slow vertical drift (sine, ~0.6 m range, ~9 s period) with slight pitch matching the drift.
Head yaws gently left/right (±12°, ~7 s period, out of phase with the drift), as if looking around.
Gill slits subtly flare in rhythm.

Supporting cast
A pair of spotted eagle rays (Aetobatus narinari) gliding in a slow loop in the mid-ground: dark navy-black dorsal side covered in crisp white spots and rings, white belly, pointed "duck-bill" snout, long thin whip tail (3× body length) that trails with lag. Wings flap with a slow traveling wave from root to tip.
One giant manta ray (~6 m wingspan) passing slowly overhead and far back every ~40 s, partly lost in fog for scale: black back with white shoulder patches, white belly with unique dark spots, rolled cephalic lobes in front of the mouth.
3–4 schools of small reef fish (40–120 fish each, each fish ~80–150 voxels): blue-and-yellow tangs, orange anthias, striped sergeant majors. Simple boids (cohesion, alignment, separation) plus avoidance of the shark: schools part and flow around it when it comes close.
A few individual fish: a parrotfish nibbling coral, a clownfish pair darting in and out of an anemone.

Reef environment (close-up, dense, colorful)
Sandy floor with ripple ridges (sine-based height on voxel columns, two crossing frequencies), scattered shells, small rocks, and a sand-colored stingray half-buried with only eyes visible.
Coral, generated procedurally:
Branching staghorn corals via recursive L-system branches (purple, pale blue, mustard tips brighter than bases).
Brain corals as domes with a maze groove pattern (reaction-diffusion or noise-thresholded ridges).
Table/plate corals stacked in tiers.
Sea fans: flat lattice fans in magenta and deep red that sway gently in the current (vertex-shader sway, stronger at the edges).
Anemones with dozens of tentacle columns whose tips sway with a phase offset per tentacle.
Tube sponges, sea whips, and small glowing-tipped polyps.
Arrange the reef as a horseshoe bowl around the shark so every camera angle has a rich foreground and background.

Lighting & atmosphere
Blue-green palette: deep blue fog (FogExp2) that shifts toward teal near the surface; water color graded with depth.
Animated caustics: a procedural caustic pattern (sum of distorted sines or Voronoi) projected from above onto all surfaces in the fragment shader, brightest on top-facing voxel faces, moving slowly.
God rays: 8–12 soft additive light shafts slanting down from a bright rippling surface plane, with slight flicker and drift.
Directional "sun" from above with soft shadows (PCFSoftShadowMap) on the sand and reef; hemisphere light for blue ambient fill.
Post-processing: subtle bloom (on caustic highlights and glowing polyps), mild vignette, slight chromatic shift at the edges, ACES tone mapping.
Particles: rising bubble streams from 3–4 points on the reef (bubbles wobble and grow as they rise), plus drifting marine snow particles throughout the volume.

Camera
Starts directly in front of the shark at eye level, its face toward the camera, close enough to see gill slits and teeth.
After 3 s, begins a slow 360° orbit around the shark (~60 s per revolution) with gentle vertical bob and slight radius breathing, always targeting the shark's mid-body. Every side — face, flanks, dorsal view, tail — should be clearly visible.
OrbitControls let the user take over; auto-orbit resumes after 6 s of inactivity.

UI (minimal, unobtrusive)
Small translucent corner panel: scene title, voxel count, FPS, and toggles for auto-orbit, caustics, god rays, and fish schools.
Short loading screen with a progress bar while voxels are generated (generate in chunks with requestAnimationFrame so the page never freezes).

Performance
Target 60 fps on a modern laptop GPU (e.g. Apple M-series). Cap devicePixelRatio at 2, use frustum culling per InstancedMesh group, and keep shadow-map resolution sensible (2048).
Handle window resize correctly.

Make it vivid, lifelike within a voxel aesthetic, and genuinely impressive — the kind of scene someone would screen-record and share. Output only the complete, working HTML file.

Test or workflow steps

  1. Send the prompt above in full to a GLM 5.4 client that supports code generation, and save the HTML file returned by the model.

  2. Open the HTML with a local static server; do not use file:// directly to determine whether the ES-module importmap, CDN, and resource loading work correctly.

  3. First check the loading progress, the initial front-facing shot, and interactive OrbitControls, then wait for the automatic orbit to complete an observable segment.

  4. Check the voxel count, FPS, auto-orbit, caustics, god rays, and fish-school toggles in the UI one by one; record the actual voxel count and browser-console errors.

  5. Re-test with the same model, prompt, and runtime environment, changing one setting at a time before recording geometry errors, frame rate, and loading time.

Original evidence and data

  • The X post says: “GLM 5.4: Tiger reef,” and states that GLM used more voxels than DeepSeek 4.1 below; the author says the detail is very good, but that there are “some geometry errors here and there,” and considers the overall zero-shot performance good.

  • The post quotes the author's earlier post about creating a mini voxel coral reef with DeepSeek Harness + DeepSeek V4.1 Flash 1017 online API, and says the author would use the same detailed prompt to test the local version and other models.

  • The Gist file is named reef.md, its contents are fully visible, and it explicitly specifies InstancedMesh, per-instance color, surface voxels, voxel scale, animation frequencies, scene objects, post-processing, camera, and performance targets.

  • The Gist provides no auditable HTML output, complete runtime logs, hardware/browser versions, actual voxel count, or FPS data. Therefore, the 60 FPS or 400,000–800,000 voxel targets cannot be verified from the post screenshots alone.

Conclusions and limitations

  • This is an example of asking a model to complete a complex frontend 3D prototype in one pass, not a general capability conclusion about GLM 5.4 based on benchmark testing.

  • The voxel-count targets are extremely high. If implemented strictly at 0.04 world units and 400,000–800,000 scene voxels, memory, generation time, instance-attribute uploads, and post-processing overhead may all become bottlenecks. Actual GPU, browser, and DevTools data should determine the assessment.

  • InstancedMesh only addresses draw-call scale; it does not automatically solve the total cost of instance data, vertex-shader deformation, shadows, transparent particles, and post-processing.

  • Analytic shapes, surface-voxel filtering, and geometry assembly for multiple creatures can easily produce intersections, breaks, proportion errors, or animation deformation. The original author has already reported geometry errors. The result should be fixed over multiple rounds rather than treating the first-pass HTML as production code.

  • CDN, importmap, three/addons, WebGL/WebGPU support, and cross-browser behavior affect reproducibility. The prompt does not pin a Three.js version or provide an offline dependency option.

  • “Target 60 FPS,” “modern laptop GPU,” and “Apple M-series” are target settings, not measured results. Generation-stage and runtime-stage performance should be recorded separately.

Reproduction notes

This article is based only on the original X post and public Gist. The original prompt can be copied directly, but reproduction must additionally record the model deployment method, model parameters, Three.js version, browser, GPU, generation time, voxel count, and FPS. Otherwise, it is only possible to confirm that “the prompt was submitted and generated some result,” not the performance targets or geometry quality shown. It is recommended to retain the complete prompt first, then record each change in rounds: “generate runnable HTML → check the console → quantify voxels and FPS → fix geometry in multiple rounds.”

Curated by Tabbit

Prompts and showcases are summarized from public sources and Tabbit editorial notes. Check the original licensing and intended use before copying it.

GLM-5.4

Use in Tabbit

GLM-5.4

Related showcases & prompts

MediaZ.AI Developer Documentation

GLM-5.4: Official Z.AI Access and Capability Boundaries

MediaZ.AI Developer Documentation

GLM-5.4 Coding Plan Quota Configuration: Allowances, Multipliers, and Plan Capacity Planning

MediaZ.AI Developer Documentation

GLM-5.4 Coding Agent Model Switching: Routing IDs, 1M Context, and Effort

CommunityX2026-11-24

GLM-5.4 Three.js Anime Basketball Court: Public Comparison Case

GLM-5.4

Related reviews

OfficialZ.ai Blog2026-11-23

GLM-5.4: Z.ai Official Benchmarks and Test Conditions

CommunityReddit, r/ZaiGLM2026-11-23

GLM-5.4 on Reddit's Launch Day: A Field Report on Response Latency in Hermes Agent

CommunityX2026-11-23

GLM-5.4 Preview KingBench 4 Evaluation: 33.2/60 with a 431-Minute Runtime

CommunityX2026-11-24

GLM-5.4 ZCode Shenzhen Skyline Field Report: 4 Hours 8 Minutes of Work Still Required Crossing Quota Windows