[]加载 unity3D导入的旧版蒙皮动画时出现错误
加载 unity3D导入的旧版蒙皮动画时出现错误
[.Offscreen-For-WebGL-000001FC83792110]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 2
INVALID_VALUE: uniformMatrix4fv: invalid srcOffset
然后模型部份位置错乱
加载动画使用官网的旧版例子中的代码
addSkinComponent(spirit3D: Laya.Sprite3D): void {
if (spirit3D instanceof Laya.MeshSprite3D) {
var meshSprite3D: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D;
var skinAni: Laya.SkinAnimations = meshSprite3D.addComponent(Laya.SkinAnimations) as Laya.SkinAnimations;
skinAni.templet = Laya.AnimationTemplet.load(this.skinAniUrl[0]);
skinAni.player.play();
}
for (var i: number = 0, n: number = spirit3D._childs.length; i < n; i++)
this.addSkinComponent(spirit3D._childs[i]);
}
[.Offscreen-For-WebGL-000001FC83792110]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attempt to access out of range vertices in attribute 2
INVALID_VALUE: uniformMatrix4fv: invalid srcOffset
然后模型部份位置错乱
加载动画使用官网的旧版例子中的代码
addSkinComponent(spirit3D: Laya.Sprite3D): void {
if (spirit3D instanceof Laya.MeshSprite3D) {
var meshSprite3D: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D;
var skinAni: Laya.SkinAnimations = meshSprite3D.addComponent(Laya.SkinAnimations) as Laya.SkinAnimations;
skinAni.templet = Laya.AnimationTemplet.load(this.skinAniUrl[0]);
skinAni.player.play();
}
for (var i: number = 0, n: number = spirit3D._childs.length; i < n; i++)
this.addSkinComponent(spirit3D._childs[i]);
}
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
Aar0n
赞同来自:
Aar0n
赞同来自: