Skip to content
Discussion options

You must be logged in to vote

I'm guessing you my not have installed any extensions in glTF Transform. Do your console logs show anything like the error below?

Some extensions were not registered for I/O, and will not be written.

This means the instance() command added glTF extensions to the scene, but the I/O class doesn't recognize those extensions.

To add support for all official Khronos glTF extensions, and a few others:

import { NodeIO } from '@gltf-transform/core';
import { ALL_EXTENSIONS } from '@gltf-transform/extensions';
import { flatten, dedup, instance } from '@gltf-transform/functions';


const io = new NodeIO().registerExtensions(ALL_EXTENSIONS);
const document = await io.read('./suitcases.glb');

await 

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Makio64
Comment options

You must be logged in to vote
3 replies
@donmccurdy
Comment options

@Makio64
Comment options

@donmccurdy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1114 on October 03, 2023 15:24.