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

threeLayer不显示带有骨骼动画的glb模型 #139

Open
ab690257072 opened this issue Dec 12, 2022 · 0 comments
Open

threeLayer不显示带有骨骼动画的glb模型 #139

ab690257072 opened this issue Dec 12, 2022 · 0 comments

Comments

@ab690257072
Copy link

辛苦开发人员帮看下,比如一个人骑车的模型,仅显示车架子,带有动画的人和车轮不显示,不论是否加动画逻辑都不显示,克隆或不克隆也不显示,是否是底层不支持?还是说和版本等因素有关?模型在软件和其他项目中能正常显示,只有mapvgl这里不显示。

我把代码中克隆和动画部分去掉,仅保留关键部分:

import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';

const loader = new GLTFLoader()
loader.load('./static/model/bicycle.glb', model => {
const curModel = model.scene
this.threeLayer.add(curModel)
});

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

No branches or pull requests

1 participant