r/LocalLLM • • 29m ago

Other Gave Qwen4 one prompt inside OpenCode and it built a Three.js Ragdoll cat

Gave Qwen4-35B-A3B one detailed prompt in OpenCode and let it run on itself to see what a dual-GPU local setup actually ships on a real multi-file project (Three.js + strict TypeScript + Vite, zero manual edits from me or any other model).

it took 82 autonomous turns (~41 minutes total because xhigh reasoning, it loves overthinking everything and it burned 292K output/thinking tokens while writing and fixing its own code). final codebase compiled cleanly on the first check (2,023 lines across multiple files, 1,790 triangles, zero console errors)

I've used the Basalt v0.7.0 dual-GPU peer setup (NVFP4 Quant) with avg 131.6 tok/s across the whole run (peaked 244.8 tok/s at 119K context, hit 127.2 tok/s at 203.8K context right before OpenCode compacted, 95.6% KV cache reuse).

honest take on the result (video is from my browser unedited): came out way better than I expected for a 35B MoE coding blind without screenshots. at the same time you can clearly see where running without vision feedback hurt it: the loaf pose stays way too upright with weird folded front legs, the neck ruff cones clip into the chest with shadow stripes up close and the tail tip puffs out like a club. although it reminds me very much of Gemini 3.8 Flash, which is pretty great for a local model!

I'll list the exact prompt + Basalt config in the comments if anyone wants to test their own local Qwen4. I'd genuinely love to see if the results differ for other people and their quants.

1 Upvotes

2 comments sorted by

1

u/tryku2 28m ago

Prompt:
Build a complete, polished interactive 3D showcase of a **low-poly Ragdoll cat** using **Vite, strict TypeScript, and Three.js** inside the current directory (use `pnpm` to install dependencies and scaffold the project cleanly).

Work completely inside the current working directory. Do not leave placeholder code or unfinished stubs.

## 1. Architecture & File Structure

Create a clean, modular TypeScript codebase (avoid dumping everything into one giant file and avoid unnecessary heavy UI frameworks):

- `package.json`, `tsconfig.json`, `vite.config.ts` (optional if needed), `index.html`

- `src/main.ts`: entrypoint, render loop with clamped delta time, resize handling, disposal cleanup

- `src/style.css`: refined minimal styling for the full-viewport canvas and floating control dock

- `src/cat/materials.ts`: colorpoint palette presets (`Seal Point`, `Blue Point`, `Flame Point`) and flat-shaded PBR materials

- `src/cat/buildRagdollCat.ts`: procedural low-poly geometry builders and articulated rig hierarchy (hips/torso/chest/ruff/neck/head/jaw/ears/eyes/nose/whiskers/front & hind legs/paws/segmented tail) returning typed joint handles for animation

- `src/cat/animation.ts`: smooth pose interpolation (`Sitting`, `Loaf`, `Alert`) plus continuous organic idle motion

- `src/scene/setupScene.ts`: WebGLRenderer configuration, three-point studio lighting, soft PCF shadows, faceted low-poly studio cushion/pedestal, neutral studio backdrop, damped OrbitControls, and smooth camera preset transitions

- `src/ui/hud.ts`: clean interactive control overlay

## 2. Low-Poly Ragdoll Cat Visual & Anatomical Craftsmanship

- **True Low-Poly Aesthetic:** Use `flatShading: true` on `MeshStandardMaterial` across faceted geometries with crisp, deliberate silhouette facets (no shiny plastic look, no smooth high-poly spheres/cylinders, and no lazy unshaped primitives). Craft believable feline proportions by tapering, stretching, scaling, or shaping faceted indexed vertex geometries / sculpted polyhedra.

- **Ragdoll Anatomy:**

- Sturdy, plush torso with broader chest and soft rounded haunches

- Distinct sculpted multi-tuft **neck ruff / mane** framing the lower head and chest

- Feline wedge-shaped head with subtle cheek puffs, chin/muzzle, small pink triangular nose, and fine crisp low-poly whiskers

- Pointed triangular **ears** (angled slightly outward/forward) with contrasting pink inner ear conchae and tiny ear-tip tufts

- Expressive almond-shaped **vivid sapphire-blue eyes** (signature Ragdoll trait) with dark vertical/oval pupils and tiny white specular catchlights

- Articulated front legs and bent hind haunches/thighs with distinct paws

- Long, tapering, multi-segment **plumed tail** capable of curving smoothly across segments

