Sample GLB Files: Free Download for Testing

Nine free sample GLB files for testing 3D loaders, viewers, game engines and pipelines. Each one checks one part of glTF 2.0, from a 2 KB cube to animation, skinning, morph targets, mesh compression and a scene with over 380,000 triangles. All of them pass the Khronos glTF Validator with no errors, need no login and are free under CC BY 4.0.

  • 9 test files
  • 2 KB to 1.4 MB
  • glTF 2.0 binary
  • Validated
  • No login

Which file tests what

FileSizeTrianglesTests
cube.glb1.9 KB12Basic loading
uv-grid-cube.glb21 KB12Textures, UV orientation
pbr-spheres.glb45 KB46,000Metal and roughness (PBR)
animated-trs.glb32 KB1,200Animation clips, interpolation
morph-targets.glb125 KB2,976Morph targets (blend shapes)
skinned-tentacle.glb53 KB1,648Skinning, bones
race-car-01-meshopt.glb40 KB2,719Meshopt compression
materials-test.glb153 KB6,930Alpha, emissive, unlit, vertex colours
car-park-large-scene.glb1.3 MB388,476Performance, many nodes

All nine together: 1.8 MB. Triangle counts are as drawn, so a mesh used several times counts each time.

The test files

Drag a preview to turn it, or tap it to open the 3D viewer, where animated files have a button for each clip.

Simple Cube: sample GLB file

Simple Cube

  • cube.glb
  • 1.9 KB
  • 12 triangles

The smallest useful GLB: one mesh, one material, no textures. Use it to check that a loader or viewer works at all.

  • 1 mesh
  • 1 PBR material
  • Flat normals
Download GLB
UV Grid Cube: sample GLB file

UV Grid Cube

  • uv-grid-cube.glb
  • 21 KB
  • 12 triangles

Texture loading and UV orientation. Every side should show the grid upright, with A1 at the top left. Upside-down or mirrored letters mean the texture or UVs are flipped.

  • Embedded PNG texture (512 px)
  • TEXCOORD_0
  • Base colour map
Download GLB
PBR Spheres Grid: sample GLB file

PBR Spheres Grid

  • pbr-spheres.glb
  • 45 KB
  • 46,000 triangles

Metal and roughness. Left to right, roughness goes from 0 to 1. Bottom to top, metalness goes from 0 to 1. Metal needs an environment map to look right, so a black top row means no environment light.

  • 25 materials
  • Metallic and roughness factors
  • Smooth normals
  • Shared vertex data
Download GLB
Animation Test (Move, Spin, Scale): sample GLB fileAnimated

Animation Test (Move, Spin, Scale)

  • animated-trs.glb
  • 32 KB
  • 1,200 triangles

Four animation clips: All, Bounce, Spin and Pulse. Bounce moves with cubic spline keys, Spin turns with linear keys and Pulse scales with step keys, so one file checks all three interpolation types.

  • 4 animation clips
  • Translation, rotation, scale
  • CUBICSPLINE, LINEAR, STEP
Download GLB
Morph Targets Ball: sample GLB fileAnimated

Morph Targets Ball

  • morph-targets.glb
  • 125 KB
  • 2,976 triangles

Two named morph targets, Squash and Flower, with position and normal changes, plus a Morph clip that animates their weights. Target names are in the mesh extras (targetNames), which three.js reads.

  • 2 morph targets
  • Named targets
  • Weights animation
Download GLB
Skinned Tentacle (Bones): sample GLB fileAnimated

Skinned Tentacle (Bones)

  • skinned-tentacle.glb
  • 53 KB
  • 1,648 triangles

Skinning: a mesh bent by a chain of four bones, with joints, weights and inverse bind matrices, plus a Wave clip. If the tentacle stays straight while the clip plays, skinning is not working.

  • 1 skin, 4 joints
  • JOINTS_0 and WEIGHTS_0
  • Wave animation
Download GLB
Race Car 01 (Meshopt Compressed): sample GLB file

Race Car 01 (Meshopt Compressed)

  • race-car-01-meshopt.glb
  • 40 KB
  • 2,719 triangles

Mesh compression: EXT_meshopt_compression with KHR_mesh_quantization, as made by gltfpack. Both are required, so the loader needs a meshopt decoder (in three.js: loader.setMeshoptDecoder(MeshoptDecoder)). Compare it with the plain Race Car 01.

  • EXT_meshopt_compression
  • KHR_mesh_quantization
  • Less than half the size
Download GLB
Materials Test (Alpha, Emissive, Unlit): sample GLB file

Materials Test (Alpha, Emissive, Unlit)

  • materials-test.glb
  • 153 KB
  • 6,930 triangles

Seven material features side by side, left to right: plain, alpha blend (with a cube inside), alpha mask (cut-out holes), double-sided (an open pipe you can see into), emissive, unlit (KHR_materials_unlit) and vertex colours, on a textured floor.

  • BLEND and MASK alpha
  • doubleSided
  • Emissive
  • KHR_materials_unlit
  • COLOR_0
Download GLB
Car Park (Large Scene): sample GLB file

Car Park (Large Scene)

  • car-park-large-scene.glb
  • 1.3 MB
  • 388,476 triangles

A big scene for performance tests: 144 cars and about 870 nodes that share 12 meshes, so a 1.4 MB file draws over 380,000 triangles in a few thousand draw calls. Good for checking frame rate, culling and instancing.

  • 144 models, 867 nodes
  • Shared meshes
  • Over 380k triangles drawn
Download GLB

Load a sample in three.js

The same code loads every file here. Only the meshopt file needs the decoder line, and only the animated files need the mixer.

import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';

const loader = new GLTFLoader().setMeshoptDecoder(MeshoptDecoder); // needed for the meshopt file
const gltf = await loader.loadAsync('animated-trs.glb');
scene.add(gltf.scene);

// play a clip by name: All, Bounce, Spin or Pulse
const mixer = new THREE.AnimationMixer(gltf.scene);
mixer.clipAction(THREE.AnimationClip.findByName(gltf.animations, 'Bounce')).play();
// each frame: mixer.update(delta);

What is a GLB file?

A GLB file is the binary form of glTF 2.0, the open 3D format from the Khronos Group. One .glb holds everything: meshes, materials, textures, node names, skins and animations. The other form, .gltf, keeps the same data as a JSON file next to separate .bin and image files. GLB is the easier one to download, upload and load on the web, which is why most 3D model libraries and engines use it.

How to use a GLB model

GLB is binary glTF 2.0: one file with the mesh, materials and node names. Every modern 3D tool reads it.

three.js

Load it with GLTFLoader, as in the code below. Babylon.js, PlayCanvas and A-Frame load GLB directly too.

Unity

Add the free glTFast package (Package Manager, add by name: com.unity.cloud.gltfast), then drag the .glb into Assets.

Godot 4

Drop the .glb into the FileSystem dock. Godot imports it as a scene you can instance.

Blender

File, Import, glTF 2.0. From there you can also export to FBX, OBJ or STL.

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

const gltf = await new GLTFLoader().loadAsync('model.glb');
const model = gltf.scene;
scene.add(model);

// the model is in metres, +Y up, facing +Z, standing on the ground at the origin

Licence: free with credit (CC BY 4.0)

All models are made by vinish.dev and released under Creative Commons Attribution 4.0. You may use them in personal and commercial projects, change them and share them. The one condition is credit, for example in your game's credits, your app's about page or your video description:

