Skip to content

Commit 7e32cc8

Browse files
committed
fix(vk) 修改各类案例细节
1 parent f03e0fc commit 7e32cc8

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

miniprogram/packageAPI/pages/ar/face-detect/behavior.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default function getBehavior() {
9797
mode: 1
9898
}
9999
},
100-
cameraPosition: 0,
100+
cameraPosition: 1,
101101
version: 'v1',
102102
gl: this.gl
103103
})

miniprogram/packageAPI/pages/ar/face-detect/face-detect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Component({
210210
behaviors: [getBehavior(), yuvBehavior],
211211
data: {
212212
theme: 'light',
213-
cameraPosition: 0,
213+
cameraPosition: 1,
214214
buttonDisable: true,
215215
},
216216
lifetimes: {

miniprogram/packageAPI/pages/ar/plane-ar-v2-options/plane-ar-v2-options.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<view class="wrap-option">
1616
<view class="row">
1717
<button type="primary" bindtap="placeItem">识别点放置模型</button>
18-
<button type="primary" bindtap="changeDepthFlag">开启关闭深度遮挡</button>
18+
<!-- <button type="primary" bindtap="changeDepthFlag">开启关闭深度遮挡</button> -->
1919
</view>
2020
<view class="row">
2121
<button type="primary" disabled="{{markerImgList.length === 0}}" bindtap="removeMarker">删除已有 marker</button>

miniprogram/packageAPI/pages/ar/plane-ar-v2/behavior.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,15 @@ export default function getBehavior() {
314314

315315
const geometry = new THREE.BoxGeometry( 1, 1, 1 );
316316

317+
const scale = 0.1;
317318
const m1 = new THREE.MeshPhysicalMaterial( {
318319
metalness: 0.0,
319320
roughness: 0.1,
320321
color: 0xff0000,
321322
} );
322323
const x = new THREE.Mesh( geometry, m1 );
323-
x.position.set(1, 0, 0 );
324-
x.scale.set(2, 0.1, 0.1);
324+
x.position.set(1.5 * scale, 0, 0 );
325+
x.scale.set(3 * scale, 0.1 * scale, 0.1 * scale);
325326
scene.add( x );
326327

327328
const m2 = new THREE.MeshPhysicalMaterial( {
@@ -330,8 +331,8 @@ export default function getBehavior() {
330331
color: 0x00ff00,
331332
} );
332333
const y = new THREE.Mesh( geometry, m2 );
333-
y.position.set(0, 1, 0 );
334-
y.scale.set(0.1, 2, 0.1);
334+
y.position.set(0, 1.5 * scale, 0 );
335+
y.scale.set(0.1 * scale, 3 * scale, 0.1 * scale);
335336
scene.add( y );
336337

337338
const m3 = new THREE.MeshPhysicalMaterial( {
@@ -340,8 +341,8 @@ export default function getBehavior() {
340341
color: 0x0000ff,
341342
} );
342343
const z = new THREE.Mesh( geometry, m3 );
343-
z.position.set(0, 0, 1 );
344-
z.scale.set(0.1, 0.1, 2);
344+
z.position.set(0, 0, 1.5 * scale );
345+
z.scale.set(0.1 * scale, 0.1 * scale, 3 * scale);
345346
scene.add( z );
346347
},
347348
updateAnimation() {

miniprogram/page/API/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,12 @@ Page({
289289
zh: '水平面AR-v2-marker识别',
290290
url: 'plane-ar-v2-marker/plane-ar-v2-marker'
291291
},
292+
// {
293+
// zh: '水平面AR-v2-虚实遮挡',
294+
// url: 'plane-ar-v2-depth/plane-ar-v2-depth'
295+
// },
292296
{
293-
zh: '水平面AR-v2-虚实遮挡',
294-
url: 'plane-ar-v2-depth/plane-ar-v2-depth'
295-
},
296-
{
297-
zh: '水平面AR-v2-多种附加能力',
297+
zh: '水平面AR-v2-附加能力',
298298
url: 'plane-ar-v2-options/plane-ar-v2-options'
299299
},
300300
{

0 commit comments

Comments
 (0)