Импорт glTF со всеми зависимостями

Файл сцены, геометрия и текстуры работают вместе.

3D / WebGLGLTFLoaderglTFGLBinclude

Когда использовать

Resolve glTF buffers and images from a provider manifest and export a self-contained asset package.

Решения для реализации

  1. Treat glTF as a manifest: buffers and image URIs may point to different directories on the provider CDN.
  2. Use the exact include map returned with the selected resolution. Rewrite only resource URIs; preserve transforms, skins and material assignments.
  3. Retain relative dependency paths when downloading a ZIP. Reject absolute paths and traversal segments.
  4. Normalize the displayed object with a wrapper transform; keep its internal hierarchy and animation targets intact.

Как проверить результат

  • Every non-data URI resolves to a bundled file or explicit CDN URL.
  • Exported GLB contains the chosen scene and supported animation clips.
  • Switching model releases geometry, materials, textures and animation mixers.

Файлы

SKILL.mdcomponents/asset-viewer.tsx
WEBCRAFT © 2026Оригинальные исходники и интерактивные примерыMIT License