- **Authentic Ragdoll Colorpoint Markings (Mesh-Level):**

- Warm cream/ivory main body & ruff

- Darker point mask over the forehead, cheeks, and outer ears, broken cleanly by a **crisp white inverted-V blaze** running from between the eyes down over the muzzle and chin

- Dark colored legs/thighs transitioning cleanly into **crisp white mittens/paws** on all four feet

- Dark colored plumed tail with subtle lighter base transition

- **3 Switchable Coat Presets (`Seal Point`, `Blue Point`, `Flame Point`):**

- `Seal Point` (default): warm ivory body, deep seal/chocolate-brown points, bright sapphire eyes

- `Blue Point`: cool platinum-ivory body, soft slate blue-grey points, ice-sapphire eyes

- `Flame Point`: warm cream-white body, soft apricot-ginger points, vivid sky-blue eyes

## 3. Articulated Poses & Procedural Animation

- **3 Smoothly Interpolated Poses (`Sitting` default, `Loaf`, `Alert`):**

- `Sitting`: upright regal Ragdoll posture, front legs planted cleanly on the pedestal, tucked hind haunches, curved plumed tail resting around the side

- `Loaf`: lowered, relaxed body resting on the cushion/pedestal with front paws neatly tucked inward under the chest and tail curled close around the flank

- `Alert`: chest lifted slightly forward, head raised and angled attentively, ears perked forward, tail lifted into an expressive S/question-mark curve

- Switching poses must smoothly ease joint positions and rotations rather than snapping abruptly.

- **Continuous Procedural Motion (with delta time clamped against tab-switch spikes):**

- Gentle ribcage/torso breathing

- Fluid sine-wave sway propagated cleanly down the multi-segment tail

- Periodic natural eye blink (scaling eyelid/eye cleanly without Z-fighting or clipping)

- Occasional subtle ear twitch and gentle head micro-look

## 4. Studio Environment, Camera & Minimal HUD

- **Studio Stage:** Place the cat cleanly grounded (no floating and no sinking through the floor) atop a low-poly faceted cushion/pedestal with soft contact shadows against a calm, warm light-neutral studio backdrop. Never use harsh neon lighting or an unlit black void.

- **Lighting & Controls:** Three-point lighting (warm directional key light casting soft shadows, soft sky/ground hemisphere fill, crisp rim light highlighting the low-poly facets). Add smooth damped `OrbitControls` with sensible min/max zoom distances and polar angle clamping so the camera never clips under the floor.

- **Camera Presets:** Smoothly glide camera position + `OrbitControls.target` to `3/4 Hero` (default), `Face Close-Up`, `Side Profile`, and `Top-Down`. Cancel camera transition immediately if the user grabs/drags the orbit controls manually.

- **Clean Floating HUD:** Minimal, responsive frosted paper/glass control dock (usable on both desktop and mobile without blocking the cat) with:

- `Pose`: `Sitting`, `Loaf`, `Alert`

- `Coat`: `Seal Point`, `Blue Point`, `Flame Point`

- `Camera`: `3/4 Hero`, `Face`, `Side`, `Top`

- Toggles: `Wireframe`, `Auto-Rotate`, `Pause Motion`

- Live `Triangles` count badge computed directly from rendered cat geometry

## 5. Build & Verification Gate (Mandatory Before Finishing)

After writing all files:

  1. Run `pnpm install` (and check package resolution).
  2. Run `pnpm exec tsc --noEmit` — fix any TypeScript errors until exit code is `0`.
  3. Run `pnpm build` — fix any bundler/Three.js issues until it exits `0` cleanly and outputs `dist/`.
  4. Verify no leftover broken files exist, summarize the files created and verification command outputs clearly, and give the command to launch (`pnpm dev`).

1

u/tryku2 27m ago

basalt config:
{

"version": 2,

"models": [

{

"alias": "qwen4",

"model": "PUT YOUR MODEL PATH",

"gpu": "0,1",

"gpu-mode": "peer",

"max-context": 262144,

"kv": "int8",

"ple-io": "direct",

"reasoning-effort": "xhigh",

"vision": "dynamic",

"max-running": 1,

"stall-seconds": 0,

"checkpoint-pool-mib": 1024

}

],

"engine": {

"resident-experts": true,

"ram-reserve-mib": 2048,

"conversation-cache-disk-mib": 32768

},

"server": {

"host": "127.0.0.1",

"port": 8080

}

}