A lowpoly medieval procedural model library for Vibe3D, plus the model inspector used to build it. Registry (@medieval-kit, published as @medieval-kit/registry): - core: deterministic mulberry32 RNG, slot-based vertex-coloured materials, a geometry vocabulary (box, prism, stave, band, head, flip), and the stable-anchor part slots the Vibe3D protocol requires - wooden-barrel: 806 tris, 13 separate staves, iron hoops, recessed heads - wooden-crate: 360 tris, plank rows on corner posts, forged straps - iron-brazier: 423 tris, typed actions, per-frame flame flicker, own light The kit declares no renderer capabilities, so it runs on WebGLRenderer as well as WebGPURenderer. Colour variation lives in vertex attributes rather than in materials, so each model keeps one draw call per material. Verification (bun run verify) covers 64 checks without a browser: geometry validity, winding by two measures (radial alignment for bodies of revolution, signed volume for closed solids), coplanar-face detection for z-fighting, stable root and anchor identity across configure(), deterministic seeding, material ownership, and idempotent disposal.
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"name": "@medieval-kit/registry",
|
|
"version": "0.1.0",
|
|
"description": "A lowpoly medieval procedural model library for Vibe3D and Three.js.",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"author": "CRTkafa",
|
|
"homepage": "https://github.com/CRTkafa/medieval-kit#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/CRTkafa/medieval-kit.git",
|
|
"directory": "my-registry"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/CRTkafa/medieval-kit/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"keywords": [
|
|
"vibe3d",
|
|
"vibe3d-registry",
|
|
"threejs",
|
|
"3d-models",
|
|
"medieval",
|
|
"lowpoly",
|
|
"procedural"
|
|
],
|
|
"vibe3d": {
|
|
"registry": "./dist/registry.json"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "bun build.ts",
|
|
"validate": "vibe3d registry validate dist/registry.json",
|
|
"prepublishOnly": "bun build.ts && vibe3d registry validate dist/registry.json"
|
|
},
|
|
"peerDependencies": {
|
|
"three": ">=0.185.0"
|
|
}
|
|
}
|