您好,有解决吗,我现在也有这个问题
xr-camera很模糊,Marker识别功能正常,是xr-camera配置问题吗?我用vue3 & uniapp开发xr-frame项目,引用示例里面的xr-ar-2dmarker,在开发中工具中预览成这个样子,请问这个是什么问题,如何解决! [图片] 附上代码: <xr-scene ar-system="modes:Marker" id="xr-scene" bind:ready="handleReady" bind:ar-ready="handleARReady" bind:ar-error="handleARError"> <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded"> <xr-asset-load type="gltf" asset-id="gltf" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/butterfly/index.glb" /> </xr-assets> <xr-env env-data="xr-frame-team-workspace-day" /> <xr-node wx:if="{{arReady}}"> <xr-ar-tracker mode="Marker" src="{{markerImg}}"> <xr-gltf model="gltf" binde:tick="handleTick(1)" anim-autoplay position="0.2 0 -0.2" scale="0.6 0.6 0.6" rotation="0 -50 0" /> <xr-gltf model="gltf" binde:tick="handleTick(2)" anim-autoplay position="0.4 0 0.3" scale="0.5 0.5 0.5" rotation="0 -50 0" /> <xr-gltf model="gltf" binde:tick="handleTick(3)" anim-autoplay position="-0.3 0 0.3" scale="0.4 0.4 0.4" rotation="0 -50 0" /> </xr-ar-tracker> <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-node node-id="lights"> <xr-light type="ambient" color="1 1 1" intensity="1" /> <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="3" /> </xr-node> </xr-scene>
09-11问题是wx.canvasToTempFilePath用摄像头后给出的tempFilePath就是空白图片
使用chooseMedia选择图片然后使用canvas生成图片,ios端生成为空白?使用chooseMedia选择图片然后使用canvas生成图片,在chooseMedia选择拍照时,iOS端第一次生成正常,然后均为全白,每次重启微信后第一次正常,后面全白,选择从相册中选图片则没有问题一切正常,安卓端一切正常。目前iOS13 、15、16均有此问题。
2022-11-04