CN114564106B - Method and device for determining interaction indication line, electronic equipment and storage medium - Google Patents
Method and device for determining interaction indication line, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114564106B CN114564106B CN202210176746.2A CN202210176746A CN114564106B CN 114564106 B CN114564106 B CN 114564106B CN 202210176746 A CN202210176746 A CN 202210176746A CN 114564106 B CN114564106 B CN 114564106B
- Authority
- CN
- China
- Prior art keywords
- target
- determining
- indication line
- indicator
- line
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
- G06F3/013—Eye tracking input arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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/04815—Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/01—Indexing scheme relating to G06F3/01
- G06F2203/012—Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04802—3D-info-object: information is displayed on the internal or external surface of a three dimensional manipulable object, e.g. on the faces of a cube that can be rotated by the user
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical field
本公开实施例涉及数据处理技术领域,尤其涉及一种交互指示线的确定方法、装置、电子设备及存储介质。The embodiments of the present disclosure relate to the field of data processing technology, and in particular, to a method, device, electronic device, and storage medium for determining an interactive indicator line.
背景技术Background technique
随着虚拟技术的发展,扩展现实(Extended Reality,XR)设备可以实现用户和相应的虚拟物体进行交互。为了实现和远处的物体进行交互,需要交互指示线确定用户关注的交互对象。交互指示线的作用与传统鼠标的作用类似。With the development of virtual technology, extended reality (XR) devices can enable users to interact with corresponding virtual objects. In order to interact with distant objects, an interaction indicator line is needed to determine the interactive object that the user is paying attention to. The interactive indicator line works similarly to a traditional mouse.
在实际应用中,用户可以利用头部佩戴的指示器看到特定视觉范围内的物体,然而,其中有些物体无法直接通过手部的曲线进行关联。原因主要在于头部指示器无法投射出对应的曲线,而手部出射的曲线很有可能被其他物体挡住,这就导致用户希望选择的目标对象无法被直线或者曲线选中。In practical applications, users can use indicators worn on the head to see objects within a specific visual range. However, some of these objects cannot be directly related through the curve of the hand. The main reason is that the head indicator cannot project the corresponding curve, and the curve projected by the hand is likely to be blocked by other objects, which results in the target object that the user wants to select unable to be selected by a straight line or curve.
发明内容Contents of the invention
本公开实施例提供一种交互指示线的确定方法、装置、电子设备及存储介质,使用户可以通过手柄选中并控制视线范围内所能观察到的任意物体,提高了虚拟场景的趣味性以及用户的使用体验。Embodiments of the present disclosure provide a method, device, electronic device, and storage medium for determining an interactive indicator line, allowing users to select and control any object that can be observed within the line of sight through a handle, thereby improving the fun of the virtual scene and improving the user experience. usage experience.
第一方面,本公开实施例提供了一种交互指示线的确定方法,该方法包括:In a first aspect, embodiments of the present disclosure provide a method for determining an interactive indicator line, which method includes:
获取方向指示器的目标指向信息;Get the target pointing information of the direction indicator;
根据所述目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与所述待修正交互指示线相交的待控制物体;According to the target pointing information and the viewpoint position information of the viewpoint controller, determine the interaction indication line to be corrected and the object to be controlled that intersects with the interaction indication line to be corrected;
根据所述方向指示器的指示器位置信息以及所述待修正交互指示线,确定目标交互指示线,以基于所述目标交互指示线控制所述待控制物体。According to the indicator position information of the direction indicator and the interaction indication line to be corrected, a target interaction indication line is determined to control the object to be controlled based on the target interaction indication line.
第二方面,本公开实施例还提供了一种交互指示线的确定装置,该装置包括:In a second aspect, embodiments of the present disclosure also provide a device for determining an interactive indicator line, which device includes:
指向信息确定模块,用于获取方向指示器的目标指向信息;The pointing information determination module is used to obtain the target pointing information of the direction indicator;
待修正交互指示线确定模块,用于根据所述目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与所述待修正交互指示线相交的待控制物体;An interaction indication line to be corrected determination module, configured to determine an interaction indication line to be corrected and an object to be controlled that intersects the interaction indication line to be corrected based on the target pointing information and the viewpoint position information of the viewpoint controller;
目标交互指示线确定模块,用于根据所述方向指示器的指示器位置信息以及所述待修正交互指示线,确定目标交互指示线,以基于所述目标交互指示线控制所述待控制物体。A target interaction indication line determination module is configured to determine a target interaction indication line based on the indicator position information of the direction indicator and the interaction indication line to be corrected, so as to control the object to be controlled based on the target interaction indication line.
第三方面,本公开实施例还提供了一种电子设备,所述电子设备包括:In a third aspect, embodiments of the present disclosure also provide an electronic device, where the electronic device includes:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开实施例任一所述的交互指示线的确定方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for determining the interaction indicator line as described in any one of the embodiments of the present disclosure.
第四方面,本公开实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如本公开实施例任一所述的交互指示线的确定方法。In a fourth aspect, embodiments of the disclosure further provide a storage medium containing computer-executable instructions, which when executed by a computer processor are used to perform interactive instructions as described in any embodiment of the disclosure. How to determine the line.
本公开实施例的技术方案,获取方向指示器的目标指向信息,即确定出用户手部所持手柄的指向;根据目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与待修正交互指示线相交的待控制物体,即确定出用户视线以及期望控制的物体;进一步的,根据方向指示器的指示器位置信息以及待修正交互指示线,确定目标交互指示线,以基于目标交互指示线控制待控制物体,使用户可以通过手柄选中并控制视线范围内所能观察到的任意物体,避免了某些物体由于与用户之间存在遮挡而无法被选中的问题,丰富了用户与场景内各种物体的互动效果,提高了虚拟场景的趣味性以及用户的使用体验。The technical solution of the embodiment of the present disclosure obtains the target pointing information of the direction indicator, that is, determines the direction of the handle held by the user's hand; determines the interaction indication line to be corrected based on the target pointing information and the viewpoint position information of the viewpoint controller, and determines the interaction indication line to be corrected, and The object to be controlled that intersects the interaction indication line to be corrected determines the user's line of sight and the object expected to be controlled; further, according to the indicator position information of the direction indicator and the interaction indication line to be corrected, the target interaction indication line is determined to based on the target The interactive indicator line controls the object to be controlled, allowing the user to select and control any object that can be observed within the line of sight through the handle, avoiding the problem that some objects cannot be selected due to occlusion between the user and the user, and enriching the user's interaction with the user. The interactive effect of various objects in the scene improves the fun of the virtual scene and the user experience.
附图说明Description of the drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages, and aspects of various embodiments of the present disclosure will become more apparent with reference to the following detailed description taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It is to be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1为本公开实施例一所提供的一种交互指示线的确定方法的流程示意图;Figure 1 is a schematic flowchart of a method for determining an interactive indicator line provided by Embodiment 1 of the present disclosure;
图2为本公开实施例一所提供的基于XR设备对场景内的物体进行选择并控制的示意图;Figure 2 is a schematic diagram of selecting and controlling objects in a scene based on XR equipment according to Embodiment 1 of the present disclosure;
图3为本公开实施例一所提供的在待修正交互指示线上确定目标连接点的示意图;Figure 3 is a schematic diagram of determining a target connection point on an interaction indication line to be corrected according to Embodiment 1 of the present disclosure;
图4为本公开实施例一所提供的绘制贝塞尔曲线的示意图;Figure 4 is a schematic diagram of drawing a Bezier curve provided by Embodiment 1 of the present disclosure;
图5为本公开实施例二所提供的一种交互指示线的确定装置的结构框图;Figure 5 is a structural block diagram of a device for determining an interactive indicator line provided in Embodiment 2 of the present disclosure;
图6为本公开实施例三所提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, which rather are provided for A more thorough and complete understanding of this disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "include" and its variations are open-ended, ie, "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units. Or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or Multiple”.
实施例一Embodiment 1
图1为本公开实施例一所提供的一种交互指示线的确定方法的流程示意图,本实施例可适用于用户利用XR设备选中场景内所观察的物体的情况,该方法可以由交互指示线的确定装置来执行,该装置可以通过软件和/或硬件的形式实现,该硬件可以是电子设备,如移动终端、PC端或服务器等。任意图像展示的场景通常是由客户端和服务器来配合实现的,本实施例所提供的方法可以由服务端来执行,客户端来执行,或者是客户端和服务端的配合来执行。Figure 1 is a schematic flowchart of a method for determining an interactive indicator line provided in Embodiment 1 of the present disclosure. This embodiment can be applied to situations where a user uses an XR device to select an object being observed in a scene. This method can be determined by an interactive indicator line. The determination device is executed, and the device can be implemented in the form of software and/or hardware. The hardware can be an electronic device, such as a mobile terminal, a PC, or a server. The scene displayed by any image is usually implemented by the cooperation of the client and the server. The method provided in this embodiment can be executed by the server, the client, or the client and the server cooperate.
如图1,本实施例的方法包括:As shown in Figure 1, the method in this embodiment includes:
S110、获取方向指示器的目标指向信息。S110. Obtain the target pointing information of the direction indicator.
在本实施例中,用户可以利用XR设备对3D空间内的多种物体进行观察、选择并控制。具体来说,扩展现实是指通过计算机技术和可穿戴设备产生的一个真实与虚拟组合、可人机交互的环境,是增强现实(Augment Reality,AR)、虚拟现实(Virtual Reality,VR)以及混合现实(Mixed Reality,MR)等多种形式的统称,通过将三种视觉交互技术进行融合,从而实现虚拟世界与现实世界之间无缝转换的“沉浸感”体验。In this embodiment, users can use XR equipment to observe, select and control various objects in the 3D space. Specifically, extended reality refers to a real and virtual combination and human-computer interaction environment generated through computer technology and wearable devices. It is a combination of augmented reality (AR), virtual reality (VR) and hybrid It is a collective name for various forms such as Mixed Reality (MR). By integrating three visual interaction technologies, it can achieve an "immersive" experience of seamless transition between the virtual world and the real world.
对应的,XR设备即是与扩展现实技术相关的设备,如,手柄指示器。具体来说,手柄指示器可以是基于无线通信技术开发的手持设备,当启动手柄指示器后,可以将其关联至特定的网络并与其他类型XR设备进行关联,进一步的,通过对手柄指示器上相关按钮的触发操作,可以产生用于对扩展现实场景中的物体进行选择或控制的信号。在实际应用过程中,用户通过手柄指示器可以针对场景内的物体产生射线形式的控制信号,因此,根据所产生射线类型的不同,手柄指示器还分为能够发射出直线型射线的手柄直线指示器(straight curve),以及能够发射出曲线型射线的手柄贝塞尔曲线指示器(beziercurve)。Correspondingly, XR devices are devices related to extended reality technology, such as handle indicators. Specifically, the handle indicator can be a handheld device developed based on wireless communication technology. When the handle indicator is started, it can be associated with a specific network and other types of XR devices. Further, by adjusting the handle indicator The triggering operation of the relevant buttons can generate signals for selecting or controlling objects in the extended reality scene. In actual application, the user can use the handle indicator to generate control signals in the form of rays for objects in the scene. Therefore, depending on the type of rays generated, the handle indicator is also divided into handle indicators that can emit linear rays. (straight curve), and the handle Bezier curve indicator (beziercurve) that can emit curved rays.
由于手柄指示器发出的射线具有方向性,因此在本实施例中,用户所持有的手柄即是方向指示器,目标指向信息即是手柄上发射射线的一端的指向信息,例如,用户持有一台手柄直线指示器,并基于该指示器瞄准水平正北方向时,系统可以确定出水平正北方向对应的目标指向信息。Since the rays emitted by the handle indicator have directionality, in this embodiment, the handle held by the user is the direction indicator, and the target pointing information is the pointing information of the end of the handle that emits the ray. For example, the handle held by the user A handle linear indicator, and based on the indicator aiming in the horizontal north direction, the system can determine the target pointing information corresponding to the horizontal north direction.
在本实施例中,可以基于设置在方向指示器中的陀螺仪,确定方向指示器的目标指向信息。In this embodiment, the target pointing information of the direction indicator can be determined based on a gyroscope provided in the direction indicator.
其中,陀螺仪是一种用高速回转体的动量矩敏感壳体相对惯性空间绕正交于自转轴的一个或二个轴的角运动检测装置。可以理解,当在方向指示器中设置陀螺仪后,不仅可以精确地确定方向指示器的方位,还可以确定出方向指示器发射射线一端的指向,从而使系统获取方向指示器对应的目标指向信息。Among them, the gyroscope is an angular motion detection device that uses a momentum-moment-sensitive shell of a high-speed rotating body to rotate around one or two axes orthogonal to the rotation axis relative to the inertial space. It can be understood that when a gyroscope is installed in the direction indicator, not only the orientation of the direction indicator can be accurately determined, but also the direction of the end of the direction indicator emitting ray can be determined, so that the system can obtain the target pointing information corresponding to the direction indicator. .
以图2为例,当用户将所持有的手柄指示器指向虚拟场景内的某个物体时,基于手柄指示器内置的陀螺仪,可以实时确定出图中箭头所指的方向为手柄指向,即,确定出手柄当前时刻的目标指向信息。可以理解,将不受磁场影响、具有定向性的陀螺仪集成于方向指示器中,可以以较高的精度和效率确定出方向指示器的目标指向信息。Taking Figure 2 as an example, when the user points the handle indicator to an object in the virtual scene, based on the gyroscope built into the handle indicator, it can be determined in real time that the direction pointed by the arrow in the picture is the direction of the handle. That is, the target pointing information of the controller at the current moment is determined. It can be understood that integrating a directional gyroscope that is not affected by a magnetic field into a direction indicator can determine the target pointing information of the direction indicator with high accuracy and efficiency.
S120、根据目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与待修正交互指示线相交的待控制物体。S120. Determine the interaction indication line to be corrected and the object to be controlled that intersects the interaction indication line to be corrected according to the target pointing information and the viewpoint position information of the viewpoint controller.
在多种类型的XR设备中,除手柄指示器外,还包括头部Gaze指示器。基于此,在本实施例中,视点控制器可以是与方向指示器相关联的头部指示器。具体来说,当用户佩戴头部指示器后,至少可以对扩展现实场景内的物体进行观察。Among many types of XR devices, in addition to handle indicators, there are also head Gaze indicators. Based on this, in this embodiment, the viewpoint controller may be a head indicator associated with a direction indicator. Specifically, when the user wears the head pointer, he or she can at least observe objects in the extended reality scene.
相较于传统的VR头显以及AR智能眼镜等设备,视点控制器在为用户提供一定的视觉范围的同时,还可以确定出用户的视点位置信息,其中,视点位置信息是指用户的观察点,用户处于当前观察点时,至少可以看到扩展现实场景内的物体。如图2所示,当用户佩戴头部指示器并启动后,在当前观察点可以观察到扩展现实场景内的物体A和物体B,对应的,头部指示器根据用户头部当前的姿态,即可确定出对应的视点位置信息。Compared with traditional VR headsets and AR smart glasses and other devices, the viewpoint controller can not only provide the user with a certain visual range, but also determine the user's viewpoint position information, where the viewpoint position information refers to the user's observation point. , when the user is at the current observation point, he can at least see the objects in the extended reality scene. As shown in Figure 2, when the user wears the head indicator and starts it, object A and object B in the extended reality scene can be observed at the current observation point. Correspondingly, the head indicator is based on the current posture of the user's head. The corresponding viewpoint position information can be determined.
在本实施例中,当确定出方向指示器的目标指向信息以及视点控制器的视点位置信息后,可以进一步确定出一条待修正交互指示线。具体来说,待修正交互指示线是以视点位置信息为起始点,沿目标指向信息所对应的方向进行延伸所构建出来的一条线。基于此可以理解,构建待修正交互指示线的过程,即是将用户视点作为起点,沿手柄指向发射一条射线的过程。In this embodiment, after the target pointing information of the direction indicator and the viewpoint position information of the viewpoint controller are determined, an interaction indication line to be corrected can be further determined. Specifically, the interaction indicator line to be corrected is a line constructed by taking the viewpoint position information as the starting point and extending in the direction corresponding to the target pointing information. Based on this, it can be understood that the process of constructing the interactive indicator line to be corrected is the process of taking the user's viewpoint as the starting point and emitting a ray along the handle.
进一步的,当待修正交互指示线沿目标指向信息对应的方向不断延伸,并与扩展现实空间内的物体相交时,即可将相交的物体确定为待选择物体。可以理解,待选择物体即是用户在当前视野范围内能够看到的物体,同时,用户与该物体之间的视线方向与手柄指向一致。Further, when the interaction indication line to be corrected continues to extend along the direction corresponding to the target pointing information and intersects with the object in the extended reality space, the intersecting object can be determined as the object to be selected. It can be understood that the object to be selected is an object that the user can see within the current field of view, and at the same time, the direction of sight between the user and the object is consistent with the direction of the handle.
由于在本实施例中,用户可以基于XR设备对扩展现实场景内的任意物体进行选择和控制,因此,待选择物体也可以作为待控制物体。具体来说,可以将物体与待修正交互指示线相交的交点作为待控制物体的控制点,进而使用户基于控制点控制待控制物体。Since in this embodiment, the user can select and control any object in the extended reality scene based on the XR device, the object to be selected can also be used as the object to be controlled. Specifically, the intersection point between the object and the interaction indication line to be corrected can be used as the control point of the object to be controlled, thereby allowing the user to control the object to be controlled based on the control points.
继续以图2为例进行说明,当确定出视点位置信息以及手柄指向后,可以将头部指示器视点作为起点构建直线,并使直线沿手柄指向方向进行延伸,当直线与物体A相交时,物体A即为待控制物体,交点hitpoint即为控制点,视点与控制点之间的线段即为最终得到的待修正交互指示线。Continuing to use Figure 2 as an example to illustrate, when the viewpoint position information and handle pointing are determined, the head indicator viewpoint can be used as the starting point to construct a straight line, and the straight line can be extended along the direction of the handle pointing. When the straight line intersects with object A, Object A is the object to be controlled, the intersection hitpoint is the control point, and the line segment between the viewpoint and the control point is the final interaction indicator line to be corrected.
S130、根据方向指示器的指示器位置信息以及待修正交互指示线,确定目标交互指示线,以基于目标交互指示线控制待控制物体。S130. Determine the target interaction indication line according to the indicator position information of the direction indicator and the interaction indication line to be corrected, so as to control the object to be controlled based on the target interaction indication line.
其中,目标交互指示线是指方向指示器最终发出的、用于对待控制物体进行控制的射线,该射线是在待修正交互指示线的基础上进行处理得到的,下面结合图3以及图4对确定目标交互指示线的过程进行详细说明。Among them, the target interactive indicator line refers to the ray finally emitted by the direction indicator and used to control the object to be controlled. This ray is processed on the basis of the interactive indicator line to be corrected. The following is a combination of Figure 3 and Figure 4. The process of determining the target interaction indicator line is explained in detail.
在本实施例中,由于目标交互指示线中仅包含待修正交互指示线的一部分,另一部分为方向指示器发出射线的一端与待修正交互指示线之间的连线,因此,在确定目标交互指示线的过程中,还需要确定待修正交互指示线上的各待选择连接点。In this embodiment, since the target interaction indication line only includes a part of the interaction indication line to be corrected, and the other part is the connection between the end of the direction indicator that emits a ray and the interaction indication line to be corrected, therefore, when determining the target interaction In the process of indicating the line, it is also necessary to determine the connection points to be selected on the interactive indicator line to be corrected.
具体的,根据待修正交互指示线的长度信息和预先设置的调整参数,确定连接点调整范围;在连接点调整范围内,以视点位置信息为起始点,按照预设步长依次确定各待选择连接点。Specifically, the connection point adjustment range is determined based on the length information of the interactive indicator line to be corrected and the preset adjustment parameters; within the connection point adjustment range, the viewpoint position information is used as the starting point, and each to be selected is determined in sequence according to the preset step size. Junction.
其中,长度信息即是待修正交互指示线的实际长度,可以理解为,视点控制器的视点与待控制物体之间的距离,连接点为方向指示器最终所发出的射线与待修正交互指示线之间的连接点。对应的,调整参数则是决定连接点处于待修正交互指示线上哪一部分的参数。Among them, the length information is the actual length of the interactive indicator line to be corrected, which can be understood as the distance between the viewpoint of the viewpoint controller and the object to be controlled. The connection point is the ray finally emitted by the direction indicator and the interactive indicator line to be corrected. connection points between. Correspondingly, the adjustment parameters are parameters that determine which part of the interaction indicator line the connection point is located on.
以图3为例,当确定出视点与待控制物体A之间待修正交互指示线的长度信息,并确定预设调整参数为0.5时,可以确定手柄最终所发出射线与待修正交互指示线的连接点处于待修正交互指示线的前半部分,即,处于从视点到待修正交互指示线中点之间的部分。进一步的,当确定步长为0.1后,可以从视点控制器的当前视点开始,在待修正交互指示线上逐个确定出多个待选择连接点。本领域技术人员应当理解,对于调整参数来说,可以根据实际需要从(0,1)的范围内进行选择设置,本公开实施例在此并未做具体的限定。同时,对于步长来说,也可以根据待修正交互指示线的实际长度进行设置(例如,待修正交互指示线为1m时,步长可以设置为0.1m),可以理解,当待修正交互指示线较长时,可以适应性增大步长,即,减少所确定的待选择连接点的个数,从而减少对系统计算资源的浪费。Taking Figure 3 as an example, when the length information of the interaction indicator line to be corrected between the viewpoint and the object A to be controlled is determined, and the preset adjustment parameter is determined to be 0.5, the length of the ray finally emitted by the handle and the interaction indicator line to be corrected can be determined. The connection point is in the first half of the interaction indicator line to be corrected, that is, the part between the viewpoint and the midpoint of the interaction indicator line to be corrected. Further, when the step size is determined to be 0.1, starting from the current viewpoint of the viewpoint controller, multiple connection points to be selected can be determined one by one on the interaction indication line to be corrected. Those skilled in the art should understand that the adjustment parameters can be selected and set from the range of (0, 1) according to actual needs, and the embodiments of the present disclosure are not specifically limited here. At the same time, the step length can also be set according to the actual length of the interactive indicator line to be corrected (for example, when the interactive indicator line to be corrected is 1m, the step length can be set to 0.1m). It can be understood that when the interactive indicator line to be corrected is When the line is long, the step size can be adaptively increased, that is, the number of determined connection points to be selected can be reduced, thereby reducing the waste of system computing resources.
进一步的,根据指示器位置信息和各待选择连接点,确定目标连接点。其中,目标连接点即是从多个待选择连接点中所确定出的点,可以理解,目标连接点也是方向指示器最终发出的射线与待修正交互指示线相交的点。Further, the target connection point is determined based on the indicator position information and each connection point to be selected. The target connection point is a point determined from a plurality of connection points to be selected. It can be understood that the target connection point is also the point where the ray finally emitted by the direction indicator intersects the interaction indicator line to be corrected.
具体的,依据确定各待选择连接点的顺序信息,确定指示器位置信息和相应待选择连接点之间的连线是否首次与障碍物相交;若是,则依据顺序信息确定与障碍物相交时的前一待选择连接点,作为目标连接点。其中,障碍物即是处于用户与待控制物体之间的物体,可以理解,由于障碍物的遮挡,用户手中的方向指示器无法通过发射直线型射线对待控制物体进行控制。Specifically, based on the sequence information that determines each connection point to be selected, it is determined whether the connection between the indicator position information and the corresponding connection point to be selected intersects with the obstacle for the first time; if so, the sequence information is used to determine the point when it intersects with the obstacle. The previous connection point to be selected is used as the target connection point. Among them, the obstacle is an object between the user and the object to be controlled. It can be understood that due to the obstruction of the obstacle, the direction indicator in the user's hand cannot control the object to be controlled by emitting linear rays.
继续以图3为例进行说明,当在待修正交互指示线上确定出多个待选择连接点后,可以待修正交互指示线上的视点作为第一个与方向指示器发射射线的一端进行连线的点,同时,判断该连线是否与遮挡在待控制物体之间的障碍物物体B相交。由图可知,第一条连线并未与物体B相交,此时,可以将方向指示器上发射射线的一端,与目标指向信息对应方向上第二个待选择连接点进行连接,并通过同样的方式判断连线是否与物体B相交,以此类推。当构建出第五条连线时,可以确定该连线与物体B相交,这时候,为了构建出目标交互指示线,需要选择该条连线所对应待选择连接点的上一个连接点(即图3中待修正交互指示线上从视点起第四个点)作为目标连接点。Continuing to use Figure 3 as an example for explanation, after multiple connection points to be selected are determined on the interactive indicator line to be corrected, the viewpoint on the interactive indicator line to be corrected can be used as the first end to connect with the direction indicator that emits rays. At the same time, it is judged whether the connecting line intersects with the obstacle object B blocking the object to be controlled. As can be seen from the figure, the first connection line does not intersect object B. At this time, the end of the direction indicator that emits the ray can be connected to the second connection point to be selected in the direction corresponding to the target pointing information, and the same method to determine whether the connection line intersects with object B, and so on. When the fifth connection line is constructed, it can be determined that the connection line intersects with object B. At this time, in order to construct the target interaction indicator line, it is necessary to select the previous connection point of the connection point to be selected corresponding to the connection line (i.e. In Figure 3, the fourth point from the viewpoint on the interaction indication line to be corrected is used as the target connection point.
在本实施例中,当确定出目标连接点后,可以根据指示器位置信息、目标连接点以及待修正交互指示线,确定目标交互指示线。具体的,根据指示器位置信息和目标连接点,确定贝塞尔曲线;根据贝塞尔曲线和待修正交互指示线,确定目标交互指示线。In this embodiment, after the target connection point is determined, the target interaction indication line can be determined based on the indicator position information, the target connection point, and the interaction indication line to be corrected. Specifically, the Bezier curve is determined based on the indicator position information and the target connection point; the target interactive indicator line is determined based on the Bezier curve and the interactive indicator line to be corrected.
其中,贝塞尔曲线又称为贝兹曲线或贝济埃曲线,是一种应用于二维图形应用程序的数学曲线,由线段与节点组成,由于其节点是可拖动的支点,因此,在一般矢量图形软件或位图软件中,通过贝塞尔曲线,可以提高所生成的曲线的精确性。Among them, the Bezier curve, also known as the Bezier curve or the Bezier curve, is a mathematical curve used in two-dimensional graphics applications. It consists of line segments and nodes. Since its nodes are draggable fulcrums, In general vector graphics software or bitmap software, the accuracy of the generated curves can be improved through Bezier curves.
在本实施例中,可以基于方向指示器发射射线一端的位置信息,以及待修正交互指示线上确定出来的目标连接点确定出贝塞尔曲线,可以理解,所确定的贝塞尔曲线即是最终得到的目标交互指示线的一部分。需要说明的是,目标连接点也是贝塞尔曲线与待修正交互指示线上处于目标连接点后一部分线段的连接点。In this embodiment, the Bezier curve can be determined based on the position information of one end of the ray emitted by the direction indicator and the target connection point determined on the interactive indicator line to be corrected. It can be understood that the determined Bezier curve is Part of the resulting target interaction indicator line. It should be noted that the target connection point is also the connection point between the Bezier curve and the interaction indicator line to be corrected which is a part of the line segment after the target connection point.
以图3为例,当以视点作为起始点确定出第四个待选择连接点为目标连接点后,即可基于方向指示器当前位置信息以及目标连接点构建出贝塞尔曲线,同时,对于贝塞尔曲线(制导部分)以及待修正交互指示线上处于目标连接点以及控制点之间的部分来说,目标连接点也是上述两部分的连接点。Taking Figure 3 as an example, when the fourth connection point to be selected is determined as the target connection point using the viewpoint as the starting point, a Bezier curve can be constructed based on the current position information of the direction indicator and the target connection point. At the same time, for For the Bezier curve (guidance part) and the part on the interactive indicator line to be corrected between the target connection point and the control point, the target connection point is also the connection point of the above two parts.
在实际应用过程中,为了提高所确定的贝塞尔曲线的精确度,还需要确定出贝塞尔曲线在不同方向上的弯曲程度。具体来说,确定目标指向信息所对应的第一强度,以及与目标指向信息垂直方向上的第二强度;基于第一强度、第二强度、指示器位置信息、目标连接点、目标指向信息以及与目标指向信息垂直的垂直指向信息,确定贝塞尔曲线。In the actual application process, in order to improve the accuracy of the determined Bezier curve, it is also necessary to determine the degree of curvature of the Bezier curve in different directions. Specifically, determine the first intensity corresponding to the target pointing information and the second intensity in the vertical direction to the target pointing information; based on the first intensity, the second intensity, the indicator position information, the target connection point, the target pointing information and The vertical pointing information perpendicular to the target pointing information determines the Bezier curve.
其中,第一强度即反映贝塞尔曲线在目标指向上的弯曲程度,第二强度即反映贝塞尔曲线在目标指向垂直方向上的弯曲程度,可以理解,第一强度以及第二强度也表征不同方向对所构建的贝塞尔曲线所产生的影响的权重。以图4为例,手柄controller与startOutHandler之间的连线的方向即为目标指向垂直方向,即,贝塞尔曲线从方向指示器上出点的方向,对应的,目标连接点contrastPoint与endInHandler之间的连线的方向即为目标指向,即,贝塞尔曲线通过目标连接点与待修正交互指示线相交时入点的方向。在确定出上述两个方向的同时,还可以基于预设参数确定出第一强度以及第二强度。具体的,根据curveBeginIntensity参数确定贝塞尔曲线从方向指示器出点的强度,即确定贝塞尔曲线在目标指向垂直方向上的弯曲程度,根据curveEndIntensity参数确定贝塞尔曲线从目标连接点入点的强度,即确定贝塞尔曲线在目标指向上的弯曲程度。需要说明的是,在实际应用过程中,至少上述两个参数的预设值不超过1,一般不会发生贝塞尔曲线的扭曲现象。Among them, the first intensity reflects the bending degree of the Bezier curve in the target direction, and the second intensity reflects the bending degree of the Bezier curve in the vertical direction of the target direction. It can be understood that the first intensity and the second intensity also represent The weight of the influence of different directions on the constructed Bezier curve. Taking Figure 4 as an example, the direction of the connection between the handle controller and startOutHandler is that the target points in the vertical direction, that is, the direction of the exit point of the Bezier curve from the direction indicator. Correspondingly, the target connection point contrastPoint and endInHandler The direction of the connecting line is the target direction, that is, the direction of the entry point when the Bezier curve passes through the target connection point and intersects the interaction indicator line to be corrected. While the above two directions are determined, the first intensity and the second intensity may also be determined based on preset parameters. Specifically, the intensity of the Bezier curve's exit point from the direction indicator is determined according to the curveBeginIntensity parameter, that is, the degree of curvature of the Bezier curve in the vertical direction of the target point is determined, and the entry point of the Bezier curve from the target connection point is determined according to the curveEndIntensity parameter. The strength of the Bezier curve determines the degree of curvature of the Bezier curve in the target direction. It should be noted that during actual application, at least the preset values of the above two parameters do not exceed 1, and distortion of the Bezier curve generally does not occur.
由于在实际应用过程中,贝塞尔曲线是基于多个点绘制而成的,因此,可选的,根据第一强度、第二强度、指示器位置信息、目标连接点、目标指向信息以及垂直指向信息,确定待绘制贝塞尔曲线;根据预先设置的绘制参数,确定与待绘制贝塞尔曲线相对应的多个离散点;基于多个离散点,确定贝塞尔曲线。Since in actual application, the Bezier curve is drawn based on multiple points, therefore, optionally, based on the first intensity, the second intensity, the indicator position information, the target connection point, the target pointing information and the vertical Point to the information to determine the Bezier curve to be drawn; determine multiple discrete points corresponding to the Bezier curve to be drawn based on the preset drawing parameters; determine the Bezier curve based on the multiple discrete points.
继续以图4为例进行说明,当基于第一确定、第二强度分别确定出贝塞尔曲线在上述两个方向上的弯曲程度,并确定出目标连接点后,即可确定出与待绘制的贝塞尔曲线。进一步的,获取预先设置的绘制参数guidanceForwardOffset,可以理解,绘制参数至少用于在二维平面内确定出用于绘制贝塞尔曲线的多个离散点。同时,这些离散点还可以基于视点控制器呈现给用户,当用户确定采用这些离散点后,可以向系统下发确认指令,系统基于该指令,即可将多个离散点按顺序进行连接,从而得到方向指示器发射射线一段与目标连接点之间的贝塞尔曲线。需要说明的是,基于所确定离散点构建出的贝塞尔曲线通常超过待修正交互指示线一段距离,这段距离可以作为击穿距离,从而避免了击穿距离为零而导致的射线判定阈值出错的情况发生。Continuing to use Figure 4 as an example to illustrate, when the bending degree of the Bezier curve in the above two directions is determined based on the first determination and the second intensity respectively, and the target connection point is determined, the connection point to be drawn can be determined. Bezier curve. Further, the preset drawing parameter guidanceForwardOffset is obtained. It can be understood that the drawing parameter is at least used to determine multiple discrete points for drawing the Bezier curve in a two-dimensional plane. At the same time, these discrete points can also be presented to the user based on the viewpoint controller. When the user determines to use these discrete points, he can issue a confirmation instruction to the system. Based on this instruction, the system can connect multiple discrete points in order, thus Get the Bezier curve between a section of the ray emitted by the direction indicator and the target connection point. It should be noted that the Bezier curve constructed based on the determined discrete points usually exceeds the interaction indicator line to be corrected by a certain distance. This distance can be used as the breakdown distance, thereby avoiding the ray determination threshold caused by the breakdown distance being zero. Something went wrong.
在本实施例中,为了使用户能够通过方向指示器对扩展现实场景内的待控制物体进行控制,在确定出作为目标交互指示线一部分的贝塞尔曲线后,还需要将修正交互指示线上目标连接点至待控制物体控制点之间的连线,作为待拼接交互指示线;基于贝塞尔曲线和待拼接交互指示线,确定目标交互指示线。In this embodiment, in order to enable the user to control the object to be controlled in the extended reality scene through the direction indicator, after determining the Bezier curve as part of the target interaction indication line, it is also necessary to modify the interaction indication line The connection line between the target connection point and the control point of the object to be controlled is used as the interaction indicator line to be spliced; the target interaction indicator line is determined based on the Bezier curve and the interaction indicator line to be spliced.
以图2为例进行说明,当确定出作为制导部分的贝塞尔曲线后,可以将hitpoint以及连接点之间的部分进行连线,从而得到待拼接交互指示线。进一步步的,使方向指示器沿贝塞尔曲线发出的射线达到目标连接点后,继续沿待拼接交互指示线发射,当射线与作为待控制物体的物体A相交时,射线的路径即是目标交互指示线,可以理解,该路径可以看做贝塞尔曲线以及待拼接交互指示线拼接得到的。同时,用户基于目标交互指示线可以对物体A进行选中并控制,例如,选中物体A后,系统可以将物体A的信息通过视点控制器关联的显示装置呈现给用户,当用户按下方向指示器上对应的按钮后,还可以生成与目标交互指示线上的射线相对应的抓取信号,从而实现在扩展现实空间内抓取物体A的效果。Taking Figure 2 as an example to illustrate, after the Bezier curve as the guidance part is determined, the hitpoint and the part between the connection points can be connected to obtain the interactive indicator line to be spliced. Further, after the ray emitted by the direction indicator along the Bezier curve reaches the target connection point, it continues to be emitted along the interactive indicator line to be spliced. When the ray intersects with object A as the object to be controlled, the path of the ray is the target. As for the interactive indicator line, it can be understood that the path can be seen as the splicing of the Bezier curve and the interactive indicator line to be spliced. At the same time, the user can select and control object A based on the target interaction indicator line. For example, after selecting object A, the system can present the information of object A to the user through the display device associated with the viewpoint controller. When the user presses the direction indicator After pressing the corresponding button, you can also generate a grabbing signal corresponding to the ray on the target interaction indicator line, thereby achieving the effect of grabbing object A in the extended reality space.
需要说明的是,在控制待控制物体运动的过程中,可选的,重复执行根据获取到的方向指示器的目标指向信息,以及视点控制器的视点位置信息,更新目标交互指示线。It should be noted that during the process of controlling the motion of the object to be controlled, optionally, repeatedly updating the target interaction indicator line based on the acquired target pointing information of the direction indicator and the viewpoint position information of the viewpoint controller.
具体来说,由于用户持有手柄的手处于不断运动的状态中,因此,在用户运动的过程中,系统可以按照本实施例上述的方案,不断获取方向指示器的目标指向信息,并结合视点控制器的视点位置信息不断确定用户在扩展现实场景内所期望控制的待控制物体。进一步的,针对所确定的物体,对当前生成的目标交互指示线进行更新,并根据用户的触发操作生成与更新后目标交互指示线上射线相对应的控制信号,从而实现对一种物体的持续控制,或者,根据用户实际情况不断切换场景内的物体进行控制。Specifically, since the user's hand holding the handle is in constant motion, during the user's movement, the system can continuously obtain the target pointing information of the direction indicator according to the solution described above in this embodiment, and combine it with the viewpoint The controller's viewpoint position information continuously determines the objects to be controlled that the user expects to control within the extended reality scene. Further, for the determined object, the currently generated target interaction indicator line is updated, and a control signal corresponding to the ray on the updated target interaction indicator line is generated according to the user's trigger operation, thereby achieving continuous control of an object. Control, or continuously switch objects in the scene for control according to the user's actual situation.
本实施例的技术方案,获取方向指示器的目标指向信息,即确定出用户手部所持手柄的指向;根据目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与待修正交互指示线相交的待控制物体,即确定出用户视线以及期望控制的物体;进一步的,根据方向指示器的指示器位置信息以及待修正交互指示线,确定目标交互指示线,以基于目标交互指示线控制待控制物体,使用户可以通过手柄选中并控制视线范围内所能观察到的任意物体,避免了某些物体由于与用户之间存在遮挡而无法被选中的问题,丰富了用户与场景内各种物体的互动效果,提高了虚拟场景的趣味性以及用户的使用体验。The technical solution of this embodiment is to obtain the target pointing information of the direction indicator, that is, to determine the direction of the handle held by the user's hand; according to the target pointing information and the viewpoint position information of the viewpoint controller, determine the interaction indication line to be corrected, and determine the interaction indicator line to be corrected, and determine the direction of the handle held by the user's hand. Correct the object to be controlled that the interaction indicator line intersects, that is, determine the user's line of sight and the object expected to be controlled; further, according to the indicator position information of the direction indicator and the interaction indicator line to be corrected, determine the target interaction indicator line to base on the target interaction The indicator line controls the object to be controlled, allowing the user to select and control any object that can be observed within the line of sight through the handle, avoiding the problem that some objects cannot be selected due to occlusion between the user and the user, enriching the user and the scene The interactive effect of various objects in the virtual scene improves the fun of the virtual scene and the user experience.
实施例二Embodiment 2
图5为本公开实施例二所提供的一种交互指示线的确定装置的结构框图,可执行本公开任意实施例所提供的交互指示线的确定方法,具备执行方法相应的功能模块和有益效果。如图5所示,该装置具体包括:指向信息确定模块210、待修正交互指示线确定模块220以及目标交互指示线确定模块230。Figure 5 is a structural block diagram of a device for determining an interactive indicator line provided in Embodiment 2 of the present disclosure. It can execute the method for determining an interactive indicator line provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method. . As shown in FIG. 5 , the device specifically includes: a pointing information determination module 210 , an interaction indication line to be corrected determination module 220 , and a target interaction indication line determination module 230 .
指向信息确定模块210,用于获取方向指示器的目标指向信息。The pointing information determination module 210 is used to obtain the target pointing information of the direction indicator.
待修正交互指示线确定模块220,用于根据所述目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与所述待修正交互指示线相交的待控制物。The interaction indication line to be corrected determination module 220 is configured to determine the interaction indication line to be corrected and the objects to be controlled that intersect the interaction indication line to be corrected based on the target pointing information and the viewpoint position information of the viewpoint controller.
目标交互指示线确定模块230,用于根据所述方向指示器的指示器位置信息以及所述待修正交互指示线,确定目标交互指示线,以基于所述目标交互指示线控制所述待控制物体。The target interaction indication line determination module 230 is configured to determine a target interaction indication line according to the indicator position information of the direction indicator and the interaction indication line to be corrected, so as to control the object to be controlled based on the target interaction indication line. .
可选的,指向信息确定模块210,还用于基于设置在所述方向指示器中的陀螺仪,确定所述方向指示器的目标指向信息。Optionally, the pointing information determination module 210 is also configured to determine the target pointing information of the direction indicator based on the gyroscope provided in the direction indicator.
在上述各技术方案的基础上,待修正交互指示线确定模块220包括待修正交互指示线确定单元以及待控制物体确定单元。Based on the above technical solutions, the interaction indication line to be corrected determination module 220 includes an interaction indication line to be corrected determining unit and an object to be controlled determining unit.
待修正交互指示线确定单元,用于以所述视点位置信息为起始点,确定与所述目标指向信息相对应的待修正交互指示线。The interactive indication line to be corrected determining unit is configured to use the viewpoint position information as a starting point to determine the interactive indication line to be corrected corresponding to the target pointing information.
待控制物体确定单元,用于将与所述待修正交互指示线相交的待选择物体,作为所述待控制物体,并将相交的交点作为所述待控制物体的控制点,以基于所述控制点控制所述待控制物体。The object to be controlled determination unit is configured to use the object to be selected that intersects the interaction indication line to be corrected as the object to be controlled, and the intersection point as the control point of the object to be controlled, to control based on the Point controls the object to be controlled.
在上述各技术方案的基础上,目标交互指示线确定模块230包括待选择连接点确定单元、目标连接点确定单元以及目标交互指示线确定单元。Based on the above technical solutions, the target interaction indication line determination module 230 includes a connection point to be selected determination unit, a target connection point determination unit and a target interaction indication line determination unit.
待选择连接点确定单元,用于确定所述待修正交互指示线上的各待选择连接点。A connection point determination unit to be selected is used to determine each connection point to be selected on the interaction indication line to be corrected.
目标连接点确定单元,用于根据所述指示器位置信息和各待选择连接点,确定目标连接点。A target connection point determination unit is configured to determine a target connection point based on the indicator position information and each connection point to be selected.
目标交互指示线确定单元,用于根据所述指示器位置信息、所述目标连接点以及所述待修正交互指示线,确定目标交互指示线。A target interaction indication line determination unit is configured to determine a target interaction indication line based on the indicator position information, the target connection point, and the interaction indication line to be corrected.
可选的,待选择连接点确定单元,还用于根据所述待修正交互指示线的长度信息和预先设置的调整参数,确定连接点调整范围;在所述连接点调整范围内,以所述视点位置信息为起始点,按照预设步长依次确定各待选择连接点。Optionally, the connection point determination unit to be selected is also configured to determine the connection point adjustment range according to the length information of the interaction indicator line to be corrected and the preset adjustment parameters; within the connection point adjustment range, the The viewpoint position information is used as the starting point, and each connection point to be selected is determined in sequence according to the preset step size.
可选的,目标连接点确定单元,还用于依据确定各待选择连接点的顺序信息,确定指示器位置信息和相应待选择连接点之间的连线是否首次与障碍物相交;若是,则依据所述顺序信息确定与所述障碍物相交时的前一待选择连接点,作为所述目标连接点。Optionally, the target connection point determination unit is also used to determine whether the connection line between the indicator position information and the corresponding connection point to be selected intersects the obstacle for the first time based on the sequence information for determining each connection point to be selected; if so, then The previous connection point to be selected when intersecting the obstacle is determined according to the sequence information as the target connection point.
可选的,目标交互指示线确定单元,还用于根据所述指示器位置信息和所述目标连接点,确定贝塞尔曲线;根据所述贝塞尔曲线和所述待修正交互指示线,确定所述目标交互指示线。Optionally, the target interactive indicator line determination unit is further configured to determine a Bezier curve based on the indicator position information and the target connection point; based on the Bezier curve and the interactive indicator line to be corrected, Determine the target interaction indicator line.
可选的,目标交互指示线确定单元,还用于确定所述目标指向信息所对应的第一强度,以及与所述目标指向信息垂直方向上的第二强度;基于所述第一强度、第二强度、指示器位置信息、目标连接点、目标指向信息以及与所述目标指向信息垂直的垂直指向信息,确定所述贝塞尔曲线。Optionally, the target interaction indication line determination unit is also used to determine the first intensity corresponding to the target pointing information, and the second intensity in the direction perpendicular to the target pointing information; based on the first intensity, the third intensity The Bezier curve is determined by two intensities, pointer position information, target connection points, target pointing information and vertical pointing information perpendicular to the target pointing information.
可选的,目标交互指示线确定单元,还用于根据所述第一强度、第二强度、指示器位置信息、目标连接点、目标指向信息以及所述垂直指向信息,确定待绘制贝塞尔曲线;根据预先设置的绘制参数,确定与所述待绘制贝塞尔曲线相对应的多个离散点;基于所述多个离散点,确定所述贝塞尔曲线。Optionally, the target interactive indicator line determination unit is also configured to determine the Bezier to be drawn based on the first intensity, the second intensity, the indicator position information, the target connection point, the target pointing information and the vertical pointing information. Curve; determine a plurality of discrete points corresponding to the Bezier curve to be drawn according to preset drawing parameters; determine the Bezier curve based on the plurality of discrete points.
可选的,目标交互指示线确定单元,还用于将所述修正交互指示线上所述目标连接点至所述待控制物体控制点之间的连线,作为待拼接交互指示线;基于所述贝塞尔曲线和所述待拼接交互指示线,确定所述目标交互指示线。Optionally, the target interaction indication line determination unit is also configured to use the connection line between the target connection point on the modified interaction indication line and the control point of the object to be controlled as the interaction indication line to be spliced; based on the The Bezier curve and the interactive indicator line to be spliced are used to determine the target interactive indicator line.
在上述各技术方案的基础上,交互指示线的确定装置还包括目标交互指示线更新模块。Based on the above technical solutions, the device for determining the interaction indication line also includes a target interaction indication line update module.
目标交互指示线更新模块,用于在控制所述待控制物体运动的过程中,重复执行根据获取到的方向指示器的目标指向信息,以及所述视点控制器的视点位置信息,更新所述目标交互指示线。A target interactive indicator line update module, configured to repeatedly execute, in the process of controlling the movement of the object to be controlled, to update the target based on the acquired target pointing information of the direction indicator and the viewpoint position information of the viewpoint controller. Interactive indicator lines.
本实施例所提供的技术方案,获取方向指示器的目标指向信息,即确定出用户手部所持手柄的指向;根据目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与待修正交互指示线相交的待控制物体,即确定出用户视线以及期望控制的物体;进一步的,根据方向指示器的指示器位置信息以及待修正交互指示线,确定目标交互指示线,以基于目标交互指示线控制待控制物体,使用户可以通过手柄选中并控制视线范围内所能观察到的任意物体,避免了某些物体由于与用户之间存在遮挡而无法被选中的问题,丰富了用户与场景内各种物体的互动效果,提高了虚拟场景的趣味性以及用户的使用体验。The technical solution provided by this embodiment obtains the target pointing information of the direction indicator, that is, determines the direction of the handle held by the user's hand; determines the interaction indication line to be corrected based on the target pointing information and the viewpoint position information of the viewpoint controller, and The object to be controlled that intersects the interaction indication line to be corrected determines the user's line of sight and the object expected to be controlled; further, according to the indicator position information of the direction indicator and the interaction indication line to be corrected, the target interaction indication line is determined based on The target interactive indicator line controls the object to be controlled, allowing the user to select and control any object that can be observed within the line of sight through the handle, avoiding the problem that some objects cannot be selected due to occlusion between the user and the user, and enriching the user experience The interaction effect with various objects in the scene improves the fun of the virtual scene and the user experience.
本公开实施例所提供的交互指示线的确定装置可执行本公开任意实施例所提供的交互指示线的确定方法,具备执行方法相应的功能模块和有益效果。The device for determining the interactive indicator line provided by the embodiments of the present disclosure can execute the method for determining the interactive indicator line provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.
值得注意的是,上述装置所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。It is worth noting that the various units and modules included in the above-mentioned devices are only divided according to functional logic, but are not limited to the above-mentioned divisions, as long as they can achieve the corresponding functions; in addition, the specific names of each functional unit are just In order to facilitate mutual differentiation, it is not used to limit the protection scope of the embodiments of the present disclosure.
实施例三Embodiment 3
图6为本公开实施例三所提供的一种电子设备的结构示意图。下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如图6中的终端设备或服务器)300的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 6 is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present disclosure. Referring now to FIG. 6 , a schematic structural diagram of an electronic device (such as the terminal device or server in FIG. 6 ) 300 suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储装置306加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的各种程序和数据。处理装置301、ROM 302以及RAM 303通过总线304彼此相连。编辑/输出(I/O)接口305也连接至总线304。As shown in FIG. 6, the electronic device 300 may include a processing device (such as a central processing unit, a graphics processor, etc.) 301, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 302 or from a storage device 306. The program in the memory (RAM) 303 executes various appropriate actions and processes. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302 and the RAM 303 are connected to each other via a bus 304. An editing/output (I/O) interface 305 is also connected to bus 304.
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的编辑装置306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices may be connected to the I/O interface 305: an editing device 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration An output device 307 such as a computer; a storage device 308 including a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates electronic device 300 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置306被安装,或者从ROM 302被安装。在该计算机程序被处理装置301执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication device 309, or from storage device 306, or from ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
本公开实施例提供的电子设备与上述实施例提供的交互指示线的确定方法属于同一发明构思,未在本实施例中详尽描述的技术细节可参见上述实施例,并且本实施例与上述实施例具有相同的有益效果。The electronic device provided by the embodiments of the present disclosure and the method for determining the interactive indicator line provided by the above embodiments belong to the same inventive concept. Technical details that are not described in detail in this embodiment can be referred to the above embodiments, and this embodiment is different from the above embodiments. Have the same beneficial effects.
实施例四Embodiment 4
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的交互指示线的确定方法。Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method for determining the interactive indicator line provided in the above embodiments is implemented.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmed read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium. (e.g., communications network) interconnection. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device:
响应于特效触发操作,确定至少一幅待展示特效图像,并根据预先设置的图像展示方式对所述至少一幅待展示特效图像进行展示;In response to the special effect triggering operation, determine at least one special effect image to be displayed, and display the at least one special effect image to be displayed according to a preset image display method;
若在展示过程中检测到满足翻页条件时,对当前显示的待展示特效图像执行目标翻页特效,并按照所述图像展示方式对其余的各待展示特效图像进行展示,直至接收到停止特效展示操作。If it is detected during the display process that the page turning condition is met, the target page turning special effect is performed on the currently displayed special effect image to be displayed, and the remaining special effect images to be displayed are displayed according to the image display method until a stop special effect is received. Demonstrate operations.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。The units involved in the embodiments of the present disclosure can be implemented in software or hardware. The name of the unit does not constitute a limitation on the unit itself under certain circumstances. For example, the first acquisition unit can also be described as "the unit that acquires at least two Internet Protocol addresses."
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
根据本公开的一个或多个实施例,【示例一】提供了一种交互指示线的确定方法,该方法包括:According to one or more embodiments of the present disclosure, [Example 1] provides a method for determining an interactive indicator line, which method includes:
获取方向指示器的目标指向信息;Get the target pointing information of the direction indicator;
根据所述目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与所述待修正交互指示线相交的待控制物体;According to the target pointing information and the viewpoint position information of the viewpoint controller, determine the interaction indication line to be corrected and the object to be controlled that intersects with the interaction indication line to be corrected;
根据所述方向指示器的指示器位置信息以及所述待修正交互指示线,确定目标交互指示线,以基于所述目标交互指示线控制所述待控制物体。According to the indicator position information of the direction indicator and the interaction indication line to be corrected, a target interaction indication line is determined to control the object to be controlled based on the target interaction indication line.
根据本公开的一个或多个实施例,【示例二】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 2] provides a method for determining an interactive indicator line, further including:
可选的,基于设置在所述方向指示器中的陀螺仪,确定所述方向指示器的目标指向信息。Optionally, the target pointing information of the direction indicator is determined based on a gyroscope provided in the direction indicator.
根据本公开的一个或多个实施例,【示例三】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 3] provides a method for determining an interactive indicator line, which also includes:
可选的,以所述视点位置信息为起始点,确定与所述目标指向信息相对应的待修正交互指示线;Optionally, using the viewpoint position information as a starting point, determine an interactive indicator line to be corrected corresponding to the target pointing information;
将与所述待修正交互指示线相交的待选择物体,作为所述待控制物体,并将相交的交点作为所述待控制物体的控制点,以基于所述控制点控制所述待控制物体。The object to be selected that intersects the interaction indication line to be corrected is used as the object to be controlled, and the intersection point is used as the control point of the object to be controlled, so as to control the object to be controlled based on the control point.
根据本公开的一个或多个实施例,【示例四】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 4] provides a method for determining an interactive indicator line, further including:
可选的,确定所述待修正交互指示线上的各待选择连接点;Optionally, determine each connection point to be selected on the interaction indication line to be corrected;
根据所述指示器位置信息和各待选择连接点,确定目标连接点;Determine the target connection point according to the indicator position information and each connection point to be selected;
根据所述指示器位置信息、所述目标连接点以及所述待修正交互指示线,确定目标交互指示线。A target interaction indication line is determined based on the pointer position information, the target connection point and the interaction indication line to be corrected.
根据本公开的一个或多个实施例,【示例五】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 5] provides a method for determining an interactive indicator line, which also includes:
可选的,根据所述待修正交互指示线的长度信息和预先设置的调整参数,确定连接点调整范围;Optionally, determine the connection point adjustment range according to the length information of the interactive indicator line to be corrected and the preset adjustment parameters;
在所述连接点调整范围内,以所述视点位置信息为起始点,按照预设步长依次确定各待选择连接点。Within the adjustment range of the connection point, taking the viewpoint position information as the starting point, each connection point to be selected is determined sequentially according to the preset step size.
根据本公开的一个或多个实施例,【示例六】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 6] provides a method for determining an interactive indicator line, which further includes:
可选的,依据确定各待选择连接点的顺序信息,确定指示器位置信息和相应待选择连接点之间的连线是否首次与障碍物相交;Optionally, based on the sequence information for determining each connection point to be selected, determine whether the connection line between the indicator position information and the corresponding connection point to be selected intersects with the obstacle for the first time;
若是,则依据所述顺序信息确定与所述障碍物相交时的前一待选择连接点,作为所述目标连接点。If so, the previous connection point to be selected when intersecting the obstacle is determined based on the sequence information as the target connection point.
根据本公开的一个或多个实施例,【示例七】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 7] provides a method for determining an interactive indicator line, which also includes:
可选的,根据所述指示器位置信息和所述目标连接点,确定贝塞尔曲线;Optionally, determine a Bezier curve based on the indicator position information and the target connection point;
根据所述贝塞尔曲线和所述待修正交互指示线,确定所述目标交互指示线。The target interaction indication line is determined based on the Bezier curve and the interaction indication line to be corrected.
根据本公开的一个或多个实施例,【示例八】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 8] provides a method for determining an interactive indicator line, further including:
可选的,确定所述目标指向信息所对应的第一强度,以及与所述目标指向信息垂直方向上的第二强度;Optionally, determine a first intensity corresponding to the target pointing information, and a second intensity in a direction perpendicular to the target pointing information;
基于所述第一强度、第二强度、指示器位置信息、目标连接点、目标指向信息以及与所述目标指向信息垂直的垂直指向信息,确定所述贝塞尔曲线。The Bezier curve is determined based on the first intensity, the second intensity, pointer position information, a target connection point, target pointing information, and vertical pointing information perpendicular to the target pointing information.
根据本公开的一个或多个实施例,【示例九】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 9] provides a method for determining an interactive indicator line, further including:
可选的,根据所述第一强度、第二强度、指示器位置信息、目标连接点、目标指向信息以及所述垂直指向信息,确定待绘制贝塞尔曲线;Optionally, determine the Bezier curve to be drawn based on the first intensity, the second intensity, the indicator position information, the target connection point, the target pointing information and the vertical pointing information;
根据预先设置的绘制参数,确定与所述待绘制贝塞尔曲线相对应的多个离散点;Determine multiple discrete points corresponding to the Bezier curve to be drawn according to preset drawing parameters;
基于所述多个离散点,确定所述贝塞尔曲线。Based on the plurality of discrete points, the Bezier curve is determined.
根据本公开的一个或多个实施例,【示例十】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 10] provides a method for determining an interactive indicator line, further including:
可选的,将所述修正交互指示线上所述目标连接点至所述待控制物体控制点之间的连线,作为待拼接交互指示线;Optionally, the connection line between the target connection point on the modified interaction indication line and the control point of the object to be controlled is used as the interaction indication line to be spliced;
基于所述贝塞尔曲线和所述待拼接交互指示线,确定所述目标交互指示线。The target interaction indication line is determined based on the Bezier curve and the interaction indication line to be spliced.
根据本公开的一个或多个实施例,【示例十一】提供了一种交互指示线的确定方法,还包括:According to one or more embodiments of the present disclosure, [Example 11] provides a method for determining an interactive indicator line, further including:
可选的,重复执行根据获取到的方向指示器的目标指向信息,以及所述视点控制器的视点位置信息,更新所述目标交互指示线。Optionally, repeatedly update the target interaction indication line according to the acquired target pointing information of the direction indicator and the viewpoint position information of the viewpoint controller.
根据本公开的一个或多个实施例,【示例十二】提供了一种交互指示线的确定装置,包括:According to one or more embodiments of the present disclosure, [Example 12] provides a device for determining an interactive indicator line, including:
指向信息确定模块,用于获取方向指示器的目标指向信息;The pointing information determination module is used to obtain the target pointing information of the direction indicator;
待修正交互指示线确定模块,用于根据所述目标指向信息和视点控制器的视点位置信息,确定待修正交互指示线,以及与所述待修正交互指示线相交的待控制物体;An interaction indication line to be corrected determination module, configured to determine an interaction indication line to be corrected and an object to be controlled that intersects the interaction indication line to be corrected based on the target pointing information and the viewpoint position information of the viewpoint controller;
目标交互指示线确定模块,用于根据所述方向指示器的指示器位置信息以及所述待修正交互指示线,确定目标交互指示线,以基于所述目标交互指示线控制所述待控制物体。A target interaction indication line determination module is configured to determine a target interaction indication line based on the indicator position information of the direction indicator and the interaction indication line to be corrected, so as to control the object to be controlled based on the target interaction indication line.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a description of the preferred embodiments of the present disclosure and the technical principles applied. Those skilled in the art should understand that the disclosure scope involved in the present disclosure is not limited to technical solutions composed of specific combinations of the above technical features, but should also cover solutions composed of the above technical features or without departing from the above disclosed concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in this disclosure (but not limited to).
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Furthermore, although operations are depicted in a specific order, this should not be understood as requiring that these operations be performed in the specific order shown or performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210176746.2A CN114564106B (en) | 2022-02-25 | 2022-02-25 | Method and device for determining interaction indication line, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210176746.2A CN114564106B (en) | 2022-02-25 | 2022-02-25 | Method and device for determining interaction indication line, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114564106A CN114564106A (en) | 2022-05-31 |
| CN114564106B true CN114564106B (en) | 2023-11-28 |
Family
ID=81714845
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210176746.2A Active CN114564106B (en) | 2022-02-25 | 2022-02-25 | Method and device for determining interaction indication line, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114564106B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115237289B (en) * | 2022-07-01 | 2024-02-23 | 杭州涂鸦信息技术有限公司 | Hot zone range determining method, device, equipment and storage medium |
| CN115494947A (en) * | 2022-09-29 | 2022-12-20 | 歌尔科技有限公司 | Interaction method and device, near-eye display equipment and readable storage medium |
| CN116243795B (en) * | 2023-02-20 | 2024-06-21 | 南方科技大学 | Mixed reality-based object grabbing method and mixed reality equipment |
| CN119668464A (en) * | 2023-09-21 | 2025-03-21 | 北京字跳网络技术有限公司 | Ray display method, device, equipment, computer readable storage medium and product |
Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1049691A (en) * | 1996-07-31 | 1998-02-20 | Dainippon Screen Mfg Co Ltd | Method and device for tracing dot sequence with bezier curve |
| JP2012256280A (en) * | 2011-06-10 | 2012-12-27 | Nippon Telegr & Teleph Corp <Ntt> | Dynamic image processing method, dynamic image processor and dynamic image processing program |
| CN105912110A (en) * | 2016-04-06 | 2016-08-31 | 北京锤子数码科技有限公司 | Method, device and system for performing target selection in virtual reality space |
| CN106886038A (en) * | 2015-12-15 | 2017-06-23 | 骑记(厦门)科技有限公司 | The processing method and processing device of movement locus |
| CN107797752A (en) * | 2017-11-07 | 2018-03-13 | 广州视睿电子科技有限公司 | Handwriting presenting method and device, interactive intelligent panel and storage medium |
| CN108388347A (en) * | 2018-03-15 | 2018-08-10 | 网易(杭州)网络有限公司 | Interaction control method and device in virtual reality and storage medium, terminal |
| CN108981722A (en) * | 2017-05-31 | 2018-12-11 | 通用汽车环球科技运作有限责任公司 | The trajectory planning device using Bezier for autonomous driving |
| CN111242966A (en) * | 2020-01-15 | 2020-06-05 | 北京大豪科技股份有限公司 | Image boundary correction method, device, electronic equipment and storage medium |
| CN111369619A (en) * | 2020-02-28 | 2020-07-03 | 神华铁路装备有限责任公司 | VR visual angle correction method, device, system and storage medium |
| CN111383296A (en) * | 2018-12-28 | 2020-07-07 | 北京小米移动软件有限公司 | Display method and device for drawing track and storage medium |
| CN112148125A (en) * | 2020-09-23 | 2020-12-29 | 北京市商汤科技开发有限公司 | AR interaction state control method, device, equipment and storage medium |
| CN112927119A (en) * | 2019-12-06 | 2021-06-08 | 富士施乐实业发展(中国)有限公司 | Anti-theft information embedding method and using method of TrueType font library |
| CN113041616A (en) * | 2021-02-22 | 2021-06-29 | 网易(杭州)网络有限公司 | Method and device for controlling jumping display in game, electronic equipment and storage medium |
| CN113538623A (en) * | 2021-07-20 | 2021-10-22 | 北京京东振世信息技术有限公司 | Method and device for determining target image, electronic equipment and storage medium |
| CN113655813A (en) * | 2021-10-20 | 2021-11-16 | 北京微纳星空科技有限公司 | A flight correction control method, system, storage medium and electronic device |
| CN113760087A (en) * | 2021-02-08 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for determining hit point position information |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5653141B2 (en) * | 2010-09-01 | 2015-01-14 | キヤノン株式会社 | Image processing method, image processing apparatus, and program |
| JP6501727B2 (en) * | 2016-06-02 | 2019-04-17 | 株式会社スペース・バイオ・ラボラトリーズ | Walking motion assistance device |
-
2022
- 2022-02-25 CN CN202210176746.2A patent/CN114564106B/en active Active
Patent Citations (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1049691A (en) * | 1996-07-31 | 1998-02-20 | Dainippon Screen Mfg Co Ltd | Method and device for tracing dot sequence with bezier curve |
| JP2012256280A (en) * | 2011-06-10 | 2012-12-27 | Nippon Telegr & Teleph Corp <Ntt> | Dynamic image processing method, dynamic image processor and dynamic image processing program |
| CN106886038A (en) * | 2015-12-15 | 2017-06-23 | 骑记(厦门)科技有限公司 | The processing method and processing device of movement locus |
| CN105912110A (en) * | 2016-04-06 | 2016-08-31 | 北京锤子数码科技有限公司 | Method, device and system for performing target selection in virtual reality space |
| CN108981722A (en) * | 2017-05-31 | 2018-12-11 | 通用汽车环球科技运作有限责任公司 | The trajectory planning device using Bezier for autonomous driving |
| CN107797752A (en) * | 2017-11-07 | 2018-03-13 | 广州视睿电子科技有限公司 | Handwriting presenting method and device, interactive intelligent panel and storage medium |
| CN108388347A (en) * | 2018-03-15 | 2018-08-10 | 网易(杭州)网络有限公司 | Interaction control method and device in virtual reality and storage medium, terminal |
| CN111383296A (en) * | 2018-12-28 | 2020-07-07 | 北京小米移动软件有限公司 | Display method and device for drawing track and storage medium |
| CN112927119A (en) * | 2019-12-06 | 2021-06-08 | 富士施乐实业发展(中国)有限公司 | Anti-theft information embedding method and using method of TrueType font library |
| CN111242966A (en) * | 2020-01-15 | 2020-06-05 | 北京大豪科技股份有限公司 | Image boundary correction method, device, electronic equipment and storage medium |
| CN111369619A (en) * | 2020-02-28 | 2020-07-03 | 神华铁路装备有限责任公司 | VR visual angle correction method, device, system and storage medium |
| CN112148125A (en) * | 2020-09-23 | 2020-12-29 | 北京市商汤科技开发有限公司 | AR interaction state control method, device, equipment and storage medium |
| CN113760087A (en) * | 2021-02-08 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for determining hit point position information |
| CN113041616A (en) * | 2021-02-22 | 2021-06-29 | 网易(杭州)网络有限公司 | Method and device for controlling jumping display in game, electronic equipment and storage medium |
| CN113538623A (en) * | 2021-07-20 | 2021-10-22 | 北京京东振世信息技术有限公司 | Method and device for determining target image, electronic equipment and storage medium |
| CN113655813A (en) * | 2021-10-20 | 2021-11-16 | 北京微纳星空科技有限公司 | A flight correction control method, system, storage medium and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114564106A (en) | 2022-05-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114564106B (en) | Method and device for determining interaction indication line, electronic equipment and storage medium | |
| US11610287B2 (en) | Motion trail update method, head-mounted display device and computer-readable medium | |
| EP4177724A1 (en) | Facial image display method and apparatus, and electronic device and storage medium | |
| WO2024169691A1 (en) | Video processing method and apparatus, electronic device, and storage medium | |
| US20250046008A1 (en) | 3d target point rendering method and apparatus, device, and storage medium | |
| CN114397961B (en) | Head-mounted display device control method, head-mounted display device assembly and medium | |
| CN116077182A (en) | Medical surgical robot control method, device, equipment and medium | |
| US20250061667A1 (en) | Control method and apparatus based on mixed reality, electronic device, and storage medium | |
| US20240290026A1 (en) | Method and apparatus for controlling motion of moving object, device, and storage medium | |
| WO2024120114A1 (en) | Special effect processing method and apparatus, device, computer-readable storage medium and product | |
| JP7603827B2 (en) | Display Control Device | |
| WO2023202357A1 (en) | Movement control method and device for display object | |
| US20240126088A1 (en) | Positioning method, apparatus and system of optical tracker | |
| US20250208745A1 (en) | Interaction control method and apparatus, medium, and electronic device | |
| CN113515201B (en) | Cursor position updating method and device and electronic equipment | |
| US20250306675A1 (en) | Method and apparatus for moving virtual object, electronic device, and storage medium | |
| CN118429578A (en) | Control method, device, terminal and storage medium based on augmented reality | |
| CN118890463A (en) | Display method, device, electronic device and storage medium based on virtual reality | |
| CN118655978A (en) | Interactive control method, device, electronic device and storage medium | |
| CN117631810A (en) | Operation processing method, device, equipment and medium based on virtual reality space | |
| CN117170491A (en) | Method, device, equipment and medium for determining virtual cursor in virtual reality scene | |
| CN115619918A (en) | Image rendering method, device, equipment and storage medium | |
| CN116431033A (en) | Virtual interface display method, device, head-mounted display equipment and readable medium | |
| CN117641025A (en) | Model display method, device, equipment and medium based on virtual reality space | |
| WO2025092464A1 (en) | Interaction control method and apparatus, electronic device, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |