- VKSession.addMarker如何添加多个识别图?
VKSession.addMarker如何添加多个识别图?
2022-09-15 - 给obj模型添加材质时出现ar背景反复镜像的问题?
[图片]
2022-09-05 - IOS真机调试view盖住了canvas但点击事件失效?
使用官方的ar示例
2022-08-26 - 如何获取video节点而不是videocontext?
[图片][图片]
2022-08-25 - createSelector如何获取video元素节点?用于threejs的VideoTexture
[图片] [图片] 目前只能成功获取videocontext但无法用于VideoTexture中, 项目需求是在现实背景中渲染视频,目前还有另一个利用canvasTexture的方案也还没成功
2022-08-25 - 如何引入NPM包内的路径文件?比如three-platformize的loads
[图片] [图片] [图片] [图片] [图片]
2022-08-10 - 构建npm后引入模块,报错module is not difined 如何解决?
[图片][图片] [图片]
2022-07-27 - 做小程序ar图像识别检测项目中发现,onCameraFrame中保存绘制导出图片,越来越卡怎么解决?
onCameraFrame、canvasPutImageData、canvasToTempFilePath 主要是使用以上三个api会导致小程序canvas越来越卡顿
2022-07-22 - swiper调用animation导致swiper-item自动垂直布局,如何更改?
基础库2.24.7 ,在去掉animation的时候swiper显示一切正常 [图片] wxml <view class="container {{isMask === true ? 'mask-blur':''}}"> <swiper current="{{currentBannerIndex}}" bindchange="handleChangeBanner" next-margin="60rpx" previous-margin="60rpx" class="swiper"> <swiper-item wx:for="{{list}}" wx:key="id" animation="{{currentBannerIndex == index ? animationSelected : animationNoSelected}}"> <view class="swiper-item-view"> <text class="addtime">{{item.addTime}}</text> <view class="swiper-item" bindtap="gopriview" data-item="{{item}}"> <image src="{{item.bookCover}}" class="scrollImage"></image> <text>{{item.projectIntroduce}}</text> </view> </view> </swiper-item> </swiper> </view> js Page({ data: { list: [ { projectIntroduce: "text1", addTime: "123", bookCover: "//obsa.arsnowslide.com/195360628956909568/244552849175306240.jpg", }, { projectIntroduce: "text1", addTime: "123", bookCover: "//obsa.arsnowslide.com/195360628956909568/244552849175306240.jpg", }, ], title: "历史记录", isMask: false, borchureDetail: {}, animationSelected: {}, animationNoSelected: {}, currentBannerIndex: 0, }, onLoad(options) {}, handleChangeBanner(e) { if (e.detail.source !== "touch") return; this.setData({ currentBannerIndex: e.detail.current, }); console.log(this.data.currentBannerIndex); this.enlarge(); this.shrink(); }, enlarge() { console.log("enlarge"); let animationSelected = wx.createAnimation({ duration: 1000, timingFunction: "ease", }); animationSelected.scale(1.2, 1.2).step(); this.setData({ animationSelected: animationSelected.export(), }); }, shrink() { console.log("shrink"); let animationNoSelected = wx.createAnimation({ duration: 1000, timingFunction: "ease", }); animationNoSelected.scale(1, 1).step(); this.setData({ animationNoSelected: animationNoSelected.export(), }); }, onShow() { this.enlarge(); this.shrink(); }, }); less .container { width: 100%; height: 100vh; display: flex; align-items: center; flex-direction: column; .swiper { margin-top: 201rpx; width: 100%; height: 100%; display: flex; .swiper-item-view{ display: flex; flex-direction: column; align-items: center; .addtime { color: #fff; z-index: 99; } .swiper-item { .scrollImage { margin-top: 54rpx; border-radius: 20rpx; width: 500rpx; height: 700rpx; } text { margin-top: 25rpx; font-size: 30rpx; font-family: PingFang SC; font-weight: 500; color: #020202; line-height: 48rpx; } width: 613rpx; height: 923rpx; display: flex; flex-direction: column; align-items: center; } } } }
2022-07-05