Polyfork BrowseKitsCharactersPricingBlog

Barred Cell Door

free remixable
drag to orbit · scroll to zoom
test pivots:
Dungeon & Crypt low-poly 3D kit Part of Dungeon & Crypt 7 matching parts, one palette and scale
Part hierarchy (toggle visibility)

Use it

The fastest path in three.js: one import, zero loaders. The module returns a ready THREE.Group with named parts.

import { createAsset } from 'https://polyfork.dev/cdn/barred-cell-door-571e9c.mjs';
scene.add(createAsset());

Downloaded it instead? Import './barred-cell-door-571e9c.mjs' and add the importmap below. The zip ships a working index.html with both already in place.

Print your logo on it (1 declared area — the same thing the sticker button up in the viewer does)
import * as asset from 'https://polyfork.dev/cdn/barred-cell-door-571e9c.mjs';
import { decalsFromSvg } from 'https://polyfork.dev/cdn/decal.mjs';

const model = asset.createAsset();
scene.add(model);

// any SVG with flat colours (up to three, plus transparency); text as paths
const svg = await (await fetch('/your-logo.svg')).text();
await decalsFromSvg(model, asset.decals, svg);

Areas on this asset: frame-head (0.55m×0.07m) — pass a filtered asset.decals to print on some only. The bake runs in a worker; on a GLB mount read the areas from https://polyfork.dev/cdn/barred-cell-door-571e9c-params.json and pass them in place of asset.decals. Full reference: llms.txt § Your own logo.

Full working example (a complete copy-paste HTML page)
<!doctype html>
<script type="importmap">
{ "imports": { "three": "https://unpkg.com/[email protected]/build/three.module.js",
               "three/addons/": "https://unpkg.com/[email protected]/examples/jsm/" } }
</script>
<script type="module">
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { createAsset } from 'https://polyfork.dev/cdn/barred-cell-door-571e9c.mjs';

const scene = new THREE.Scene();
scene.background = new THREE.Color(0xf3ecdc);
// Far plane at 5000: terrain blocks are 64 to 256m across and a 100m
// frustum slices them.
const camera = new THREE.PerspectiveCamera(45, innerWidth / innerHeight, 0.1, 5000);
camera.position.set(3, 2, 4);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(innerWidth, innerHeight);
document.body.style.margin = 0;
document.body.appendChild(renderer.domElement);
scene.add(new THREE.HemisphereLight(0xffffff, 0x998877, 1.2));
const sun = new THREE.DirectionalLight(0xfff2e0, 2);
sun.position.set(4, 7, 5);
scene.add(sun);

scene.add(createAsset());
new OrbitControls(camera, renderer.domElement);
renderer.setAnimationLoop(() => renderer.render(scene, camera));
</script>

The standard route: load the GLB with GLTFLoader. The same file works in any glTF pipeline (Babylon.js, <model-viewer>, custom engines).

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

new GLTFLoader().load('https://polyfork.dev/cdn/barred-cell-door-571e9c.glb', (gltf) => {
  scene.add(gltf.scene); // real-world scale in meters, origin on the ground
});

Flat-shaded vertex colors on a single material: no textures to wire up, one draw call.

R3F takes any Object3D through <primitive>, and these modules return a ready THREE.Group synchronously. No useGLTF, no loader, no <Suspense>.

import { useMemo } from 'react';
import { Canvas } from '@react-three/fiber';
import { createAsset } from './barred-cell-door-571e9c.mjs';

function BarredCellDoor(props) {
  const obj = useMemo(() => createAsset(props), [JSON.stringify(props)]);
  return <primitive object={obj} />;
}

<Canvas camera={{ position: [3, 2, 4] }}>
  <hemisphereLight args={[0xffffff, 0x998877, 1.2]} />
  <directionalLight position={[4, 7, 5]} intensity={2} />
  <BarredCellDoor colorway="blackened-forge" />
</Canvas>

Every knob is a prop. colorway="blackened-forge" above is one of this model's own parameters, so the component rebuilds when it changes, exactly like any other React component. More on using these in R3F.

Open this model in StackBlitz A running R3F project with this model in it, no install.

Self-animating models, and one draw call

A model that animates itself exposes userData.tick(seconds). Drive it from R3F's own loop:

useFrame((state) => obj.userData.tick?.(state.clock.elapsedTime));

