你下载对应的 submodule 放进去也可以
大佬能不能看看运行时更新节点的问题呢
在运行时,我这么写,大大多数时候,形状是不会更新的。
我用的是Sower模式
upboxs(spline:Spline, points:Vec3[]) { if( points.length <= spline.nodes.length) { for(let i = 0; i < this.path.length; i+=3) { spline._nodes[i].position.set(points[i]); spline._nodes[i].direction.set(points[i]); } spline._nodes = spline.nodes.slice(0,points.length) } else { let x = spline.nodes.length; for(let i = 0 ; i < spline.nodes.length; i++) { spline._nodes[i].position.set(points[i]); spline._nodes[i].direction.set(points[i]); } for(let i = x; i < points.length; i ++) { let v = points[i]; spline.addNode(v,v); } } }
设置完后调用spline._createCurves();形状就会更新了。
我觉得你这个功能可以加到编辑器上面去
大佬,使用mesh-tiling,运行时动态创建曲线,帧率掉到了四五帧,这个有办法解决吗?
大佬运行时更新频率多高呢,是使用的mesh tiling吗?
求问大佬一个问题,我看到代码,mesh-bender在fill的时候,是对模型的x轴进行重复/延展的。
如果我要修改成,比如对模型的z轴,或者y轴进行重复,我要修改哪里呀?感谢!
Cloning into ‘F:/Game/spline-tool-examples/spline-tool-examples/assets/shader-lib’…
warning: templates not found in C:/Program Files/Git/mingw64/share/git-core/templates
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of ‘git@github.com:2youyou2/shader-lib.git’ into submodule path ‘F:/Game/spline-tool-examples/spline-tool-examples/assets/shader-lib’ failed
Failed to clone ‘assets/shader-lib’. Retry scheduled
Cloning into ‘F:/Game/spline-tool-examples/spline-tool-examples/assets/shader-lib’…
warning: templates not found in C:/Program Files/Git/mingw64/share/git-core/templates
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of ‘git@github.com:2youyou2/shader-lib.git’ into submodule path ‘F:/Game/spline-tool-examples/spline-tool-examples/assets/shader-lib’ failed
Failed to clone ‘assets/shader-lib’ a second time, aborting
请问 我git报没有子模块的拉起权限
为什么你们的demo都不能放国内的网站上面 码云之类的
看到这个工具 想起来 UG、ProE(Creo)、SolidWorks了。
请问一下,有没有3.0的splineTool版本。
3.0.1 能用吗
mark!!!
用不了啊~!
手动clone到 对应的目录下就行了
这么好的工具,怎么不支持3.x呢。最近刚好要做一个生成路径的小游戏,正愁没有思路呢,却遇到了这个