WO2017054420A1 - 确定虚拟物件在虚拟空间中位置的方法及装置 - Google Patents

确定虚拟物件在虚拟空间中位置的方法及装置 Download PDF

Info

Publication number
WO2017054420A1
WO2017054420A1 PCT/CN2016/076541 CN2016076541W WO2017054420A1 WO 2017054420 A1 WO2017054420 A1 WO 2017054420A1 CN 2016076541 W CN2016076541 W CN 2016076541W WO 2017054420 A1 WO2017054420 A1 WO 2017054420A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
space
real
determining
virtual object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/076541
Other languages
English (en)
French (fr)
Inventor
张大为
龙寿伦
李刚
张丰学
熊旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dlodlo Technologies Co Ltd
Original Assignee
Shenzhen Dlodlo Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dlodlo Technologies Co Ltd filed Critical Shenzhen Dlodlo Technologies Co Ltd
Priority to US15/764,836 priority Critical patent/US10957065B2/en
Priority to EP16850048.6A priority patent/EP3358444A4/en
Priority to KR1020187011616A priority patent/KR20180059852A/ko
Priority to JP2018516786A priority patent/JP2018536916A/ja
Publication of WO2017054420A1 publication Critical patent/WO2017054420A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional [3D], e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating three-dimensional [3D] models or images for computer graphics
    • G06T19/003Navigation within 3D models or images
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating three-dimensional [3D] models or images for computer graphics
    • G06T19/20Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts

