- 发版后XR-FRAME的AR摄像头开启失败,报错 AR system start error?
使用XR-FRAME中的Marker模式进行图像识别,体验版调试一切正常,发布之后报错。基础版本库:2.32.3 [xr-frame] <Error: AR system start error(Marker,2,Back,false): from VisionKit, errorcode is 2003002> @https://lib/WAXRFrameRenderContext.js:1:1278441 @https://lib/WAXRFrameRenderContext.js:1:1279343 fail@https://lib/WAServiceMainContext.js:1:1382689 p@https://lib/WAServiceMainContext.js:1:159942 wu@https://lib/WAServiceMainContext.js:1:432366 Iu@https://lib/WAServiceMainContext.js:1:433098 @https://lib/WAServiceMainContext.js:1:433297 s@https://lib/WAServiceMainContext.js:1:121179 callAndRemove@https://lib/WAServiceMainContext.js:1:116727 invokeCallbackHandler@https://lib/WAServiceMainContext.js:1:120226 [图片] 代码结构示意: <xr-scene ar-system="modes:Marker" id="xr-scene" bind:ready="handleReady" bind:ar-ready="handleARReady" bind:tick="handleTick"> <xr-node> <xr-camera id="camera" node-id="camera" position="0.8 2.2 -5" clear-color="0.925 0.925 0.925 1" background="ar" is-ar-camera></xr-camera> </xr-node> </xr-scene>
2023-06-29 - 关于xr-frame中真机视频播放时没有声音
xr-frame中,视频贴图video-texture就算设置abortAudio,在真机中业没有声音。 <xr-asset-load type="video-texture" asset-id="cat" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/videos/cat.mp4" options="abortAudio:false,autoPlay:true,loop:true,placeHolder:https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/videos/cat.jpg" />
2023-03-21 - 变更2.42版本后渐变色 .setStrokeStyle 填充失效
- 当前 Bug 的表现(可附上截图) 2.4.2版本[图片] - 预期表现 2.4.1版本[图片] - 提供一个最简复现 Demo // 设置渐变 var gradient = context.createLinearGradient( 200, 100, 100, 200 ); gradient.addColorStop( '0.15', "#7aa7cb" // 'SkyBlue' ); gradient.addColorStop( '0.85', // 'SteelBlue' "#b8f1ef" ); gradient.addColorStop( '1.0', // 'RoyalBlue' "#8ab0ce" ); context.setLineWidth(7); context.setStrokeStyle(gradient); context.setLineCap('round') context.beginPath(); ctx.arc(110, 90, 80, 0.85 * Math.PI, 0.15 * Math.PI, false); context.stroke(); context.draw();
2018-12-21 - 小游戏中用threejs加载gltf模型问题
如果将模型放在小游戏项目下一起打包,在真机上可以正常加载。 但是,如果把模型文件放在远端服务器,下载回来放入wx.env.USER_DATA_PATH目录后就无法加载。 [图片] var loader = new THREE.GLTFLoader(); // Load a glTF resource loader.load( // resource URL wx.env.USER_DATA_PATH + '/res/penguin.gltf', // called when the resource is loaded function ( gltf ) { let gltfScene : THREE.Scene = gltf.scene; let gltfMesh = gltfScene.children[0].children[1] as THREE.Mesh; PGeometry = gltfMesh; console.log(gltf); Anim = gltf.animations[0] as THREE.AnimationClip; RootBone = gltfScene.children[0] as THREE.Bone; RootBone.scale.set(3, 3, 3); RootBone.position.set(0,0,-5); scene.add(RootBone); mixer = new THREE.AnimationMixer(RootBone); let action = mixer.clipAction(Anim); action.play(); }, // called while loading is progressing function ( xhr ) { console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' ); }, // called when loading has errors function ( error ) { console.log( 'An error happened: ' + error ); } ); }
2018-11-15 - 有人在小游戏使用过three.js加载gltf模型文件成功的吗,能否说明一下怎么
有人在小游戏使用过three.js加载gltf模型文件成功的吗,能否说明一下怎么
2018-10-18