Results 9 comments of Jacob

我只是把heroCtrl.js 的代码改了一下。 ![image](https://user-images.githubusercontent.com/5415262/35547427-01028a06-05b4-11e8-8e5d-73ace4a168f8.png) LoadHero 的代码类似 ![image](https://user-images.githubusercontent.com/5415262/35547441-1a5850d0-05b4-11e8-9c3e-c74af39b052f.png) 后面的内容一样

对了,顺便问一下,起源2之后的dota2模型似乎都导不出来了,有什么方法可以拿到并且转换成项目里的格式么? ![image](https://user-images.githubusercontent.com/5415262/35552059-2e3139d2-05cd-11e8-8570-a46da33debd8.png)

现在用claygl的app.loadModel的方法去加载gltf的文件,模型成功加载了,但是动作该怎么导入呢,dota2hero的项目,一直使用的gtek,代码中似乎没有显式的调用gltf文件,是因为用的原生api么?

原来我看的是allhero.html里的代码,新的代码是写在vue的项目里的,看到了,学习中! : )

模型加载成功了,clip的值也是有的,但是模型并没有运动,是什么原因呢? 打印了this._currentClip 发现其中target的值是undefined,跟这个有关系么

![1](https://user-images.githubusercontent.com/5415262/38916370-b85ee8be-4319-11e8-8bbf-a2c3a03545ac.png) ![2](https://user-images.githubusercontent.com/5415262/38916378-bf13901a-4319-11e8-9c43-964c7dc17275.png) 这大概就是全部的代码,能帮我看一下么,去掉了shader部分,其他的一样 readSMD.js 我改了一点头 保证加载成功 // import { Quaternion, animation, Matrix4, Vector3 } from 'clay'; Quaternion = clay.math.Quaternion animation = clay.animation Matrix4 = clay.math.Matrix4 Vector3 = clay.math.Vector3 结果是模型成功加载了,但是没有动作

examples 中,如果可以的话,放一个clip的使用例子,学习学习。

You can write the code by yourself like this: #define min(x,y) x>y?y:x #define max(x,y) x>y?x:y

I am trying to write this in golang!