"Simple Cube" by vinish.dev (https://vinish.dev/sample-glb-files/), CC BY 4.0

Each file carries its own credit line inside it (the glTF asset.copyright field), and each zip has a CREDITS.txt. If you change a model, say so after the credit, for example "recoloured".

Questions

Are these files valid glTF?

Yes. Every file passes the Khronos glTF Validator 2.0 with no errors and no warnings. The meshopt file shows two notes only because the validator cannot look inside that extension.

Can I use them in automated tests?

Yes. Use them in test suites, CI, demos and bug reports. Under CC BY 4.0 you only need to credit vinish.dev if you share the files themselves, for example in a public repository.

Can my web page load the files straight from your server?

Please download them and serve them from your own site. Our file server only lets vinish.dev pages read the files with JavaScript, so loading them from another website will fail.

Do you have Draco or KTX2 samples?

Not yet. The compressed sample uses meshopt (EXT_meshopt_compression), which three.js, Babylon.js and gltfpack support.

Why does the meshopt car fail to load in my viewer?

The file requires EXT_meshopt_compression and KHR_mesh_quantization. Your loader needs a meshopt decoder: in three.js, loader.setMeshoptDecoder(MeshoptDecoder). Viewers without it show an error, which is exactly what this file is for.

More from vinish.dev

  • Free 3D Models: every pack in the library
  • Free Character Animations: Two rigged mannequins, a man and a woman, with 36 clips: walk, run, wave, salute, fight, push-ups, sitting and dance.
  • Free War Zone 3D Models: Sandbag position, blast barrier, hedgehog, razor wire, guard tower, army tent, field howitzer, bombed ruin, camouflage net and a shell crater.
  • Free Dinosaur 3D Models: T. rex, Triceratops, Stegosaurus, Brachiosaurus, Ankylosaurus, Parasaurolophus, Velociraptor, Pteranodon, an egg nest and a cycad.
  • Free Town 3D Models: Pastel townhouses, a garden home, shops, a mall, apartments, an office tower, a clock tower, parks, a playground and a cherry tree.
  • Free Bathroom 3D Models: Toilet, vanity unit, bathtub, shower enclosure, mirror cabinet, towel rail, toilet roll holder, laundry basket, pedestal basin, soap set, scale and a rubber duck.
  • Free Kitchen 3D Models: Fridge freezer, gas cooker, microwave, sink unit, base and wall cabinets, cooker hood, washing machine, toaster, kettle, espresso machine, blender, pans and a cutting board.
  • Free Fantasy Item 3D Models: Health and mana potions, elixir vial, spellbook, crystal ball, magic staff, crown, gold coin pile, cut gems, goblet, treasure map, rune stone and key.
  • Free Graveyard and Halloween 3D Models: Mausoleum, headstones, ring cross, obelisk, family grave, wooden cross, cemetery fence and gate, coffin, carved pumpkin, cauldron, candelabra, lantern and web.
  • Free Dungeon Kit 3D Models: Modular floor, walls, doorway, archway, alcove, pillar, column, stairs, portcullis, prison bars and spike trap, plus a brazier, chains, sarcophagus and lever.
  • Free House 3D Models: Family house, modern house, log cabin, stone cottage, bungalow, townhouses, A-frame, beach house, villa, tiny house, container home and Victorian house.
  • Free Rock and Terrain 3D Models: Boulders, rock pile, stepping stones, cliff wall, rock arch, sea stack, desert mesa, small island, crystal cluster, snowy rocks and a cave entrance.
  • Free Musical Instrument 3D Models: Acoustic, electric and bass guitars, ukulele, violin, cello, grand piano, keyboard, drum kit, trumpet, saxophone, microphone, amp and xylophone.
  • Free Sports 3D Models: Soccer ball, basketball, volleyball, tennis, baseball, American football, bowling, golf, hockey, fitness gear, skateboard, trophy, soccer goal and hoop.
  • Free Food 3D Models: A burger, pizza, fries, hot dog, donuts, ice cream, cupcake, layer cake, pancakes, coffee and croissant, fruit, sushi, bread and popcorn.
  • Free Christmas 3D Models: A Christmas tree, presents, snowman, candy canes, sleigh, reindeer, wreath, ornaments, gingerbread house, stocking, snow globe, fireplace and gingerbread man.
  • Free Sea Life 3D Models: A shark, dolphin, whale, reef fish, fish school, sea turtle, octopus, crab, jellyfish, manta ray, seahorse and coral reef, all animated.
  • Free Wildlife 3D Models: A lion, elephant, giraffe, zebra, rhino, hippo, camel, fox, dog and cat, each with Idle, Walk and Run clips.
  • Free Space 3D Models: A rocket and its launch pad, a capsule, a lander, a satellite, a station module, a rover, a starfighter, a flying saucer, asteroids, a ringed planet and a radio telescope.
  • Free Construction 3D Models: An excavator, a bulldozer, a wheel loader, dump and mixer trucks, a tower crane, a forklift, a road roller and site props from a cement mixer to a hard hat.
  • Free Farm 3D Models: A tractor and trailer, a red barn, a grain silo, a windpump, fences and a gate, hay bales, a trough, a chicken coop, a pumpkin and a milk churn.
  • Free Animal 3D Models: A horse, deer, wolf, bear, cow, pig and sheep, each with Idle, Walk and Run clips.
  • Free Street Prop 3D Models: A bus stop, bins, road signs, barriers, a bicycle, a kick scooter, a vending machine, a food cart, a utility pole and a billboard.
  • Free Boat 3D Models: A speedboat, sailboat, rowboat, trawler, container ship, jet ski, submarine, kayak and RIB with moving parts, plus buoys, a bollard and a dock.
  • Free Aircraft 3D Models: A light plane, airliner, jet fighter, helicopter, biplane, drone and hot-air balloon with spinning props, rotors and moving control surfaces.
  • Free Voxel 3D Models: Blocky characters and farm animals with walk clips, voxel trees, a cottage, a car, a chest and spinning pixel pickups.
  • Free Race Car 3D Models: Formula, classic, GT, prototype and rally cars, a kart, a superbike, a motocross bike and track props.
  • Free Weapon 3D Models: Pistol, revolver, assault rifle, SMG, shotgun, sniper rifle, rocket launcher, grenade, combat knife and sci-fi blaster.
  • Free Rigged People 3D Models: Men and women in everyday, office and work clothes, rigged with idle, walk and run animations.
  • Free Medieval 3D Models: A treasure chest, a longsword, a shield, an axe, a weapon rack, a torch, a hay cart, a market stall, an anvil and a well.
  • Free Furniture 3D Models: A sofa, an armchair, a dining set, a double bed, a bookcase, an office desk and chair, a wardrobe, a lamp and a coffee table.
  • Free Retro Tech 3D Models: An 80s PC, a CRT TV, a rotary phone, a boombox, a typewriter and a VCR with a tape. No brands.
  • Free Garden 3D Models: A park bench, a picnic table, a stone fountain, a wheelbarrow, a shed, a planter, pots and a birdbath.
  • Free Tree 3D Models: An oak, a pine, a birch, an autumn maple, a dead tree, a bush, a stump, a fern and grass.
  • Free Jungle 3D Models: A coconut palm, a banana plant, a monstera, bamboo, mossy boulders and a fallen log, with cut-out leaves.
  • Free City Kit 3D Models: 16 m road tiles that snap together, street props and two apartment blocks with shop fronts.
  • Free Game Prop 3D Models: Crates, a barrel, an oil drum, a shipping container, a concrete barrier, a pallet and a fuel can. Lids and doors open.
  • Free Military Vehicle 3D Models: A main battle tank, an 8x8 armoured carrier, a 4x4 patrol vehicle and a 6x6 cargo truck. Turrets, guns and wheels turn.
  • Free Robot 3D Models: An industrial arm, a robot dog, a drone, a tracked robot with a claw, a walking mech and a humanoid. Every joint is a node you can turn.
  • Free Low Poly Car 3D Models for Games: 12 vehicles with separate wheels
  • Free browser games and simulators by vinish.dev

3D viewer

Loading 3D…
Drag to turn · scroll or pinch to zoom · double-click to look closer