--- license: cc0-1.0 license_link: https://creativecommons.org/publicdomain/zero/1.0/ pretty_name: Quaternius CC0 Packs GLB tags: - 3d - glb - gltf - low-poly - quaternius - cc0 - game-assets - animated - rigged - threejs - webgpu configs: - config_name: default data_files: - split: train path: data/train-*.parquet --- # Quaternius CC0 Packs as GLB ![All 797 3D models](assets/banner.jpg) Models from Quaternius CC0 model packs (animals, characters, buildings, props, nature, survival) as ready-to-load GLB, in two tiers: a small web tier (meshopt geometry, WebP textures) and a plain engine tier with no decoder needed. Animated characters keep their clips. Each row keeps the id used by the CodePawl free 3D assets MCP (pack slug and file name), the pack, the source page, triangle count, size in file units, animation clips and rig flag. By Quaternius (https://quaternius.com), CC0. 797 3D models from [Quaternius CC0 packs](https://quaternius.com/) by Quaternius, 101.5 MB of source files packed into 33.0 MB of GLB (web tier). Credit: 3D models by Quaternius (https://quaternius.com), CC0 1.0. Crediting Quaternius is appreciated, not required.. Viewer: https://huggingface.co/spaces/codepawl/quaternius-glb-viewer ## Files | Folder | Size | What | For | |---|---|---|---| | `objects/` | 33.0 MB | meshopt geometry, WebP textures | three.js, Babylon.js, any glTF viewer with the meshopt decoder | | `engine/` | 94.5 MB | no meshopt, no quantization | Blender and desktop engines that cannot decode meshopt | `metadata.jsonl` has one line per item: title, kind, licence, authors, triangle count and the path and size of every tier. The Dataset Viewer and `load_dataset` read `data/*.parquet`: the same rows with the mesh (`Mesh`, the plain `engine/` GLB, decoded by trimesh) and the thumbnail (`Image`) embedded. Thumbnails are also in `thumbs/`. ## For web games and WebGPU Load the `objects/` files in web games: small files with meshopt geometry and WebP textures. glTF extensions each tier uses (also per row in `metadata.jsonl`, field `extensions`): - `web`: `EXT_meshopt_compression`, `EXT_texture_webp`, `KHR_materials_unlit`, `KHR_mesh_quantization` - `engine`: `KHR_materials_unlit` Measured on 12 items spread over triangle count. Phone page: 390x844 at 3x, pixel ratio capped at 2, CPU throttled 4x, network at Chrome's Fast 4G (150 ms, 9 Mbit/s), so phone load includes the download. The GPU is a desktop RTX 3060 and is not throttled: frame time shows the CPU side only, a real phone GPU is slower. VRAM is geometry plus texture bytes on the GPU. | Tier | File (median) | VRAM (median) | Triangles | Phone load (4G) | Frame time | WebGPU load (local) | |---|---|---|---|---|---|---| | web (12) | 0.0 MB | 0.0 MiB | 788 | 201 ms | 1.6 ms | 5 ms | three.js WebGPU: ```js import * as THREE from 'three'; import { WebGPURenderer } from 'three/webgpu'; import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js'; import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js'; const renderer = new WebGPURenderer({ antialias: true }); await renderer.init(); // KTX2Loader needs to know which compressed formats this device takes const ktx2 = new KTX2Loader().setTranscoderPath('https://cdn.jsdelivr.net/npm/three@0.187.0/examples/jsm/libs/basis/').detectSupport(renderer); const loader = new GLTFLoader().setKTX2Loader(ktx2).setMeshoptDecoder(MeshoptDecoder); const gltf = await loader.loadAsync('https://huggingface.co/datasets/codepawl/quaternius-glb/resolve/main/objects/animatedalien__Alien/animatedalien__Alien.glb'); ``` ## Use it in Crucible [Crucible](https://github.com/codepawl/crucible) loads these files as they are: ```bash npm install @codepawlhq/crucible meshoptimizer ``` ```js import { CrucibleRenderer } from '@codepawlhq/crucible'; import { loadGltf } from '@codepawlhq/crucible/addons/gltf'; import { MeshoptDecoder } from 'meshoptimizer'; const asset = await loadGltf('https://huggingface.co/datasets/codepawl/quaternius-glb/resolve/main/objects/animatedalien__Alien/animatedalien__Alien.glb', { decoders: { meshopt: MeshoptDecoder } }); const renderer = new CrucibleRenderer(document.querySelector('canvas'), asset.parts, { ground: true }); renderer.render({ eye: [1.5, 1.2, 2], target: [0, 0.5, 0] }); ``` ## Tested Every file was loaded and drawn (drawn pixels counted) in each engine, three.js 0.187.0 and 67js 0.19.0, files from a local copy of this repository. | Tier | three.js WebGL | three.js WebGPU | 67js | |---|---|---|---| | web | 120/120 | 120/120 | 120/120 | | engine | 120/120 | 120/120 | 120/120 | Blender 5.2 import: engine 120/120, objects 120/120. ## Licence and credit 3D models by Quaternius (https://quaternius.com), CC0 1.0. Crediting Quaternius is appreciated, not required.. Licence: CC0-1.0 (https://creativecommons.org/publicdomain/zero/1.0/). Changes made: Each model is converted from the pack's FBX file to GLB with Blender (geometry, materials and animation clips kept), unchanged beyond that in the engine tier; the web tier is the same model with meshopt geometry compression and WebP textures. Metadata (pack, size, triangle count, animation clips, rig flag) is read from the GLB. Source: https://quaternius.com/. Packed by [CodePawl](https://huggingface.co/codepawl).