Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_gltf doesn't preserve node's postion values #211

Open
nrayamajhee opened this issue Oct 30, 2018 · 1 comment
Open

load_gltf doesn't preserve node's postion values #211

nrayamajhee opened this issue Oct 30, 2018 · 1 comment

Comments

@nrayamajhee
Copy link

I've been encountering this issue persistent across all the gltf files I've tried where multiple nodes of the gltf scene are centered on the origin ignoring their position defined in the gltf file. You can reproduce the bug with the code from repo example:

    let default = concat!(env!("CARGO_MANIFEST_DIR"), "/test_data/Plane/scene.gltf");
    window.scene.add(&gltf);

    let mut mixer = three::animation::Mixer::new();
    for clip in gltf.clips {
        mixer.action(clip);
    }

I got the gltf from: https://sketchfab.com/models/f312ec9f87794bdd83630a3bc694d8ea#download

As you can see the propellers are not where they are supposed to be:

screenshot from 2018-10-30 00-58-40

screenshot from 2018-10-30 00-59-01

@kvark
Copy link
Collaborator

kvark commented Oct 30, 2018

Pinging @alteous just in case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants