-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
From the proposal:
function onXRFrame(timestamp, frame) {
let detectedPlanes = frame.worldInformation.detectedPlanes;
detectedPlanes.forEach(plane => {
let planePose = frame.getPose(plane.planeSpace, xrReferenceSpace);
let planeVertices = plane.polygon; // plane.polygon is an array of objects
// containing x,y,z coordinates
// ...draw plane_vertices relative to plane_pose...
});
"planes" are usually requested by a user pointing to a certain area and then the logic tries to detect a plane in that area. It's not an ongoing process (such as meshing and headpose).
I think it would be better if this API takes a direction and some sort of area and then returns a promise with the detected planes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels