Skip to content

Commit 7479221

Browse files
feat: raw plane processing for Android
1 parent d530ccb commit 7479221

File tree

10 files changed

+24
-20
lines changed

10 files changed

+24
-20
lines changed
1.69 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VIRO_VERSION = "2.44.1";
1+
export const VIRO_VERSION = "2.44.2";

dist/components/Material/ViroMaterials.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1717
exports.ViroMaterials = void 0;
1818
const react_native_1 = require("react-native");
1919
// @ts-ignore
20-
const AssetRegistry_1 = __importDefault(require("react-native/Libraries/Image/AssetRegistry"));
20+
const AssetRegistry_1 = require("react-native/Libraries/Image/AssetRegistry");
2121
// @ts-ignore
2222
const resolveAssetSource_1 = __importDefault(require("react-native/Libraries/Image/resolveAssetSource"));
2323
var MaterialManager = react_native_1.NativeModules.VRTMaterialManager;
@@ -47,7 +47,7 @@ class ViroMaterials {
4747
else {
4848
var assetType = "unknown";
4949
if (typeof material[prop] !== "object") {
50-
var asset = AssetRegistry_1.default.getAssetByID(material[prop]);
50+
var asset = (0, AssetRegistry_1.getAssetByID)(material[prop]);
5151
if (asset) {
5252
assetType = asset.type;
5353
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export declare const VIRO_VERSION = "2.44.1";
1+
export declare const VIRO_VERSION = "2.44.2";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
33
exports.VIRO_VERSION = void 0;
4-
exports.VIRO_VERSION = "2.44.1";
4+
exports.VIRO_VERSION = "2.44.2";

ios/dist/ViroRenderer/ViroKit.framework/Headers/VROARPlaneAnchor.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@
3333
#include <chrono>
3434

3535
/*
36-
OPTIONAL: Enable this flag to use change detection and update throttling.
37-
By default, all updates from ARCore/ARKit are passed through for maximum precision.
38-
Enable this only if you need to reduce update frequency for performance reasons.
39-
40-
WARNING: Enabling this may reduce precision and cause ViroCore to behave differently
41-
from native ARCore/ARKit applications.
36+
ENABLED: Change detection and update throttling to reduce noise and artifacts.
37+
This filters out small plane changes and prevents excessive updates, which is
38+
particularly important for vertical plane detection where ARCore can be noisy.
39+
40+
Thresholds:
41+
- Minimum extent change: 1cm or 5%
42+
- Minimum center change: 1cm
43+
- Update throttle: 100ms (10 updates/sec max)
4244
*/
43-
// #define VRO_PLANE_CHANGE_DETECTION_ENABLED
45+
#define VRO_PLANE_CHANGE_DETECTION_ENABLED
4446

4547
enum class VROARPlaneAlignment {
4648
Horizontal = 0x1,
0 Bytes
Binary file not shown.

ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/VROARPlaneAnchor.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@
3333
#include <chrono>
3434

3535
/*
36-
OPTIONAL: Enable this flag to use change detection and update throttling.
37-
By default, all updates from ARCore/ARKit are passed through for maximum precision.
38-
Enable this only if you need to reduce update frequency for performance reasons.
39-
40-
WARNING: Enabling this may reduce precision and cause ViroCore to behave differently
41-
from native ARCore/ARKit applications.
36+
ENABLED: Change detection and update throttling to reduce noise and artifacts.
37+
This filters out small plane changes and prevents excessive updates, which is
38+
particularly important for vertical plane detection where ARCore can be noisy.
39+
40+
Thresholds:
41+
- Minimum extent change: 1cm or 5%
42+
- Minimum center change: 1cm
43+
- Update throttle: 100ms (10 updates/sec max)
4244
*/
43-
// #define VRO_PLANE_CHANGE_DETECTION_ENABLED
45+
#define VRO_PLANE_CHANGE_DETECTION_ENABLED
4446

4547
enum class VROARPlaneAlignment {
4648
Horizontal = 0x1,
0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "dist/index.js",
44
"module": "dist/index.js",
55
"types": "dist/index.d.ts",
6-
"version": "2.44.1",
6+
"version": "2.44.2",
77
"license": "MIT",
88
"publishConfig": {
99
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
 (0)