NEOLearn

glTF examples

The engine's glTF examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

Loading glTF scenes, meshes, materials and their extensions. There are 9 examples on this page. For the concepts behind them, see glTF.

Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.

Examples#

ExampleWhat it showsWebRun
Custom glTF vertex attribute 2DRenders a glTF mesh in 2D with a custom vertex attributeYescargo run --example custom_gltf_vertex_attribute
Edit glTF MaterialShowcases changing materials of a glTF after Scene spawnYescargo run --example edit_material_on_gltf
glTF extension AnimationGraphUses glTF data to build an AnimationGraph via extension processingYescargo run --example gltf_extension_animation_graph
glTF extension processing to build Mesh2ds from glTF dataUses glTF extension data to convert incoming Mesh3d/MeshMaterial3d assets to 2dYescargo run --example gltf_extension_mesh_2d
glTF Skinned MeshSkinned mesh example with mesh and joints data loaded from a glTF fileYescargo run --example gltf_skinned_mesh
Load glTFLoads and renders a glTF file as a sceneYescargo run --example load_gltf
Load glTF extrasLoads and renders a glTF file as a scene, including the gltf extrasYescargo run --example load_gltf_extras
Query glTF primitivesQuery primitives in a glTF sceneYescargo run --example query_gltf_primitives
Update glTF SceneUpdate a scene from a glTF file, either by spawning the scene as a child of another entity, or by accessing the entities of the sceneYescargo run --example update_gltf_scene

See also#