Definitions

  • the present invention relates to the field of virtual reality, and in particular, to a method and apparatus for determining a location of a virtual object in a virtual space.
  • Virtual Realiy (VR) technology refers to the use of electronic devices to construct a virtual space, and according to the virtual space, to provide users with a technique for visual, auditory and other sensory simulation.
  • the use of virtual reality technology allows the user to interact with virtual objects in the virtual space, providing the user with an experience of visual, auditory, tactile, and the like.
  • the virtual reality device In order to enhance the authenticity of the virtual space and provide the user with an immersive visual experience, the virtual reality device needs to construct a virtual scene in the virtual space according to the scene in the real space.
  • the virtual reality device When constructing a virtual scene in a virtual space according to a scene in real space, the virtual reality device needs to construct a corresponding virtual object in the virtual space according to the objects in the implementation space. For example, when there is a table in the real space, it is necessary to construct a virtual table in the virtual space according to the corresponding table in the real space. Therefore, there is a need for a method for determining the position of a virtual object in a virtual space based on the position of the real object in real space.
  • Embodiments of the present invention provide a method and apparatus for determining a location of a virtual object in a virtual space to meet a technical requirement of adjusting an attitude angle of a virtual object in a virtual space according to a change in attitude angle of the peripheral device.
  • an embodiment of the present invention provides a method for determining a location of a virtual object in a virtual space, the method comprising: detecting whether a predetermined trigger condition for determining a location of a virtual object in a virtual space according to a movement trajectory of the peripheral device is satisfied; When the predetermined trigger condition is met, the moving trajectory of the peripheral device in the real space is sampled, thereby acquiring at least three sampling points; when the moving trajectory forms a loop, determining a real space plane where the sampling point is located; Converting the real space plane to a target in the virtual space according to a preset conversion relationship a plane; a specified face of the virtual object is disposed at the target plane to determine a position of the virtual object in the virtual space.
  • the determining whether the predetermined trigger condition for determining the location of the virtual object in the virtual space according to the movement trajectory of the peripheral device comprises: detecting the location of the peripheral device Whether the component is in contact with a real object in real space.
  • the moving track of the peripheral device in the real space is sampled, thereby acquiring at least
  • the three sampling points include: when the positioning component is in contact with the real component, sampling a motion trajectory of the positioning component in a real space, thereby acquiring at least three sampling points.
  • determining a real space plane where the sampling point is located includes: determining the sampling point in a real space reference coordinate system a coordinate value in the middle; when the moving track forms a loop, the real plane is fitted according to the coordinate value of the sampling point.
  • the specified plane of the virtual object is set in the target plane, so that determining the location of the virtual object in the virtual space comprises: designating the virtual object a face is disposed at the target plane to determine a position of the virtual object in the virtual space, wherein the virtual object corresponds to the real object, a reference point in the specified plane and the target plane The reference points coincide.
  • an embodiment of the present invention provides a device for determining a location of a virtual object in a virtual space, the device comprising: a detecting unit, configured to detect whether the location of the virtual object in the virtual space is determined according to a movement trajectory of the peripheral device a predetermined triggering condition; the sampling unit is configured to: when the predetermined trigger condition is met, sample a moving trajectory of the peripheral device in real space, thereby acquiring at least three sampling points; and determining a unit for using the moving track When forming a loop, determining a real space plane in which the sampling point is located; a converting unit configured to convert the real space plane into a target plane in the virtual space according to a preset conversion relationship; and a positioning unit configured to specify the virtual object A face is disposed at the target plane to determine a position of the virtual object in the virtual space.
  • the detecting unit is specifically configured to detect whether the positioning component of the peripheral device is in contact with a real object in a real space.
  • the sampling unit is specifically configured to sample a motion trajectory of the positioning component in a real space when the positioning component is in contact with the real component, thereby acquiring at least three sampling points.
  • the determining unit includes: a coordinate value determining subunit, configured to determine a coordinate value of the sampling point in a real space reference coordinate system; And a zygomatic unit, configured to fit the real plane according to the coordinate value of the sampling point when the moving track forms a loop.
  • the positioning unit is configured to set a designated surface of the virtual object on the target plane, thereby determining that the virtual object is in the virtual space. a location, wherein the virtual object corresponds to the real object, and a reference point in the specified plane coincides with a reference point in the target plane.
  • a predetermined trigger condition for determining a position of the virtual object in the virtual space according to the movement trajectory of the peripheral device is satisfied; and when the predetermined trigger condition is met, the movement trajectory of the peripheral device in the real space is sampled.
  • the position of the real object in the real space can be determined according to the movement trajectory of the peripheral device in the real space, and then the virtual object is determined in the virtual space according to the position of the real object in the real space.
  • the position of the virtual object in the virtual space is determined according to the position of the real object in the real space.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for determining a location of a virtual object in a virtual space according to the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for determining a position of a virtual object in a virtual space according to the present invention.
  • a flow chart of an embodiment of a method for determining a location of a virtual object in a virtual space is provided.
  • the method may be performed by a Virtual Reality (VR) device, which may be a VR glasses, a VR helmet, or the like, and the peripheral device may have a real-space attitude angle acquisition and reporting capability.
  • VR Virtual Reality
  • the method comprises the following steps:
  • Step 101 Detect whether a predetermined trigger condition for determining a position of the virtual object in the virtual space according to the movement trajectory of the peripheral device is satisfied.
  • the VR device can periodically detect whether the predetermined trigger condition is satisfied.
  • the predetermined trigger condition may be preset by a technician as needed. For example, it may be whether the button specified on the peripheral device is pressed, or whether the positioning component of the peripheral device is in contact with a real object in real space, and the like. Wherein, detecting whether the positioning component of the peripheral device is in contact with the real object in the real space can be determined by the signal reported by the pressure sensor on the positioning component.
  • Step 102 When the predetermined trigger condition is met, the moving track of the peripheral device in the real space is sampled, thereby acquiring at least three sampling points.
  • the VR device needs to determine the location of the virtual object in the virtual space.
  • the VR device can sample the moving track of the peripheral device in the real space according to the preset frequency. Since at least three points on a certain plane are required to determine the position of the plane, the VR device can acquire at least three sampling points when sampling the moving trajectory.
  • the VR device may sample the motion trajectory of the positioning component in the real space according to a predetermined sampling frequency, thereby acquiring at least three sampling points.
  • the VR device may also sample the motion trajectory of the positioning component in the real space according to a predetermined sampling frequency when the designated button is pressed, thereby acquiring at least three sampling points.
  • Step 103 Determine a real space plane where the sampling point is located when the moving track forms a loop.
  • the VR device may determine the real space plane where the sampling point is located when the moving track forms a loop.
  • the moving track forming loop may mean that the moving track is formed twice in the real space. The same coordinate point. For example, the device detects that a line between two adjacent sampling points intersects with a line between two other adjacent sampling points. When you point, you can think that the movement track forms a loop.
  • the VR device can fit the real plane where the sampling point is located according to the coordinates of the sampling point.
  • the coordinate of the sampling point may be the coordinate of the sampling point in any preset coordinate system in the real space, and the real plane may also be represented by an expression in the preset coordinate system.
  • Step 104 Convert the real space plane into a target plane in the virtual space according to a preset conversion relationship.
  • the real space plane may be converted into a target plane in the virtual space according to a preset conversion relationship.
  • the preset conversion relationship may be a fixed conversion relationship, or may be a conversion relationship selected from the candidate conversion relationship according to a predetermined trigger condition.
  • the conversion relationship is calculated according to A, B, C, and D.
  • at least one of a, b, c, and d is not 0.
  • Step 105 Set a specified face of the virtual object on the target plane, thereby determining a position of the virtual object in the virtual space.
  • the virtual object will typically have multiple faces, so after the target location is determined, the VR device can set the target face in the plurality of faces to determine the location of the virtual object in the virtual space.
  • the designated surface may be any surface of the surface of the virtual object, and may be any surface inside the virtual object.
  • the target plane and the specified plane are generally planes that are infinitely extended, when the specified plane of the virtual object is set in the target plane, first, a point can be selected as the reference point in the target plane, and then the virtual object is selected.
  • a point on the designated face is used as a reference point, and a designated face of the virtual object is placed on the target plane such that the reference point coincides with the reference point.
  • the reference point may be any point in the target plane, and may be automatically selected by the VR device; the reference point may be any point in the specified plane, since the specified plane is usually a polygon. Therefore, in general, the reference point may be the center of gravity of the specified plane.
  • the VR device can determine the position of the real object in the real space according to the moving trajectory of the peripheral device in the real space, and then determine the virtual object in the virtual space according to the position of the real object in the real space.
  • the position in the space is calculated, so as to determine the position of the virtual object in the virtual space according to the position of the real object in the real space.
  • the present invention also provides means for determining the location of the virtual object in the virtual space.
  • FIG. 2 is a schematic structural diagram of an apparatus for determining a position of a virtual object in a virtual space according to the present invention.
  • the device can be placed on a VR device.
  • the apparatus may include: a detecting unit 201, a sampling unit 202, a determining unit 203, a converting unit 204, and a positioning unit 205.
  • the detecting unit 201 is configured to detect whether a predetermined trigger condition for determining a position of the virtual object in the virtual space according to the movement trajectory of the peripheral device is satisfied; the sampling unit 202 is configured to: when the predetermined trigger condition is met, the peripheral device is The moving trajectory in the real space is sampled to obtain at least three sampling points; the determining unit 203 is configured to determine a real space plane where the sampling point is located when the moving trajectory forms a loop; and the converting unit 204 is configured to follow The preset conversion relationship converts the real space plane into a target plane in the virtual space; the positioning unit 205 is configured to set a specified surface of the virtual object on the target plane, thereby determining the position of the virtual object in the virtual space .
  • the detecting unit 201 is specifically configured to detect whether the positioning component of the peripheral device is in contact with a real object in a real space.
  • the sampling unit 202 is configured to: when the positioning component is in contact with the real component, sample a motion trajectory of the positioning component in a real space, thereby acquiring at least three sampling points.
  • the determining unit 203 includes: a coordinate value determining subunit, configured to determine a coordinate value of the sampling point in a real space reference coordinate system; and a plane fitting subunit, configured to form a loop in the moving track And, the real plane is fitted according to the coordinate value of the sampling point.
  • the positioning unit 205 is specifically configured to: set a specified surface of the virtual object on the target plane, thereby determining a location of the virtual object in the virtual space, where the virtual object and the real object are Correspondingly, the reference point in the specified plane coincides with the reference point in the target plane.
  • the position of the real object in the real space can be determined according to the moving trajectory of the peripheral device in the real space, and then the position of the virtual object in the virtual space is determined according to the position of the real object in the real space, thereby realizing The position of the virtual object in the virtual space is determined according to the position of the real object in the real space.
  • the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM. , a disk, an optical disk, etc., including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Architecture (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了确定虚拟物件在虚拟空间中位置的方法及装置。所述方法包括:检测是否满足预定触发条件;在满足预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点;在移动轨迹形成回路时,确定采样点所在的现实空间平面;按照预设转换关系将现实空间平面转换为虚拟空间中的目标平面;将虚拟物件的指定面设置在目标平面,从而确定虚拟物件在虚拟空间中的位置。采用本发明所提供的方法及装置,可以根据现实物件在现实空间中的位置确定虚拟物件在虚拟空间中的位置,从而确定虚拟物件在虚拟空间中的位置。

Description

确定虚拟物件在虚拟空间中位置的方法及装置
本申请要求于2015年9月30日提交中国专利局、申请号为201510638981.7、发明名称为“确定虚拟物件在虚拟空间中位置的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及虚拟现实领域,尤其涉及确定虚拟物件在虚拟空间中位置的方法及装置。
背景技术
虚拟现实(Virtual Realiy,简称VR)技术是指利用电子设备构建一个虚拟空间,并且根据该虚拟空间为用户提供关于视觉、听觉等感官模拟的一种技术。采用虚拟现实技术可以使用户与该虚拟空间内的虚拟物件进行互动,为用户提供如同身历其境的视觉、听觉、触觉等体验。
为增强虚拟空间的真实性,为用户提供身临其境的视觉体验,虚拟现实设备需要根据现实空间中的场景构建虚拟空间中的虚拟场景。在根据现实空间中的场景构建虚拟空间中的虚拟场景时,虚拟现实设备需要根据实现空间中的物件在虚拟空间中构建相应的虚拟物件。例如,在现实空间中存在一张桌子时,需要根据现实空间中的桌子相应的在虚拟空间中构建一张虚拟的桌子。因此需要一种方法,能够根据现实物件在现实空间中的位置,确定虚拟物件在虚拟空间中的位置。
发明内容
本发明实施例提供了确定虚拟物件在虚拟空间中位置的方法及装置,以满足根据外设设备的姿态角变化调整虚拟物体在虚拟空间中的姿态角的技术需求。
第一方面,本发明实施例提供了一种确定虚拟物件在虚拟空间中位置的方法,该方法包括:检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件;在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点;在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面;按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标 平面;将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。
结合第一方面,在第一方面第一种可能的实现方式中,检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件包括:检测所述外设设备的定位部件是否与现实空间中的现实物件相接触。
结合第一方面第一种可能的实现方式,在第一方面第二种可能的实现方式中,在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点包括:在所述定位部件与所述现实部件相接触时,对所述定位部件在现实空间中的运动轨迹进行采样,从而获取至少三个采样点。
结合第一方面,在第一方面第三种可能的实现方式中,在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面包括:确定所述采样点在现实空间参考坐标系中的坐标值;在所述移动轨迹形成回路时,根据所述采样点的所述坐标值拟合出所述现实平面。
结合第一方面,在第一方面第四种可能的实现方式中,将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置包括:将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置,其中,所述虚拟物件与所述现实物件相对应,所述指定平面中的参考点与所述目标平面中的基准点重合。
第二方面,本发明实施例提供了一种确定虚拟物件在虚拟空间中位置的装置,该装置包括:检测单元,用于检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件;采样单元,用于在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点;确定单元,用于在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面;转换单元,用于按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标平面;定位单元,用于将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。
结合第二方面,在第二方面第一种可能的实现方式中,所述检测单元,具体用于检测所述外设设备的定位部件是否与现实空间中的现实物件相接触。
结合第二方面第一种可能的实现方式,在第二方面第二种可能的实现方式中,所 述采样单元,具体用于在所述定位部件与所述现实部件相接触时,对所述定位部件在现实空间中的运动轨迹进行采样,从而获取至少三个采样点。
结合第二方面,在第二方面第三种可能的实现方式中,所述确定单元包括:坐标值确定子单元,用于确定所述采样点在现实空间参考坐标系中的坐标值;平面拟合子单元,用于在所述移动轨迹形成回路时,根据所述采样点的所述坐标值拟合出所述现实平面。
结合第二方面,在第二方面第四种可能的实现方式中,所述定位单元,具体用于将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置,其中,所述虚拟物件与所述现实物件相对应,所述指定平面中的参考点与所述目标平面中的基准点重合。
本发明实施例中,检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件;在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点;在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面;按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标平面;将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。采用本发明所提供的方法及装置,可以根据外设设备的在现实空间中的移动轨迹确定现实物件在现实空间中的位置,然后根据现实物件在现实空间中的位置确定虚拟物件在虚拟空间中的位置,从而实现根据现实物件在现实空间中的位置,确定虚拟物件在虚拟空间中的位置。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明确定虚拟物件在虚拟空间中位置的方法一个实施例的流程示意图;
图2为本发明确定虚拟物件在虚拟空间中位置的装置一个实施例的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,为本发明确定虚拟物件在虚拟空间中位置的方法一个实施例的流程图。该方法可以由虚拟现实(Virtual Reality,简称VR)设备执行,所述VR设备可以是VR眼镜、VR头盔等,所述外设设备可以具有现实空间姿态角获取和上报能力的设备。该方法包括如下步骤:
步骤101,检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件。
VR设备可以周期性检测预定触发条件是否满足。其中,所述预定触发条件可以由技术人员根据需要预先进行设置。例如,可以是外设设备上指定的按钮是否被按下,或者,外设设备的定位部件是否与现实空间中的现实物件相接触等等。其中,检测外设设备的定位部件是否与现实空间中的现实物件相接触可以通过定位部件上压力传感器上报的信号确定。
步骤102,在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点。
在满足预定触发条件时,说明VR设备需要确定虚拟物件在虚拟空间中的位置。此时,VR设备可以按照预设的频率对外设设备在现实空间中的移动轨迹进行采样。由于至少需要某平面上的三个点才能确定该平面的位置,因此,VR设备在对所述移动轨迹进行采样时,可以获取至少三个采样点。
例如,在所述定位部件与所述现实部件相接触时,VR设备可以按照预定的采样频率对所述定位部件在现实空间中的运动轨迹进行采样,从而获取至少三个采样点。或者,所述VR设备也可以在指定按钮被按下时,按照预定的采样频率对所述定位部件在现实空间中的运动轨迹进行采样,从而获取至少三个采样点。
步骤103,在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面。
由于存在计算误差,在根据采样点确定现实平面时,采样点的分布越靠近同一条直线,则根据采样点确定的现实平面越不准确。为使现实平面确定的更加准确,VR设备可以在所述移动轨迹形成回路时,再确定所述采样点所在的现实空间平面其中,移动轨迹形成回路可以是指移动轨迹形成两次经过现实空间中的同一坐标点。例如,设备检测到两个相邻采样点之间的连线与另外两个相邻采样的点之间的连线存在交 点时,可以认为移动轨迹形成了回路。
在所述移动轨迹形成回路时,VR设备可以根据采样点的坐标拟合出采样点所在的现实平面。其中,所述采样点的坐标可以是所述采样点在现实空间中任意一个预设坐标系中的坐标,所述现实平面也可以所述预设坐标系中的表达式表示。例如,所述显示平面可以用Ax+By+Cz+D=0表示,其中,A、B、C、D中至少有一个取值不为0。
步骤104,按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标平面。
在现实平面的现实位置确定之后,可以按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标平面。其中,所述预设转换关系可以为固定的转换关系,也可以为根据预定触发条件从备选转换关系中选定的转换关系。
例如,当现实位置用Ax+By+Cz+D=0表示时,所述目标位置可以用ax+by+cz+d=0表示,其中,a、b、c、d由VR设备采用预设转换关系根据A、B、C、D计算得出,同样的,a、b、c、d中也至少有一个不为0。
步骤105,将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。
由虚拟物件通常会具有多个面,因此在目标位置确定之后,VR设备可以所述多个面中的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。其中,所述指定面可以是所述虚拟物件的表面的任意一个面,可也是所述虚拟物件内部的任意一个面。
由于目标平面及指定面通常都为无限扩展的平面,因此在将虚拟物件的指定面设置在所述目标平面时,可以首先在所述目标平面中选择一个点作为基准点,然后选择虚拟物件的指定面上一个点作为参考点,在将虚拟物件的指定面设置在所述目标平面并使得所述参考点与所述基准点重合。其中,所述基准点可以是所述目标平面中的任意一点,通常可以由VR设备自动选取;所述参考点则可以为所述指定平面中的任意一点,由于所述指定平面通常为一个多边形,因此通常情况下所述参考点可以为所述指定平面的重心点。
采用本实施例,VR设备可以根据外设设备的在现实空间中的移动轨迹确定现实物件在现实空间中的位置,然后根据现实物件在现实空间中的位置确定虚拟物件在虚 拟空间中的位置,从而实现根据现实物件在现实空间中的位置,确定虚拟物件在虚拟空间中的位置。
与本发明确定虚拟物件在虚拟空间中位置的方法相对应,本发明还提供了确定虚拟物件在虚拟空间中位置的装置。
参见图2,为本发明确定虚拟物件在虚拟空间中位置的装置一个实施例的结构示意图。该装置可以设置在VR设备上。
如图2所示,所述装置可以包括:检测单元201,采样单元202,确定单元203,转换单元204及定位单元205。
其中,检测单元201,用于检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件;采样单元202,用于在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点;确定单元203,用于在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面;转换单元204,用于按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标平面;定位单元205,用于将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。
可选的,所述检测单元201,具体用于检测所述外设设备的定位部件是否与现实空间中的现实物件相接触。
可选的,所述采样单元202,具体用于在所述定位部件与所述现实部件相接触时,对所述定位部件在现实空间中的运动轨迹进行采样,从而获取至少三个采样点。
可选的,所述确定单元203包括:坐标值确定子单元,用于确定所述采样点在现实空间参考坐标系中的坐标值;平面拟合子单元,用于在所述移动轨迹形成回路时,根据所述采样点的所述坐标值拟合出所述现实平面。
可选的,所述定位单元205,具体用于将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置,其中,所述虚拟物件与所述现实物件相对应,所述指定平面中的参考点与所述目标平面中的基准点重合。
采用本实施例,可以根据外设设备的在现实空间中的移动轨迹确定现实物件在现实空间中的位置,然后根据现实物件在现实空间中的位置确定虚拟物件在虚拟空间中的位置,从而实现根据现实物件在现实空间中的位置,确定虚拟物件在虚拟空间中的位置。
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述的本发明实施方式,并不构成对本发明保护范围的限定。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种确定虚拟物件在虚拟空间中位置的方法,其特征在于,包括:
    检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件;
    在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点;
    在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面;
    按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标平面;
    将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。
  2. 如权利要求1所述的方法,其特征在于,检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件包括:
    检测所述外设设备的定位部件是否与现实空间中的现实物件相接触。
  3. 如权利要求2所述的方法,其特征在于,在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点包括:
    在所述定位部件与所述现实部件相接触时,对所述定位部件在现实空间中的运动轨迹进行采样,从而获取至少三个采样点。
  4. 如权利要求1所述的方法,其特征在于,在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面包括:
    确定所述采样点在现实空间参考坐标系中的坐标值;
    在所述移动轨迹形成回路时,根据所述采样点的所述坐标值拟合出所述现实平面。
  5. 如权利要求1所述的方法,其特征在于,将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置包括:
    将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置,其中,所述虚拟物件与所述现实物件相对应,所述指定平面中的参考点与所述目标平面中的基准点重合。
  6. 一种确定虚拟物件在虚拟空间中位置的装置,其特征在于,包括:
    检测单元,用于检测是否满足根据外设设备的移动轨迹确定虚拟物件在虚拟空间中位置的预定触发条件;
    采样单元,用于在满足所述预定触发条件时,对外设设备在现实空间中的移动轨迹进行采样,从而获取至少三个采样点;
    确定单元,用于在所述移动轨迹形成回路时,确定所述采样点所在的现实空间平面;
    转换单元,用于按照预设转换关系将所述现实空间平面转换为虚拟空间中的目标平面;
    定位单元,用于将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置。
  7. 如权利要求6所述的装置,其特征在于,
    所述检测单元,具体用于检测所述外设设备的定位部件是否与现实空间中的现实物件相接触。
  8. 如权利要求7所述的装置,其特征在于,
    所述采样单元,具体用于在所述定位部件与所述现实部件相接触时,对所述定位部件在现实空间中的运动轨迹进行采样,从而获取至少三个采样点。
  9. 如权利要求6所述的装置,其特征在于,所述确定单元包括:
    坐标值确定子单元,用于确定所述采样点在现实空间参考坐标系中的坐标值;
    平面拟合子单元,用于在所述移动轨迹形成回路时,根据所述采样点的所述坐标值拟合出所述现实平面。
  10. 如权利要求6所述的装置,其特征在于,
    所述定位单元,具体用于将虚拟物件的指定面设置在所述目标平面,从而确定所述虚拟物件在虚拟空间中的位置,其中,所述虚拟物件与所述现实物件相对应,所述指定平面中的参考点与所述目标平面中的基准点重合。
PCT/CN2016/076541 2015-09-30 2016-03-16 确定虚拟物件在虚拟空间中位置的方法及装置 Ceased WO2017054420A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US15/764,836 US10957065B2 (en) 2015-09-30 2016-03-16 Method and device for determining position of virtual object in virtual space
EP16850048.6A EP3358444A4 (en) 2015-09-30 2016-03-16 Method and device for determining position of virtual object in virtual space
KR1020187011616A KR20180059852A (ko) 2015-09-30 2016-03-16 가상 공간에서 가상 객체의 위치를 결정하기 위한 방법 및 장치
JP2018516786A JP2018536916A (ja) 2015-09-30 2016-03-16 仮想空間における仮想物体の位置を決定する方法及び装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510638981.7A CN105224084B (zh) 2015-09-30 2015-09-30 确定虚拟物件在虚拟空间中位置的方法及装置
CN201510638981.7 2015-09-30

Publications (1)

Publication Number Publication Date
WO2017054420A1 true WO2017054420A1 (zh) 2017-04-06

Family

ID=54993109

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076541 Ceased WO2017054420A1 (zh) 2015-09-30 2016-03-16 确定虚拟物件在虚拟空间中位置的方法及装置

Country Status (6)

Country Link
US (1) US10957065B2 (zh)
EP (1) EP3358444A4 (zh)
JP (1) JP2018536916A (zh)
KR (1) KR20180059852A (zh)
CN (1) CN105224084B (zh)
WO (1) WO2017054420A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224084B (zh) * 2015-09-30 2018-04-24 深圳多新哆技术有限责任公司 确定虚拟物件在虚拟空间中位置的方法及装置
CN111610858B (zh) 2016-10-26 2023-09-19 创新先进技术有限公司 基于虚拟现实的交互方法及装置
CN110349472B (zh) * 2018-04-02 2021-08-06 北京五一视界数字孪生科技股份有限公司 一种虚拟驾驶应用中虚拟方向盘和真实方向盘对接方法
US12360663B2 (en) 2022-04-26 2025-07-15 Snap Inc. Gesture-based keyboard text entry
CN114879839A (zh) * 2022-05-03 2022-08-09 谢轩豪 元宇宙虚拟场景的动作交互方法、装置、系统及存储介质
US12327302B2 (en) * 2022-05-18 2025-06-10 Snap Inc. Hand-tracked text selection and modification
US12373096B2 (en) 2022-05-31 2025-07-29 Snap Inc. AR-based virtual keyboard

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101052805B1 (ko) * 2008-07-31 2011-07-29 (주)지아트 증강 현실 환경에서의 3차원 모델 객체 저작 방법 및 시스템
CN102200881A (zh) * 2010-03-24 2011-09-28 索尼公司 图像处理装置、图像处理方法以及程序
CN102961871A (zh) * 2012-11-28 2013-03-13 广州代代星电子科技有限公司 实现体感游戏的方法
CN103246345A (zh) * 2012-02-01 2013-08-14 扬州永利宁科技有限公司 电子系统的非触摸控制及其相关方法
CN105224084A (zh) * 2015-09-30 2016-01-06 深圳多新哆技术有限责任公司 确定虚拟物件在虚拟空间中位置的方法及装置

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6329974B1 (en) * 1998-04-30 2001-12-11 Agilent Technologies, Inc. Electro-optical material-based display device having analog pixel drivers
US7466307B2 (en) * 2002-04-11 2008-12-16 Synaptics Incorporated Closed-loop sensor on a solid-state object position detector
JP3944019B2 (ja) * 2002-07-31 2007-07-11 キヤノン株式会社 情報処理装置および方法
JP4447896B2 (ja) 2003-11-25 2010-04-07 キヤノン株式会社 画像処理装置および方法
JP4677273B2 (ja) * 2004-06-29 2011-04-27 キヤノン株式会社 情報処理方法および情報処理装置
JP4685382B2 (ja) 2004-07-30 2011-05-18 株式会社リコー 三次元形状モデルの配置装置、配置方法、配置プログラム及び記録媒体
US8654234B2 (en) * 2009-07-26 2014-02-18 Massachusetts Institute Of Technology Bi-directional screen
JP2011203823A (ja) 2010-03-24 2011-10-13 Sony Corp 画像処理装置、画像処理方法及びプログラム
WO2012121433A1 (en) 2011-03-09 2012-09-13 Lg Electronics Inc. Display device and method for controlling the same
CN102156859B (zh) * 2011-04-21 2012-10-03 刘津甦 手部姿态与空间位置的感知方法
JP5930618B2 (ja) * 2011-06-20 2016-06-08 コニカミノルタ株式会社 空間手書きシステム及び電子ペン
KR101971948B1 (ko) 2011-07-28 2019-04-24 삼성전자주식회사 평면 특성 기반 마커리스 증강 현실 시스템 및 그 동작 방법
CN102722249B (zh) * 2012-06-05 2016-03-30 上海鼎为电子科技(集团)有限公司 操控方法、操控装置及电子装置
US9939259B2 (en) * 2012-10-04 2018-04-10 Hand Held Products, Inc. Measuring object dimensions using mobile computer
US20150193982A1 (en) * 2014-01-03 2015-07-09 Google Inc. Augmented reality overlays using position and orientation to facilitate interactions between electronic devices
CN103744518B (zh) * 2014-01-28 2016-09-28 深圳超多维光电子有限公司 立体交互方法及其显示装置和系统
CN103995584B (zh) * 2014-04-29 2017-11-17 深圳超多维光电子有限公司 立体交互方法及其显示装置、操作棒和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101052805B1 (ko) * 2008-07-31 2011-07-29 (주)지아트 증강 현실 환경에서의 3차원 모델 객체 저작 방법 및 시스템
CN102200881A (zh) * 2010-03-24 2011-09-28 索尼公司 图像处理装置、图像处理方法以及程序
CN103246345A (zh) * 2012-02-01 2013-08-14 扬州永利宁科技有限公司 电子系统的非触摸控制及其相关方法
CN102961871A (zh) * 2012-11-28 2013-03-13 广州代代星电子科技有限公司 实现体感游戏的方法
CN105224084A (zh) * 2015-09-30 2016-01-06 深圳多新哆技术有限责任公司 确定虚拟物件在虚拟空间中位置的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3358444A4 *

Also Published As

Publication number Publication date
US20180211405A1 (en) 2018-07-26
EP3358444A4 (en) 2018-08-22
JP2018536916A (ja) 2018-12-13
CN105224084B (zh) 2018-04-24
CN105224084A (zh) 2016-01-06
US10957065B2 (en) 2021-03-23
EP3358444A1 (en) 2018-08-08
KR20180059852A (ko) 2018-06-05

Similar Documents

Publication Publication Date Title
WO2017054421A1 (zh) 调整虚拟现实图像的方法及装置
JP2018536916A (ja) 仮想空間における仮想物体の位置を決定する方法及び装置
EP3400705B1 (en) Active speaker location detection
WO2017012361A1 (zh) 调整虚拟物件在虚拟空间中位置的方法及装置
WO2017012364A1 (zh) 调整虚拟物件位置及姿态角的方法及装置
JP2016507810A (ja) タッチレスジェスチャインターフェースにおける物体間の距離の使用
US10249084B2 (en) Tap event location with a selection apparatus
CN105978848A (zh) 一种收集传感器数据的处理方法和装置
WO2019128109A1 (zh) 一种基于人脸追踪的动向投影方法、装置及电子设备
US9213413B2 (en) Device interaction with spatially aware gestures
US20200242335A1 (en) Information processing apparatus, information processing method, and recording medium
JP2013235373A5 (zh)
CN105979360A (zh) 一种渲染图像的处理方法及装置
CN107003744A (zh) 视点确定方法、装置、电子设备和计算机程序产品
WO2018082460A1 (zh) 基于虚拟现实的控制方法和装置
WO2017028527A1 (zh) 确定虚拟空间中触摸事件的方法及装置
WO2017012363A1 (zh) 虚拟空间中虚拟物件的投影显示方法及装置
JP7103354B2 (ja) 情報処理装置、情報処理方法、及びプログラム
US10410425B1 (en) Pressure-based object placement for augmented reality applications
CN108196258B (zh) 外接设备的位置的确定方法及装置、虚拟现实设备及系统
WO2017012362A1 (zh) 调整虚拟物件在虚拟空间中姿态角的方法及装置
CN109389082B (zh) 视线采集方法、装置、系统、计算机可读存储介质
JP6981340B2 (ja) 表示制御プログラム、装置、及び方法
CN106547353A (zh) 提醒方法及装置
US20200211275A1 (en) Information processing device, information processing method, and recording medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16850048

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15764836

Country of ref document: US

Ref document number: 2018516786

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20187011616

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2016850048

Country of ref document: EP