To merge a static set into a single draw call, import mergeAssets from https://polyfork.dev/cdn/merge.mjs and pass the merged group to one <primitive>.

  1. Download the .glb from this page.
  2. Unity: drag the file into Assets (glTFast or UnityGLTF import it). Godot: drop it into the project, it imports natively. Blender: File → Import → glTF 2.0.
  3. Place it as-is: real-world scale in meters, origin at ground level.
  4. Materials arrive as vertex colors on one material: no texture files, nothing to relink.

Using Claude Code, Cursor or another coding agent? This site is built for them: agent-readable docs at /llms.txt and a JSON API at /api. Paste this prompt:

Add the "Barred Cell Door" low-poly model from polyfork.dev
to my three.js scene. It is free and hotlinkable, nothing to download:

  ES module: https://polyfork.dev/cdn/barred-cell-door-571e9c.mjs
             (import { createAsset } - returns a THREE.Group, real-world scale)
  GLB:       https://polyfork.dev/cdn/barred-cell-door-571e9c.glb

Full metadata (size, palette, rigged parts): https://polyfork.dev/api/assets/barred-cell-door-571e9c
Site docs for agents: https://polyfork.dev/llms.txt

Every asset in this catalog shares one identical vertex-colored material, with no textures at all. That means whole scenes collapse into a single draw call: the same result Synty-style packs get from a texture atlas, without the atlas.

import { mergeAssets } from 'https://polyfork.dev/cdn/merge.mjs';

// position your assets first, then:
const { merged, dynamic } = mergeAssets([
  terrain, tree, rock,
  { object: asset, rig },   // 'door' stays animatable
]);
scene.add(merged);                  // ONE draw call, static
dynamic.forEach(d => scene.add(d)); // rigged parts, still movable

Placing many copies of one model? Use THREE.InstancedMesh instead: one draw call and even less memory. The landing page's forest demo ends with exactly this merge.

Rigged parts: door, lock-wheel. Each is a named group with its pivot at the hinge or axle, so one line animates it.

const asset = createAsset();
scene.add(asset);

// swing 'door' open (tween this value for smooth motion):
asset.getObjectByName('door').rotation.y = Math.PI / 4;

Loading the GLB instead? The same named nodes are there: gltf.scene.getObjectByName('door').

Share it

A live, orbitable copy of this model on your own page: no build step, no three.js on your side, one iframe.

<iframe src="https://polyfork.dev/embed/barred-cell-door-571e9c"
        width="480" height="360" loading="lazy"
        style="border:0;border-radius:12px"
        title="Barred Cell Door, low-poly 3D model"></iframe>

<p><a href="https://polyfork.dev/asset/barred-cell-door-571e9c">Barred Cell Door</a>
   by <a href="https://polyfork.dev">Polyfork</a></p>

Open the frame

Used the file rather than the frame? Attribution is not required and never will be. If you want to credit it anyway:

<a href="https://polyfork.dev/asset/barred-cell-door-571e9c">Barred Cell Door</a> by <a href="https://polyfork.dev">Polyfork</a>

Barred Cell DoorFree

Hotlink or download it. The copy-paste snippet just works.

A prison grille door in its own iron frame sized to the 1.1x2.2m opening: vertical bars with two flat cross straps, a lock plate and a small barred hatch, with a state knob (locked, ajar. Part of the Dungeon & Crypt kit.

  • 570 triangles · 1 material
  • 1.1 × 2.2 × 0.23 m, real-world scale
  • GLB (63 KB) + drop-in ES module
  • Animated parts: door, lock-wheel (pivots at the hinge or axle)
  • Commercial license: games, apps, client work, anything. No attribution required. (No reselling the raw assets, and no building a commercial asset generator from them.)
Other engines: FBX USDZ OBJ

Materials, not vertex colours: the palette comes across as named materials you can retint, and they carry this model's own knob names.

The zip holds the ES module, the GLB and a ready index.html: serve the folder and it renders.
Free: create a free account to download. Hotlinking from the CDN needs no account.

Related assets

Cauldron On Coals low-poly 3D model
Cauldron On Coals
755 tris
Alchemy Workbench low-poly 3D model
Alchemy Workbench
658 tris
Free Barrel low-poly 3D model
Barrel
552 tris
Great Barracuda low-poly 3D model
Great Barracuda
996 tris
Free Barrel low-poly 3D model
Barrel
564 tris
Wall with Door low-poly 3D model
Wall with Door
972 tris

One of 500 free 3D models for three.js, every one hotlinkable from the CDN with no account.

Polyfork

Sign in

One account for your purchases and downloads.

Continue with Google
or

No password needed: the link signs you in directly.