forge-scene-loading

Load and render glTF 2.0 scenes with SDL3 GPU.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-scene-loading
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: forge-scene-loading
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-scene-loading
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-scene-loading

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Load and render glTF 2.0 scenes with multiple meshes, materials, and a scene hierarchy, enabling realistic real-time rendering in SDL3 GPU.

Core Features & Use Cases

  • glTF parsing: load JSON + binary data via forge_gltf_load() and integrate with the math library.
  • Multi-material rendering: support textures and solid colors in a single draw via per-primitive uniforms and fragment shading.
  • Scene graph traversal: build and traverse parent-child transforms to render complex hierarchies.
  • Indexed rendering pipeline: set up vertex/index buffers and render with SDL_DrawGPUIndexedPrimitives.
  • Texture and shader integration: upload textures, create samplers, and bind material data during rendering.
  • Use Case: load a complete glTF model from assets/model.gltf and render it with proper transforms and materials.

Quick Start

Initialize the loader with a glTF file in assets and render it using the provided GPU pipeline.

Frequently Asked Questions about forge-scene-loading

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load and render a glTF scene with multiple materials in SDL3 GPU?▼

To render glTF scenes with multiple materials in SDL3 GPU, use forge_gltf_load() to parse JSON and binary data, then bind per-primitive uniforms and fragment shaders for multi-material rendering.

Does SDL3 GPU support indexed rendering for complex glTF scene graphs?▼

SDL3 GPU supports indexed rendering for glTF scene graphs by setting up vertex and index buffers, traversing parent-child transforms, and rendering with SDL_DrawGPUIndexedPrimitives.

How do I bind textures and solid colors in a single draw call for glTF rendering?▼

You can bind textures and solid colors in a single draw call by uploading textures, creating samplers, and binding material data as per-primitive uniforms during the fragment shading stage.

What dependencies do I need to set up a glTF rendering pipeline in SDL3 GPU?▼

You need forge_gltf_load(), cJSON for parsing, and SDL_GPU APIs to upload buffers and render glTF 2.0 scenes with proper transforms, textures, and scene graph hierarchies.

Can I traverse parent-child transforms to render complex glTF model hierarchies?▼

You can build and traverse parent-child transforms to render complex glTF model hierarchies by loading the scene graph and applying the transforms during the indexed rendering pipeline setup.

Why is my glTF multi-material mesh not rendering correctly in SDL3 GPU?▼

glTF multi-material meshes may not render correctly if vertex and index buffers are not properly uploaded, or if material data, textures, and samplers are not bound during SDL_DrawGPUIndexedPrimitives.