Gltf animation issue

⚓ Rust    📅 2026-05-27    👤 surdeus    👁️ 3      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Gltf animation issue
document.animations().map(|a| {
        a.channels().map(|c| {
            let r = c.reader(|buf| Some(&buffers[buf.index()]));
            match r.read_outputs().unwrap() {
                ReadOutputs::Translations(iter) => todo!(),
                ReadOutputs::Rotations(rotations) => todo!(),
                ReadOutputs::Scales(iter) => todo!(),
                ReadOutputs::MorphTargetWeights(morph_target_weights) => todo!(),
            }
        })
    });

How am I to interpret each potential value of ReadOutput? I know what they are but not in what order or way I should save them in my object format. For example, what defines a channel? the change in transform of a bone if it's translation, rotation, or scale?

1 post - 1 participant

Read full topic

🏷️ Rust_feed