- 个人开发者的小游戏能加载外部3d模型资源吗?
个人开发者用THREE.JS开发的小游戏需要加载外部3D模型资源,请问下载地址在开发者工具里配置就行了吗?
2018-04-09 - 微信小游戏真机与模拟器不一致的问题
-当前 Bug 的表现:用threejs库开发webgl,所有代码都相同,但是真机上球体阴影坐标与真机球体阴影坐标完全不一样。。。 下图是真机,阴影巨大,且偏离: [图片] 下图是模拟器,基本正常: [图片] 同时测试过2部手机,都是这样的,不知道是哪里的坐标系出了问题?
2018-03-27 - 小游戏引入three.js的json模型真机测试出现死循环提示
我用小游戏IDE引入three.js的json动画模型时,模拟器可以出来,真机提示死循环,请问代码中哪里错了吗? ----------------------------------------------------------------------------------------------------------------- var loader = new THREE.JSONLoader(); loader.load('http://image.nardiaoyu.com/video/2018/2/11/neex7hh.js', function (geometry) { var material = new THREE.MeshPhongMaterial({ color: 0xffffff, specular: 0xffffff, shininess: 20, morphTargets: true, vertexColors: THREE.FaceColors, flatShading: true }); var mesh = new THREE.Mesh(geometry, material); var s = 0.35; mesh.scale.set(s, s, s); mesh.position.y = 15; mesh.rotation.y = -1; mesh.castShadow = true; mesh.receiveShadow = true; scene.add(mesh); console.log("mesh", mesh) mixer = new THREE.AnimationMixer(mesh); mixer.clipAction(geometry.animations[0]).setDuration(1).play(); console.log("mixer", mixer) mixers.push(mixer); console.log("mixers", mixers) for (var i = 0; i < mixers.length; i++) { console.log("mixers.length", i) } }); ----------------------------------------------------------------------------- animate() { requestAnimationFrame(this.animate.bind(this), canvas); this.render() //console.log("aaaaa") //stats.update(); } render() { var delta = clock.getDelta(); for (var i = 0; i < mixers.length; i++) { //console.log("mixers.length", mixers.length) mixers[i].update(1000*delta); //console.log("t", t)* }
2018-02-11 - 用小游戏引入three.js的json模型时,动画出不来,请问有办法解决吗?
我用小游戏IDE引入three.js的json动画模型时,模型可以出来,动画怎么都出不来,请问有谁遇到过相同的问题吗? ----------------------------------------------------------------------------------------------------------------- var loader = new THREE.JSONLoader(); loader.load('http://image.nardiaoyu.com/video/2018/2/11/neex7hh.js', function (geometry) { var material = new THREE.MeshPhongMaterial({ color: 0xffffff, specular: 0xffffff, shininess: 20, morphTargets: true, vertexColors: THREE.FaceColors, flatShading: true }); var mesh = new THREE.Mesh(geometry, material); var s = 0.35; mesh.scale.set(s, s, s); mesh.position.y = 15; mesh.rotation.y = -1; mesh.castShadow = true; mesh.receiveShadow = true; scene.add(mesh); console.log("mesh", mesh) mixer = new THREE.AnimationMixer(mesh); mixer.clipAction(geometry.animations[0]).setDuration(1).play(); console.log("mixer", mixer) mixers.push(mixer); console.log("mixers", mixers) for (var i = 0; i < mixers.length; i++) { console.log("mixers.length", i) } }); ----------------------------------------------------------------------------- animate() { requestAnimationFrame(this.animate.bind(this), canvas); this.render() //console.log("aaaaa") //stats.update(); } render() { var delta = clock.getDelta(); for (var i = 0; i < mixers.length; i++) { //console.log("mixers.length", mixers.length) mixers[i].update(delta); //console.log("t", t)* }
2018-02-11 - win10更新后IDE异常卡顿
你想反馈一个 Bug 还是 提一个需求? BUG 如果是 Bug: * Bug 表现是什么?预期表现是什么? WIN10更新后,IDE异常卡顿 win10版本号 os内部版16299.192
2018-02-08 - 自定义分析数据是隔日的还是实时的?
自定义分析数据是隔日的还是实时的?
2017-09-14 - 想用wx.navigateToMiniProgram小程序跳转,这么写对吗?
Page({ data: { }, onLoad: function (options) { }, onTouch: function (event) { wx.navigateToMiniProgram({ appId: 'wx0aaa40325f028000', path: 'pages/infor/inforlist', extarData: { }, envVersion: 'release', success(res) { // 打开成功 } }) console.log(event) }, ---------------------------------------------------------------- <button bindtap="onTouch" >test</button>
2017-08-17