File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4
4
<canvas type="webgl" id="canvas"></canvas>
5
5
</view>
6
6
7
- <view class="hint-words">提示:点击获取,会将摄像头资源转成贴图</view>
7
+ <view class="hint-words">提示:点击获取,会将摄像头资源转成贴图(需基础库3.4.4) </view>
8
8
9
9
<view class="wrap-option">
10
10
<view class="row">
11
11
<button type="primary" bindtap="getJpgImg">获取jpg图像</button>
12
- <button type="primary" bindtap="getLog">开关调试log</button>
12
+ <button type="primary" bindtap="getLog">开关调试log(时间戳) </button>
13
13
</view>
14
14
15
15
</view>
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Component({
15
15
renderByXRFrame : false , // 是否使用 xr-frame渲染
16
16
renderByWebGL2 : true , // 是否使用WebGL2渲染
17
17
workerOn : true ,
18
- maxGaussians : 800000 ,
18
+ maxGaussians : 300000 ,
19
19
} ,
20
20
lifetimes : {
21
21
/**
@@ -83,7 +83,7 @@ Component({
83
83
console . log ( '== PLY Init start ==' )
84
84
85
85
const host = 'https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo' ;
86
- // const host = 'http://10.9.169.125 :8030'
86
+ // const host = 'http://10.9.169.127 :8030'
87
87
88
88
let type ;
89
89
@@ -551,7 +551,7 @@ Component({
551
551
this . camera . lastTouch . x1 = touch . clientX
552
552
this . camera . lastTouch . y1 = touch . clientY
553
553
554
- if ( Math . abs ( movementX ) < 100 && Math . abs ( movementY ) < 100 ) {
554
+ if ( Math . abs ( movementX ) < 50 && Math . abs ( movementY ) < 50 ) {
555
555
// 只处理小移动
556
556
this . camera . theta -= movementX * 0.01 * .3 * moveScale
557
557
this . camera . phi = Math . max ( 1e-6 , Math . min ( Math . PI - 1e-6 , this . camera . phi + movementY * 0.01 * moveScale ) )
Original file line number Diff line number Diff line change @@ -317,10 +317,10 @@ Page({
317
317
zh : '相机帧测试' ,
318
318
url : 'cameraBuffer-detect/cameraBuffer-detect'
319
319
} ,
320
- // {
321
- // zh: '相机帧获取jpg图片',
322
- // url: 'cameraBuffer-jpg/cameraBuffer-jpg'
323
- // },
320
+ {
321
+ zh : '相机帧获取jpg图片' ,
322
+ url : 'cameraBuffer-jpg/cameraBuffer-jpg'
323
+ } ,
324
324
{
325
325
zh : '实时深度图检测' ,
326
326
url : 'depth-detect/depth-detect'
You can’t perform that action at this time.
0 commit comments