遇到同样的问题,开发、体验版本OK,提交线上报错 AR system start error? [xr-frame] <Error: AR system start error(Marker,2,Back,false): from VisionKit, errorcode is 2003002> @https://lib/WAXRFrameRenderContext.js:1:1303265 @https://lib/WAXRFrameRenderContext.js:1:1304085 fail@https://lib/WAServiceMainContext.js:1:1763185 p@https://lib/WAServiceMainContext.js:1:162322 Ru@https://lib/WAServiceMainContext.js:1:631543 Nu@https://lib/WAServiceMainContext.js:1:632275 @https://lib/WAServiceMainContext.js:1:632474 s@https://lib/WAServiceMainContext.js:1:123103 callAndRemove@https://lib/WAServiceMainContext.js:1:118651 invokeCallbackHandler@https://lib/WAServiceMainContext.js:1:122150
[xr-frame] AR system start error请问如何解决?[xr-frame] AR system start error(Plane,2,Back,false): from VisionKit, errorcode is 112
2023-09-12遇到同样的问题,开发、体验版本OK,提交线上报错 AR system start error? [xr-frame] @https://lib/WAXRFrameRenderContext.js:1:1303265 @https://lib/WAXRFrameRenderContext.js:1:1304085 fail@https://lib/WAServiceMainContext.js:1:1763185 p@https://lib/WAServiceMainContext.js:1:162322 Ru@https://lib/WAServiceMainContext.js:1:631543 Nu@https://lib/WAServiceMainContext.js:1:632275 @https://lib/WAServiceMainContext.js:1:632474 s@https://lib/WAServiceMainContext.js:1:123103 callAndRemove@https://lib/WAServiceMainContext.js:1:118651 invokeCallbackHandler@https://lib/WAServiceMainContext.js:1:122150
发版后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-09-12楼主试过直接从服务器加载gltf吗, GLTFLoader--onLoad回调不执行,看console-network, 资源已请求到了,onLoad回调就是不执行, 有知道的么 @殷小雨 @郑家乐
小游戏中用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-12-11解决了吗? GLTFLoader--onLoad回调不执行
有人在小游戏使用过three.js加载gltf模型文件成功的吗,能否说明一下怎么有人在小游戏使用过three.js加载gltf模型文件成功的吗,能否说明一下怎么
2018-12-11