Skip to content

Commit f03e0fc

Browse files
committed
(feat)vk: 暴露案例
1 parent d2211d6 commit f03e0fc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

miniprogram/packageAPI/pages/ar/cameraBuffer-jpg/cameraBuffer-jpg.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<canvas type="webgl" id="canvas"></canvas>
55
</view>
66

7-
<view class="hint-words">提示:点击获取,会将摄像头资源转成贴图</view>
7+
<view class="hint-words">提示:点击获取,会将摄像头资源转成贴图(需基础库3.4.4)</view>
88

99
<view class="wrap-option">
1010
<view class="row">
1111
<button type="primary" bindtap="getJpgImg">获取jpg图像</button>
12-
<button type="primary" bindtap="getLog">开关调试log</button>
12+
<button type="primary" bindtap="getLog">开关调试log(时间戳)</button>
1313
</view>
1414

1515
</view>

miniprogram/packageAPI/pages/ar/gaussian-splatting/gaussian-splatting.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Component({
1515
renderByXRFrame: false, // 是否使用 xr-frame渲染
1616
renderByWebGL2: true, // 是否使用WebGL2渲染
1717
workerOn: true,
18-
maxGaussians: 800000,
18+
maxGaussians: 300000,
1919
},
2020
lifetimes: {
2121
/**
@@ -83,7 +83,7 @@ Component({
8383
console.log('== PLY Init start ==')
8484

8585
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'
8787

8888
let type;
8989

@@ -551,7 +551,7 @@ Component({
551551
this.camera.lastTouch.x1 = touch.clientX
552552
this.camera.lastTouch.y1 = touch.clientY
553553

554-
if (Math.abs(movementX) < 100 && Math.abs(movementY) < 100) {
554+
if (Math.abs(movementX) < 50 && Math.abs(movementY) < 50) {
555555
// 只处理小移动
556556
this.camera.theta -= movementX * 0.01 * .3 * moveScale
557557
this.camera.phi = Math.max(1e-6, Math.min(Math.PI - 1e-6, this.camera.phi + movementY * 0.01 * moveScale))

miniprogram/page/API/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,10 @@ Page({
317317
zh: '相机帧测试',
318318
url: 'cameraBuffer-detect/cameraBuffer-detect'
319319
},
320-
// {
321-
// zh: '相机帧获取jpg图片',
322-
// url: 'cameraBuffer-jpg/cameraBuffer-jpg'
323-
// },
320+
{
321+
zh: '相机帧获取jpg图片',
322+
url: 'cameraBuffer-jpg/cameraBuffer-jpg'
323+
},
324324
{
325325
zh: '实时深度图检测',
326326
url: 'depth-detect/depth-detect'

0 commit comments

Comments
 (0)