CN117765207A - Virtual interface display method, device, equipment and medium - Google Patents

Virtual interface display method, device, equipment and medium Download PDF

Info

Publication number
CN117765207A
CN117765207A CN202211138585.4A CN202211138585A CN117765207A CN 117765207 A CN117765207 A CN 117765207A CN 202211138585 A CN202211138585 A CN 202211138585A CN 117765207 A CN117765207 A CN 117765207A
Authority
CN
China
Prior art keywords
virtual
interface
display layer
display
layer
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.)
Pending
Application number
CN202211138585.4A
Other languages
Chinese (zh)
Inventor
马倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211138585.4A priority Critical patent/CN117765207A/en
Publication of CN117765207A publication Critical patent/CN117765207A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

本公开实施例涉及一种虚拟界面的显示方法、装置、设备及介质,其中该方法包括:响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的虚拟界面对应的标准参考位置,其中,标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,界面显示图层在虚拟现实空间中的垂直坐标轴方向上平行位于标准显示图层的正后方,由虚拟现实空间的内部指向用户的方向为垂直坐标轴的正方向;根据标准参考位置控制渲染有虚拟界面的界面显示图层,沿着垂直坐标轴的正方向平移至目标参考显示位置进行显示。由此,充分利用虚拟现实空间的深度信息显示有关虚拟界面,提升了虚拟界面的在视觉上的显示立体感。

Embodiments of the present disclosure relate to a display method, device, equipment and medium for a virtual interface, wherein the method includes: in response to a viewing operation of a virtual interface displayed in an interface display layer, obtaining a predetermined standard corresponding to the virtual interface Reference position, where the standard reference position is the predetermined position of the standard layer in the virtual reality space. The interface display layer is located directly behind the standard display layer parallel to the vertical coordinate axis in the virtual reality space. The direction that the interior of the real space points to the user is the positive direction of the vertical coordinate axis; the interface display layer with the virtual interface rendered is controlled according to the standard reference position, and is translated along the positive direction of the vertical coordinate axis to the target reference display position for display. As a result, the depth information of the virtual reality space is fully utilized to display the relevant virtual interface, which improves the visual three-dimensionality of the virtual interface.

Description

虚拟界面的显示方法、装置、设备及介质Display method, device, equipment and media of virtual interface

技术领域Technical field

本公开涉及虚拟现实技术领域,尤其涉及一种虚拟界面的显示方法、装置、设备及介质。The present disclosure relates to the field of virtual reality technology, and in particular, to a display method, device, equipment and medium for a virtual interface.

背景技术Background technique

虚拟现实(Virtual Reality,VR)技术,又称虚拟环境、灵境或人工环境,是指利用计算机生成一种可对参与者直接施加视觉、听觉和触觉感受,并允许其交互地观察和操作的虚拟世界的技术。提升VR的操作体验成为一种主流。Virtual Reality (VR) technology, also known as virtual environment, spiritual environment or artificial environment, refers to the use of computers to generate a virtual environment that directly exerts visual, auditory and tactile sensations on participants and allows them to observe and operate interactively. world technology. Improving the VR operating experience has become a mainstream trend.

相关技术中,可基于虚拟现实技术在虚拟现实空间中实现应用操作,在虚拟现实空间中根据距离用户人眼的最佳观看距离,确定虚拟界面的显示位置,在该显示位置上以空间虚拟屏的形式显示对应的虚拟界面。In the related technology, application operations can be implemented in a virtual reality space based on virtual reality technology. In the virtual reality space, the display position of the virtual interface is determined according to the optimal viewing distance from the user's eyes, and the corresponding virtual interface is displayed in the form of a spatial virtual screen at the display position.

然而,上述在虚拟现实空间中以距离用户人眼的最佳观看距离确定虚拟界面显示位置的方式中,虚拟界面的显示方式没有充分利用虚拟现实空间中的深度信息,影响用户的视觉体验。However, in the above-mentioned method of determining the display position of the virtual interface in the virtual reality space based on the optimal viewing distance from the user's human eyes, the display method of the virtual interface does not fully utilize the depth information in the virtual reality space, affecting the user's visual experience.

发明内容Contents of the invention

为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种虚拟界面的显示方法、装置、设备及介质,以模拟现实世界中对虚拟界面的显示,且充分利用虚拟现实空间中的深度信息,在实现虚拟界面的显示的基础上,实现虚拟界面显示的立体感。In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a virtual interface display method, device, equipment and medium to simulate the display of the virtual interface in the real world and make full use of the virtual interface in the virtual reality space. The depth information is used to realize the three-dimensional sense of the virtual interface display on the basis of realizing the display of the virtual interface.

本公开实施例提供了一种虚拟界面的显示方法,所述方法包括:响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的所述虚拟界面对应的标准参考位置,其中,所述标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,所述界面显示图层在所述虚拟现实空间中的垂直坐标轴方向上平行位于所述标准显示图层的正后方,由所述虚拟现实空间的内部指向用户的方向为所述垂直坐标轴的正方向;根据所述标准参考位置控制渲染有所述虚拟界面的界面显示图层,沿着所述垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,所述目标参考显示位置对应的垂直坐标值小于等于所述标准参考位置对应的垂直坐标值。Embodiments of the present disclosure provide a method for displaying a virtual interface. The method includes: in response to a viewing operation of a virtual interface displayed in an interface display layer, obtaining a predetermined standard reference position corresponding to the virtual interface, Wherein, the standard reference position is a predetermined position of the standard layer in the virtual reality space, and the interface display layer is located parallel to the standard display layer in the direction of the vertical coordinate axis in the virtual reality space. Directly behind, the direction pointing to the user from the inside of the virtual reality space is the positive direction of the vertical coordinate axis; the interface display layer rendered with the virtual interface is controlled according to the standard reference position, along the vertical coordinate The positive direction of the axis is translated to the target reference display position for display, wherein the vertical coordinate value corresponding to the target reference display position is less than or equal to the vertical coordinate value corresponding to the standard reference position.

本公开实施例还提供了一种虚拟界面的显示装置,所述装置包括:获取模块,用于响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的所述虚拟界面对应的标准参考位置,其中,所述标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,所述界面显示图层在所述虚拟现实空间中的垂直坐标轴方向上平行位于所述标准显示图层的正后方,由所述虚拟现实空间的内部指向用户的方向为所述垂直坐标轴的正方向;显示处理模块,用于根据所述标准参考位置控制渲染有所述虚拟界面的界面显示图层,沿着所述垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,所述目标参考显示位置对应的垂直坐标值小于等于所述标准参考位置对应的垂直坐标值。Embodiments of the present disclosure also provide a display device for a virtual interface. The device includes: an acquisition module, configured to acquire the predetermined virtual interface in response to a viewing operation of the virtual interface displayed in the interface display layer. The corresponding standard reference position, wherein the standard reference position is the position of the predetermined standard layer in the virtual reality space, and the interface display layer is located parallel to the vertical coordinate axis direction in the virtual reality space. Directly behind the standard display layer, the direction pointing to the user from the inside of the virtual reality space is the positive direction of the vertical coordinate axis; a display processing module configured to control the rendering of the virtual interface according to the standard reference position The interface display layer is translated along the positive direction of the vertical coordinate axis to the target reference display position for display, wherein the vertical coordinate value corresponding to the target reference display position is less than or equal to the vertical coordinate value corresponding to the standard reference position. .

本公开实施例还提供了一种电子设备,所述电子设备包括:处理器;用于存储所述处理器可执行指令的存储器;所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述指令以实现如本公开实施例提供的虚拟界面的显示方法。An embodiment of the present disclosure also provides an electronic device. The electronic device includes: a processor; a memory used to store instructions executable by the processor; and the processor is used to read the instruction from the memory. The instructions can be executed and executed to implement the display method of the virtual interface provided by the embodiments of the present disclosure.

本公开实施例还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行如本公开实施例提供的虚拟界面的显示方法。Embodiments of the present disclosure also provide a computer-readable storage medium, the storage medium stores a computer program, and the computer program is used to execute the display method of a virtual interface as provided by the embodiments of the present disclosure.

本公开实施例提供的技术方案与现有技术相比具有如下优点:Compared with the existing technology, the technical solution provided by the embodiments of the present disclosure has the following advantages:

本公开实施例提供的虚拟界面的显示方案,响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的虚拟界面对应的标准参考位置,其中,标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,界面显示图层在虚拟现实空间中的垂直坐标轴方向上平行位于标准显示图层的正后方,由虚拟现实空间的内部指向用户的方向为垂直坐标轴的正方向,根据标准参考位置控制渲染有虚拟界面的界面显示图层,沿着垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,目标参考显示位置对应的垂直坐标值小于等于标准参考位置对应的垂直坐标值。在本公开的实施例中,设置与标准显示图层具有景深关系的界面显示图层来显示虚拟界面,在实现虚拟界面渲染显示的基础上,营造虚拟界面显示的景深效果,在显示虚拟界面时控制虚拟界面的向垂直轴前运动,提升了虚拟界面的显示立体感。The display scheme of the virtual interface provided by the embodiment of the present disclosure is to obtain the predetermined standard reference position corresponding to the virtual interface in response to the viewing operation of the virtual interface displayed in the interface display layer, where the standard reference position is the predetermined The position of the standard layer in the virtual reality space. The interface display layer is parallel to the vertical coordinate axis in the virtual reality space and is directly behind the standard display layer. The direction from the inside of the virtual reality space to the user is the vertical coordinate axis. In the positive direction, control the rendering of the interface display layer with the virtual interface according to the standard reference position, and translate it along the positive direction of the vertical coordinate axis to the target reference display position for display, where the vertical coordinate value corresponding to the target reference display position is less than or equal to the standard Vertical coordinate value corresponding to the reference position. In the embodiment of the present disclosure, an interface display layer with a depth of field relationship with the standard display layer is set to display the virtual interface. On the basis of realizing the virtual interface rendering display, the depth of field effect of the virtual interface display is created. When displaying the virtual interface Controlling the forward movement of the virtual interface toward the vertical axis improves the three-dimensional display of the virtual interface.

附图说明Description of 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 diagram of an application scenario of a virtual reality device provided by the present disclosure;

图2为本公开实施例提供的一种虚拟界面的显示方法的流程示意图;Figure 2 is a schematic flowchart of a virtual interface display method provided by an embodiment of the present disclosure;

图3为本公开实施例提供的一种虚拟界面的显示场景示意图;Figure 3 is a schematic diagram of a display scene of a virtual interface provided by an embodiment of the present disclosure;

图4为本公开实施例提供的另一种虚拟界面的显示场景示意图;Figure 4 is a schematic diagram of a display scene of another virtual interface provided by an embodiment of the present disclosure;

图5为本公开实施例提供的另一种虚拟界面的显示场景示意图;Figure 5 is a schematic diagram of a display scene of another virtual interface provided by an embodiment of the present disclosure;

图6为本公开实施例提供的另一种虚拟界面的显示场景示意图;Figure 6 is a schematic diagram of a display scene of another virtual interface provided by an embodiment of the present disclosure;

图7为本公开实施例提供的另一种虚拟界面的显示场景示意图;Figure 7 is a schematic diagram of a display scene of another virtual interface provided by an embodiment of the present disclosure;

图8为本公开实施例提供的另一种虚拟界面的显示场景示意图;Figure 8 is a schematic diagram of a display scene of another virtual interface provided by an embodiment of the present disclosure;

图9为本公开实施例提供的另一种虚拟界面的显示场景示意图;Figure 9 is a schematic diagram of a display scene of another virtual interface provided by an embodiment of the present disclosure;

图10为本公开实施例提供的另一种虚拟界面的显示场景示意图;Figure 10 is a schematic diagram of a display scene of another virtual interface provided by an embodiment of the present disclosure;

图11为本公开实施例提供的一种虚拟界面的显示装置的结构示意图;Figure 11 is a schematic structural diagram of a virtual interface display device provided by an embodiment of the present disclosure;

图12为本公开实施例提供的一种电子设备的结构示意图。Figure 12 is a schematic structural diagram of an electronic device provided by an embodiment 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”.

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。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.

VR:VR是创建和体验虚拟世界的技术,计算生成一种虚拟环境,是一种多源信息(本文中提到的虚拟现实至少包括视觉感知,此外还可以包括听觉感知、触觉感知、运动感知,甚至还包括味觉感知、嗅觉感知等),实现虚拟环境的融合的、交互式的三维动态视景和实体行为的仿真,使用户沉浸到模拟的虚拟现实环境中,实现在诸如地图、游戏、视频、教育、医疗、模拟、协同训练、销售、协助制造、维护和修复等多种虚拟环境的应用。VR: VR is a technology for creating and experiencing virtual worlds. It calculates to generate a virtual environment and is a kind of multi-source information (the virtual reality mentioned in this article at least includes visual perception, and can also include auditory perception, tactile perception, and motion perception. , and even includes taste perception, smell perception, etc.), realizing the integration of virtual environments, interactive three-dimensional dynamic vision and simulation of physical behaviors, immersing users in simulated virtual reality environments, and realizing applications such as maps, games, Applications in various virtual environments such as video, education, medical care, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair, etc.

虚拟现实设备,VR中实现虚拟现实效果的终端,通常可以提供为眼镜、头盔式显示器(Head Mount Display,HMD)、隐形眼镜的形态,以用于实现视觉感知和其他形式的感知,当然虚拟现实设备实现的形态不限于此,根据需要可以进一步小型化或大型化。Virtual reality equipment, a terminal that implements virtual reality effects in VR, can usually be provided in the form of glasses, helmet-mounted displays (HMD), and contact lenses to achieve visual perception and other forms of perception. Of course, virtual reality The form of equipment implementation is not limited to this, and can be further miniaturized or enlarged as needed.

本公开实施例记载的虚拟现实设备可以包括但不限于如下几个类型:The virtual reality devices recorded in the embodiments of this disclosure may include but are not limited to the following types:

电脑端虚拟现实(PCVR)设备,利用PC端进行虚拟现实功能的相关计算以及数据输出,外接的电脑端虚拟现实设备利用PC端输出的数据实现虚拟现实的效果。Computer-side virtual reality (PCVR) equipment uses the PC side to perform calculations and data output related to virtual reality functions. The external computer-side virtual reality equipment uses the data output from the PC side to achieve virtual reality effects.

移动虚拟现实设备,支持以各种方式(如设置有专门的卡槽的头戴式显示器)设置移动终端(如智能手机),通过与移动终端有线或无线方式的连接,由移动终端进行虚拟现实功能的相关计算,并输出数据至移动虚拟现实设备,例如通过移动终端的APP观看虚拟现实视频。Mobile virtual reality equipment supports setting up a mobile terminal (such as a smartphone) in various ways (such as a head-mounted display with a special card slot), and through a wired or wireless connection with the mobile terminal, the mobile terminal performs virtual reality Function-related calculations and output data to mobile virtual reality devices, such as viewing virtual reality videos through mobile terminal APPs.

一体机虚拟现实设备,具备用于进行虚拟功能的相关计算的处理器,因而具备独立的虚拟现实输入和输出的功能,不需要与PC端或移动终端连接,使用自由度高。The all-in-one virtual reality device has a processor for performing calculations related to virtual functions, so it has independent virtual reality input and output functions. It does not need to be connected to a PC or mobile terminal, and has a high degree of freedom in use.

虚拟对象,扩展现实场景中进行交互的对象,受到用户或机器人程序(例如,基于人工智能的机器人程序)的控制,能够在扩展现实场景中静止、移动以及进行各种行为的对象。Virtual objects are objects that interact in an extended reality scene. They are controlled by users or robot programs (for example, robot programs based on artificial intelligence) and can be still, move, and perform various behaviors in the extended reality scene.

以VR场景为例,如图1所示,HMD为相对较轻的、在人体工程学上舒适的,并且提供具有低延迟的高分辨率内容。虚拟现实设备中设置有姿态检测的传感器(如九轴传感器),用于实时检测虚拟现实设备的姿态变化,如果用户佩戴了虚拟现实设备,那么当用户头部姿态发生变化时,会将头部的实时姿态传给处理器,以此计算用户的视线在虚拟环境中的注视点,相关技术中,根据注视点计算虚拟环境的三维模型中处于用户注视范围(即虚拟视场)的虚拟界面等,并在显示屏上显示,使人仿佛在置身于现实环境中观看一样的沉浸式体验。Taking the VR scene as an example, as shown in Figure 1, HMDs are relatively light, ergonomically comfortable, and provide high-resolution content with low latency. The virtual reality device is equipped with a posture detection sensor (such as a nine-axis sensor), which is used to detect posture changes of the virtual reality device in real time. If the user wears a virtual reality device, when the user's head posture changes, the head posture will be changed. The real-time posture is transmitted to the processor to calculate the gaze point of the user's line of sight in the virtual environment. In related technologies, the virtual interface in the three-dimensional model of the virtual environment is calculated based on the gaze point and is within the user's gaze range (i.e., the virtual field of view). , and displayed on the display screen, giving people an immersive experience as if they were watching in a real environment.

本实施例中,当用户佩戴HMD设备并打开预定的虚拟应用时,HMD设备会运行相应的虚拟场景,该虚拟场景可以是对真实世界的仿真环境,也可以是半仿真半虚构的虚拟场景,还可以是纯虚构的虚拟场景。虚拟场景可以是二维虚拟场景、2.5维虚拟场景或者三维虚拟场景中的任意一种,本公开实施例对虚拟场景的维度不加以限定。例如,虚拟场景可以包括人物、天空、陆地、海洋等,该陆地可以包括沙漠、城市等环境元素,其中,在虚拟场景中还显示对应虚拟应用的操作界面,可以通过手柄设备、裸手手势、虚拟穿戴设备等方式来对操作界面进行交互操作等。In this embodiment, when the user wears the HMD device and opens a predetermined virtual application, the HMD device will run the corresponding virtual scene. The virtual scene can be a simulation environment of the real world, or a semi-simulated and semi-fictional virtual scene. It can also be a purely fictitious virtual scene. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiments of the present disclosure do not limit the dimensions of the virtual scene. For example, the virtual scene may include people, sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The virtual scene also displays an operation interface corresponding to the virtual application, which can be used through handle devices, bare hand gestures, Virtual wearable devices and other methods to interact with the operating interface.

本实施例中,当用户佩戴HMD设备并打开预定的虚拟应用时,可HMD设备会运行相应的虚拟现实场景,并在该虚拟现实场景中显示该虚拟应用的有关虚拟界面。用户可以通过手柄设备、裸手手势等方式来对虚拟界面等等进行交互控制。In this embodiment, when the user wears the HMD device and opens a predetermined virtual application, the HMD device will run the corresponding virtual reality scene and display the relevant virtual interface of the virtual application in the virtual reality scene. Users can interactively control virtual interfaces through handle devices, bare hand gestures, etc.

其中,在一些可能的实施例中,对于虚拟现实场景中的虚拟界面来说,考虑到虚拟现实场景的渲染逻辑,与虚拟现实设备中自带的预设渲染组件的渲染逻辑可能不同,比如,虚拟现实场景是基于Unity引擎渲染的,虚拟现实设备是基于安卓自带的开放图形库英语:Open Graphics Library,OpenGL)渲染得到的,通常虚拟应用对应的实际应用程序的有关功能是基于安卓的预设渲染组件开发的,因此,无法实现基于Unity引擎渲染虚拟界面,因此,为了实现虚拟界面在虚拟现实场景中的正常显示,在本公开的实施例中,复用虚拟现实设备的预设渲染组件进行虚拟界面的渲染。其中,虚拟界面包括但不限于虚拟应用中对应的任意一个功能页面、有关虚拟应用中的视频帧卡片等,具体显示的虚拟界面内容可根据场景需要的不同而不同。Among them, in some possible embodiments, for the virtual interface in the virtual reality scene, considering the rendering logic of the virtual reality scene, it may be different from the rendering logic of the preset rendering component that comes with the virtual reality device, for example, The virtual reality scene is rendered based on the Unity engine, and the virtual reality device is rendered based on the Open Graphics Library (OpenGL) that comes with Android. Usually, the relevant functions of the actual application corresponding to the virtual application are based on Android's preset Assume that the rendering component is developed. Therefore, it is impossible to render the virtual interface based on the Unity engine. Therefore, in order to realize the normal display of the virtual interface in the virtual reality scene, in the embodiment of the present disclosure, the preset rendering component of the virtual reality device is reused. Render the virtual interface. Among them, the virtual interface includes but is not limited to any corresponding functional page in the virtual application, video frame cards in the virtual application, etc. The specific content of the virtual interface displayed may vary according to the needs of the scene.

在本公开的一个实施例中,在检测到虚拟界面的渲染需求时,向服务器请求虚拟界面的界面渲染信息,由虚拟现实设备的预设渲染组件根据该界面渲染信息渲染生成虚拟界面后传送给Unity引擎来进行虚拟界面的显示。In one embodiment of the present disclosure, when a rendering requirement for a virtual interface is detected, interface rendering information of the virtual interface is requested from a server, and a preset rendering component of the virtual reality device renders and generates a virtual interface according to the interface rendering information and then transmits it to the Unity engine for displaying the virtual interface.

在显示虚拟界面时,现有技术中通常在预先规定的距离用户人眼的预设显示距离上显示,本公开提出了一种充分利用虚拟现实空间中的深度信息,以景深立体效果显示虚拟界面的虚拟界面的显示方法。下面参照具体实施例对该方法进行介绍。When displaying a virtual interface, it is usually displayed at a preset display distance from the user's eyes in the prior art. This disclosure proposes a method that fully utilizes the depth information in the virtual reality space to display the virtual interface with a depth-of-field stereoscopic effect. The display method of the virtual interface. The method is introduced below with reference to specific embodiments.

图2为本公开实施例提供的一种虚拟界面的显示方法的流程示意图,该方法可以由虚拟界面的显示装置执行,其中该装置可以采用软件和/或硬件实现,一般可集成在电子设备中。如图2所示,该方法包括:Figure 2 is a schematic flowchart of a virtual interface display method provided by an embodiment of the present disclosure. The method can be executed by a virtual interface display device, where the device can be implemented using software and/or hardware, and can generally be integrated in electronic equipment. . As shown in Figure 2, the method includes:

步骤201,响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的虚拟界面对应的标准参考位置,其中,Step 201: In response to the viewing operation of the virtual interface displayed in the interface display layer, obtain the standard reference position corresponding to the predetermined virtual interface, where,

标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,界面显示图层在虚拟现实空间中的垂直坐标轴方向上平行位于标准显示图层的正后方,由虚拟现实空间的内部指向用户的方向为垂直坐标轴的正方向。The standard reference position is the predetermined position of the standard layer in the virtual reality space. The interface display layer is parallel to the vertical coordinate axis direction in the virtual reality space and is directly behind the standard display layer, pointing from the inside of the virtual reality space. The user's direction is the positive direction of the vertical coordinate axis.

在本公开的一个实施例中,首先确定标准显示图层在虚拟现实空间中的标准参考位置,其中,所述标准参考位置位于虚拟视场范围内。In one embodiment of the present disclosure, the standard reference position of the standard display layer in the virtual reality space is first determined, where the standard reference position is located within the virtual field of view.

在一些可能的实施例中,确定标准显示图层在虚拟现实空间中的标准参考位置,其中,本实施例中的标准显示图层可以理解为在虚拟视场范围内用户可观看到的区域范围内,距离用户人眼距离为预设观看距离的图层,其中,标准显示图层可以理解为虚拟显示屏所在位置,其中,预设观看距离为根据实验数据标定的最适宜人眼观看的距离,比如,可以为1.5米等。In some possible embodiments, the standard reference position of the standard display layer in the virtual reality space is determined, where the standard display layer in this embodiment can be understood as the area visible to the user within the virtual field of view. Within the layer, the distance from the user's eyes is the preset viewing distance. The standard display layer can be understood as the location of the virtual display screen. The preset viewing distance is the most suitable distance for human eyes calibrated based on experimental data. , for example, it can be 1.5 meters, etc.

在一些可能的实施例中,可以在响应于对虚拟应用的开启操作后,认为获取到对虚拟应用的开启操作,进而,确定接收到开启操作时的用户当前视线方向,根据用户当前视线方向确定标准参考位置,即标准参考位置与用户当前视线方向一致。In some possible embodiments, after responding to the opening operation of the virtual application, it is considered that the opening operation of the virtual application is obtained, and then the user's current line of sight direction when the opening operation is received is determined based on the user's current line of sight direction. The standard reference position means that the standard reference position is consistent with the user's current line of sight.

其中,当用户佩戴HMD设备开机时,若是检测到对虚拟应用的开启操作,比如,检测到用户对虚拟现实设备上虚拟应用对应的开启控件的触发操作,则认为获取到对虚拟应用的开启操作。Among them, when the user wears the HMD device and turns it on, if the opening operation of the virtual application is detected, for example, if the user's triggering operation of the opening control corresponding to the virtual application on the virtual reality device is detected, it is considered that the opening operation of the virtual application has been obtained. .

即在本实施例中,在虚拟应用被开启时,首先根据用户当前视线方向确定标准显示图层的标准参考位置,以此时如图3所示,标准显示图层位于用户当前的视线方向上,由此,可以保证在视线方向上的目标空间位置和视线方向的一致。需要说明的是,在虚拟应用被开启后,标准显示图层的标准参考位置不再跟随用户的视线方向一致,即如图4所示,用户在人眼方向移动,则对应的标准显示图层不跟眼运动,用户在不同的角度可以看到虚拟界面的不同方位,从而保证后续虚拟界面显示的空间立体感。That is, in this embodiment, when the virtual application is opened, the standard reference position of the standard display layer is first determined according to the user's current line of sight direction. At this time, as shown in Figure 3, the standard display layer is located in the user's current line of sight direction. , thus ensuring that the target spatial position in the sight direction is consistent with the sight direction. It should be noted that after the virtual application is opened, the standard reference position of the standard display layer no longer follows the direction of the user's line of sight. That is, as shown in Figure 4, if the user moves in the direction of the human eye, the corresponding standard display layer Without following eye movements, users can see different directions of the virtual interface from different angles, thus ensuring the spatial three-dimensionality of subsequent virtual interface displays.

需要说明的是,在不同的应用场景中,根据用户当前视线方向确定标准参考位置的方式不同,示例如下:It should be noted that in different application scenarios, the standard reference position is determined in different ways according to the user's current line of sight direction. Examples are as follows:

在本公开的一个实施例中,确定虚拟现实全景空间的中心点位置,该中心点位置位于虚拟现实空间的中心处,中心点位置和虚拟现实空间的形状有关。在确定虚拟现实全景空间的中心点位置后,获取预设的人眼观看距离,该预设的人眼观看距离是最适宜用户人眼观看的最佳显示距离,比如,可以为1.5米等。In one embodiment of the present disclosure, the center point position of the virtual reality panoramic space is determined, the center point position is located at the center of the virtual reality space, and the center point position is related to the shape of the virtual reality space. After determining the center point position of the virtual reality panoramic space, a preset human eye viewing distance is obtained. The preset human eye viewing distance is the best display distance that is most suitable for the user's human eye viewing, and can be, for example, 1.5 meters.

进一步地,从中心点位置开始,按照用户当前的视线方向延伸到预设的人眼观看距离的位置作为标准参考位置,可以保证标准参考位置与用户视线方向的一致性,提升了用户在开启虚拟应用时的观看体验。Furthermore, starting from the center point position, the position extending from the user's current line of sight to the preset human eye viewing distance is used as the standard reference position, which can ensure the consistency between the standard reference position and the user's line of sight direction, and improve the user's ability to open the virtual viewing experience when applied.

举例而言,如图5所示,虚拟现实空间为“盒状”立方体空间,预设的人眼观看距离为R1,虚拟现实空间的中心点位置为O1,则在确定了开启虚拟应用时的用户当前的视线方向后,直接按照用户当前的视线方向延伸到预设的人眼观看距离的位置作为标准参考位置。For example, as shown in Figure 5, the virtual reality space is a "box-shaped" cubic space, the preset human eye viewing distance is R1, and the center point position of the virtual reality space is O1, then when the virtual application is opened, the After the user's current line of sight direction, the position extending directly from the user's current line of sight direction to the preset human eye viewing distance is used as the standard reference position.

其中,界面显示显示图层在虚拟现实空间中的垂直坐标轴方向上平行位于标准显示图层的正后方,由虚拟现实空间的内部指向用户的方向为垂直坐标轴的正方向,界面显示显示图层的初始位置对应的垂直坐标值小于标准参考位置的标准垂直坐标值。Among them, the interface display layer is located parallel to the standard display layer in the direction of the vertical coordinate axis in the virtual reality space. The direction pointing from the inside of the virtual reality space to the user is the positive direction of the vertical coordinate axis. The interface display diagram The initial position of the layer corresponds to a vertical coordinate value that is smaller than the standard vertical coordinate value of the standard reference position.

即在本公开的一个实施例中,在确定标准显示图层时,并不将虚拟界面直接在标准显示图层上,而是将标准显示图层作为一个窗口,在窗口内部设置一个与标准显示图层具有景深差的界面显示图层,通过该界面显示图层来显示虚拟界面,从而,虚拟界面相对于窗口具有深度差,形成内嵌的景深显示效果。That is, in one embodiment of the present disclosure, when determining the standard display layer, the virtual interface is not placed directly on the standard display layer, but the standard display layer is used as a window, and a window with the standard display is set inside the window. The layer has an interface display layer with a depth of field difference, and the virtual interface is displayed through the interface display layer. Therefore, the virtual interface has a depth difference relative to the window, forming an embedded depth of field display effect.

其中,如图6所示,为了保证虚拟界面位于虚拟视场范围内,可以界面显示图层在虚拟现实空间中的垂直坐标轴方向上平行位于标注显示图层的正后方,即在平行于垂直坐标轴(即Z轴)方向的某个垂直线上,界面显示图层位于标注显示图层的正后方,标准显示图层与界面显示图层的图层中心点均位于同一个与垂直坐标轴平行的垂直线上,标准显示图层与界面显示图层的图层中心点的水平坐标值(即X轴坐标值)和竖直坐标值(即Y轴坐标值)均相同,由此,避免界面显示图层偏离标注显示图层时,导致有一部分虚拟界面脱离用户视场角范围,无法观看到等。Among them, as shown in Figure 6, in order to ensure that the virtual interface is within the virtual field of view, the interface display layer can be located parallel to the vertical coordinate axis direction of the virtual reality space directly behind the annotation display layer, that is, parallel to the vertical coordinate axis On a vertical line in the direction of the coordinate axis (i.e. Z axis), the interface display layer is located directly behind the annotation display layer. The layer center points of the standard display layer and the interface display layer are located on the same vertical coordinate axis. On parallel vertical lines, the horizontal coordinate values (i.e., X-axis coordinate value) and vertical coordinate value (i.e., Y-axis coordinate value) of the layer center points of the standard display layer and the interface display layer are the same, thus avoiding When the interface display layer deviates from the annotation display layer, part of the virtual interface will be out of the user's field of view and cannot be viewed.

即在本实施例中,标准参考位置的标准垂直坐标值大于界面显示图层对应的垂直坐标值,由虚拟现实空间的内部指向用户方向为垂直坐标轴的正方向。That is, in this embodiment, the standard vertical coordinate value of the standard reference position is greater than the corresponding vertical coordinate value of the interface display layer, and the direction from the interior of the virtual reality space to the user is the positive direction of the vertical coordinate axis.

在本公开的一个实施例中,为了进一步方便用户对虚拟界面的观看,标准显示图层可以为透明图层,从而,用户在视觉上只感受到虚拟界面距离的远近,感受不到标准显示图层的显示,其中,该标准显示图层作为透明的“虚拟屏幕”显示出位于其后方的界面显示图层中的虚拟界面的内容。当然,为了满足在一些场景下的显示需求,该标准显示图层的颜色和透明度也可以根据需要调整,使得用户在视觉上感受到在界面显示图层的前方具有一层蒙版,进一步提升虚拟界面显示的景深感。In one embodiment of the present disclosure, in order to further facilitate the user's viewing of the virtual interface, the standard display layer can be a transparent layer. Therefore, the user can only visually feel the distance of the virtual interface and not the standard display image. The display of a layer, in which the standard display layer acts as a transparent "virtual screen" to display the contents of the virtual interface in the interface display layer behind it. Of course, in order to meet the display needs in some scenarios, the color and transparency of the standard display layer can also be adjusted as needed, so that users can visually feel that there is a layer of mask in front of the interface display layer, further improving virtual reality. The depth of field displayed by the interface.

其中,根据标准参考位置确定界面显示图层的初始位置时,可垂直坐标轴的负方向上,确定与标准参考位置的距离为第一预设距离阈值的参考位置为初始位置,其中,第一预设距离阈值可根据场景需要设置,位于初始位置下的界面显示图层与标准显示图层具有Z轴方向的深度差,提供一种在窗口内部嵌入式显示的深度感。When determining the initial position of the interface display layer based on the standard reference position, the reference position whose distance from the standard reference position is the first preset distance threshold can be determined as the initial position in the negative direction of the vertical coordinate axis, where the first The preset distance threshold can be set according to scene needs. The interface display layer in the initial position and the standard display layer have a depth difference in the Z-axis direction, providing a sense of depth embedded in the window.

在本公开的一个实施例中,获取对显示在界面显示图层中的虚拟界面的查看操作,该查看操作可以理解为对虚拟界面的“hover”操作,“hover”操作可通过为对虚拟界面的手势调用实现的,可以是语音调用操作等,或者也可以使通过虚拟操控设备(例如手柄)来实现的等。当查看操作是通过虚拟操控设备实施的时,可以根据虚拟操控设备对应的操控方向,在虚拟现实空间中渲染触发方向指示模型,其中,触发方向指示模型用于指示操控方向在虚拟现实空间中对应的触发方向,触发方向与操控方向实时对应,该操控方向可以通过虚拟操控设备上预先设置的旋转按钮对应的旋转角度控制等,进而,如图7所示,响应于界面显示图层位于触发方向指示模型的当前触发方向上。In one embodiment of the present disclosure, the viewing operation of the virtual interface displayed in the interface display layer is obtained. The viewing operation can be understood as a "hover" operation on the virtual interface, and the "hover" operation can be performed on the virtual interface by The gesture call can be implemented by voice call operation, etc., or it can also be implemented through a virtual control device (such as a handle). When the viewing operation is implemented through a virtual control device, the trigger direction indication model can be rendered in the virtual reality space according to the control direction corresponding to the virtual control device, where the trigger direction indication model is used to indicate that the control direction corresponds in the virtual reality space The trigger direction corresponds to the control direction in real time. The control direction can be controlled by the rotation angle corresponding to the preset rotation button on the virtual control device. Then, as shown in Figure 7, in response to the interface display layer being in the trigger direction Indicates the current firing direction of the model.

需要说明的是,在不同的应用场景中,该触发方向指示模型的形式不同,从而,在虚拟现实空间中直视对应的触发方向的方式不同,在一些可能的实施例中,继续参照图7,该触发方向指示模型,包括射线轨迹模型,其中,射线轨迹模型的起点为虚拟操控设备在虚拟现实空间中对应的空间位置,射线方向用于指示虚拟操控设备的操控方向,当射线的终点位于虚拟界面上时,则获取到对虚拟界面的查看操作。It should be noted that in different application scenarios, the form of the trigger direction indication model is different. Therefore, the way of looking directly at the corresponding trigger direction in the virtual reality space is different. In some possible embodiments, continue to refer to Figure 7 , the trigger direction indication model includes a ray trajectory model, where the starting point of the ray trajectory model is the corresponding spatial position of the virtual control device in the virtual reality space, and the ray direction is used to indicate the control direction of the virtual control device. When the end point of the ray is located When on the virtual interface, the viewing operation of the virtual interface is obtained.

在本公开的一个实施例中,响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的虚拟界面对应的标准参考位置。In one embodiment of the present disclosure, in response to a viewing operation on the virtual interface displayed in the interface display layer, a standard reference position corresponding to the predetermined virtual interface is obtained.

步骤202,根据标准参考位置控制渲染有虚拟界面的界面显示图层,沿着垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,目标参考显示位置对应的垂直坐标值小于等于标准参考位置对应的垂直坐标值。Step 202: Control the rendering of the interface display layer with the virtual interface according to the standard reference position, and translate it along the positive direction of the vertical coordinate axis to the target reference display position for display, where the vertical coordinate value corresponding to the target reference display position is less than or equal to the standard reference The vertical coordinate value corresponding to the position.

在本公开的一个实施例中,在获取虚拟界面对应的标准参考显示位置之后,根据标准参考位置控制渲染有虚拟界面的界面显示图层,沿着垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,目标参考显示位置对应的垂直坐标值小于等于标准参考位置对应的垂直坐标值。即目标参考显示位置对应的垂直坐标值大于界面显示图层初始位置的垂直坐标轴,且小于等于标准参考位置对应的垂直坐标值。也即是说,参照图8,界面显示图层在最多移动到标准垂直坐标位置,虚拟界面在视觉上响应于查看操作由远离用户人眼的方向移动到靠近用户人眼的方向,提供了一种视觉上显示景深变化的效果,充分利用了虚拟现实空间中的深度信息,提升了显示虚拟界面的立体感。In one embodiment of the present disclosure, after obtaining the standard reference display position corresponding to the virtual interface, the interface display layer rendered with the virtual interface is controlled according to the standard reference position and translated along the positive direction of the vertical coordinate axis to the target reference display position. Display, wherein the vertical coordinate value corresponding to the target reference display position is less than or equal to the vertical coordinate value corresponding to the standard reference position. That is, the vertical coordinate value corresponding to the target reference display position is greater than the vertical coordinate axis of the initial position of the interface display layer, and is less than or equal to the vertical coordinate value corresponding to the standard reference position. That is to say, referring to Figure 8, the interface display layer moves to the standard vertical coordinate position at most, and the virtual interface visually moves from the direction away from the user's eyes to the direction close to the user's eyes in response to the viewing operation, providing a This effect visually displays changes in depth of field, making full use of the depth information in the virtual reality space and improving the three-dimensional sense of the virtual interface.

其中,在一些可能的实施例中,可直接将渲染有虚拟界面的界面显示图层移动到标准垂直坐标位置,即控制界面显示图层的图层中心沿着垂直坐标轴正方向移动到标准参考位置对应的垂直坐标值的位置。Among them, in some possible embodiments, the interface display layer with the virtual interface rendered can be directly moved to the standard vertical coordinate position, that is, the layer center of the control interface display layer is moved along the positive direction of the vertical coordinate axis to the standard reference The position of the vertical coordinate value corresponding to the position.

在一些可能的实施例中,控制渲染有虚拟界面的界面显示图层,根据第二预设距离阈值向垂直坐标轴的正方向平移,以使得界面显示图层移动至目标参考显示位置,其中,In some possible embodiments, the interface display layer rendered with the virtual interface is controlled to translate in the positive direction of the vertical coordinate axis according to the second preset distance threshold, so that the interface display layer moves to the target reference display position, where,

第二预设距离阈值小于等于标准参考位置与初始位置之间的距离,该第二预设距离阈值可根据场景需要标定。The second preset distance threshold is less than or equal to the distance between the standard reference position and the initial position, and the second preset distance threshold can be calibrated according to scene requirements.

另外,当显示在界面显示图层的虚拟界面具有深度信息不一致的不同区域时,比如,如图9所示,当虚拟界面包括主展示区域和关联展示区域时,主展示区域用户展示当前展开的功能服务的操作界面,关联展示区域用户展示其他功能服务的功能入口,其中,关联展示区域和主展示区域具有夹角,比如,关联展示区域向靠近用户人眼方向具有折角,在这种场景下,当界面显示图层向垂直轴正方向移动时,若是移动距离较大,比如,界面显示图层移动到标准垂直坐标值处,则主展示区域相对于用户人眼的距离小于关联显示区域距离用户人眼的距离,关联显示区域可能具有突出窗口的显示效果,进一步提升显示的立体感。In addition, when the virtual interface displayed on the interface display layer has different areas with inconsistent depth information, for example, as shown in Figure 9, when the virtual interface includes a main display area and an associated display area, the user in the main display area displays the currently expanded The operation interface of functional services, the associated display area is a functional entrance for users to display other functional services. Among them, the associated display area and the main display area have an angle. For example, the associated display area has an angle closer to the user's eyes. In this scenario , when the interface display layer moves in the positive direction of the vertical axis, if the movement distance is large, for example, the interface display layer moves to the standard vertical coordinate value, the distance of the main display area relative to the user's eyes is less than the distance of the associated display area The distance between the user's eyes and the associated display area may have a display effect of highlighting the window, further enhancing the three-dimensional sense of the display.

其中,需要说明的是,本实施例中的界面显示图层显示在标准显示图层在垂直坐标轴的正后方,而不是前凸显示在标准显示图层在垂直坐标轴的正前方,这是因为,若是界面显示图层显示在标准显示图层在垂直坐标轴的正前方,为了后续营造深度变化的视觉体验,将界面显示图层向后移动时,虚拟界面的部分区域可能位于标准显示图层外,从而具有物理冲突,导致虚拟界面在移动到具有物理冲突的位置时,不再后移,影响虚拟界面中在视觉上显示景深效果。Among them, it should be noted that the interface display layer in this embodiment is displayed on the standard display layer directly behind the vertical coordinate axis, instead of being convexly displayed on the standard display layer directly in front of the vertical coordinate axis. This is Because, if the interface display layer is displayed directly in front of the standard display layer on the vertical coordinate axis, in order to create a visual experience of depth changes later, when the interface display layer is moved backward, part of the virtual interface may be located in the standard display layer. Outside the layer, there is physical conflict, causing the virtual interface to no longer move back when moving to a location with physical conflict, affecting the visual depth of field effect displayed in the virtual interface.

另外,在本公开的一个实施例中,为了进一步提升虚拟界面的立体展示效果,还可以在界面显示图层的后方显示背景图层,其中,背景图层中渲染有根据预设渲染参数渲染的背景信息,其中,背景信息可以为图像信息或者是背光信息等,即根据界面显示图层的初始显示位置确定背景图层的初始参考显示位置,并在背景图层中渲染图层背景,其中,图层背景中可显示图层背光等,以提升图层背景显示的科技感,背景图层在虚拟现实空间中的垂直坐标轴方向上平行位于界面显示图层的正后方,且背景图层伴随界面显示图层的平移而在垂直坐标轴的正方向平移,背景图层与界面显示图层的图层距离为第三预设距离阈值,即如图10所示,背景图层和界面显示图层的相对方位和距离是固定的,当界面显示图层移动时,背景图层跟随移动,在视觉上用户可以感受到虚拟界面后面具有图层背景,尤其是当用户在视线方向变化时,可以进一步从其他观看角度清晰的感受到背景图层,提升了视觉观看的立体感。背景图层与界面显示图层的图层距离为第三预设距离阈值。In addition, in an embodiment of the present disclosure, in order to further improve the three-dimensional display effect of the virtual interface, a background layer can also be displayed behind the interface display layer, wherein the background layer is rendered with a layer rendered according to the preset rendering parameters. Background information, where the background information can be image information or backlight information, etc., that is, the initial reference display position of the background layer is determined according to the initial display position of the interface display layer, and the layer background is rendered in the background layer, where, The layer background can display layer backlight, etc., to enhance the technological sense of the layer background display. The background layer is located parallel to the vertical coordinate axis direction of the virtual reality space directly behind the interface display layer, and the background layer is accompanied by The interface display layer is translated in the positive direction of the vertical coordinate axis. The layer distance between the background layer and the interface display layer is the third preset distance threshold, that is, as shown in Figure 10, the background layer and the interface display layer The relative orientation and distance of the layers are fixed. When the interface display layer moves, the background layer moves accordingly. Visually, the user can feel that there is a layer background behind the virtual interface, especially when the user's sight direction changes. The background layer can be clearly felt from other viewing angles, improving the three-dimensional sense of visual viewing. The layer distance between the background layer and the interface display layer is the third preset distance threshold.

综上,本公开实施例的虚拟界面的显示方法,响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的虚拟界面对应的标准参考位置,其中,标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,界面显示图层在虚拟现实空间中的垂直坐标轴方向上平行位于标准显示图层的正后方,由虚拟现实空间的内部指向用户的方向为垂直坐标轴的正方向,根据标准参考位置控制渲染有虚拟界面的界面显示图层,沿着垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,目标参考显示位置对应的垂直坐标值小于等于标准参考位置对应的垂直坐标值。在本公开的实施例中,设置与标准显示图层具有景深关系的界面显示图层来显示虚拟界面,在实现虚拟界面渲染显示的基础上,营造虚拟界面显示的景深效果,在显示虚拟界面时控制虚拟界面的向垂直轴前运动,提升了虚拟界面的显示立体感。In summary, the display method of the virtual interface according to the embodiment of the present disclosure obtains the standard reference position corresponding to the predetermined virtual interface in response to the viewing operation of the virtual interface displayed in the interface display layer, where the standard reference position is the predetermined The determined position of the standard layer in the virtual reality space. The interface display layer is parallel to the vertical coordinate axis in the virtual reality space and directly behind the standard display layer. The direction from the inside of the virtual reality space to the user is vertical. The positive direction of the coordinate axis controls the rendering of the interface display layer with the virtual interface according to the standard reference position. It is translated along the positive direction of the vertical coordinate axis to the target reference display position for display, where the vertical coordinate value corresponding to the target reference display position is less than Equal to the vertical coordinate value corresponding to the standard reference position. In the embodiment of the present disclosure, an interface display layer with a depth of field relationship with the standard display layer is set to display the virtual interface. On the basis of realizing the virtual interface rendering display, the depth of field effect of the virtual interface display is created. When displaying the virtual interface Controlling the forward movement of the virtual interface toward the vertical axis improves the three-dimensional display of the virtual interface.

为了实现上述实施例,本公开还提出了一种虚拟界面的显示装置。In order to implement the above embodiments, the present disclosure also proposes a display device for a virtual interface.

图11为本公开实施例提供的一种虚拟界面的显示装置的结构示意图,该装置可由软件和/或硬件实现,一般可集成在电子设备中进行虚拟界面的显示。如图11所示,该装置包括:获取模块1110和显示处理模块1120,其中,FIG. 11 is a schematic structural diagram of a virtual interface display device provided by an embodiment of the present disclosure. The device can be implemented by software and/or hardware, and can generally be integrated in an electronic device to display a virtual interface. As shown in Figure 11, the device includes: an acquisition module 1110 and a display processing module 1120, wherein,

获取模块1110,用于响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的虚拟界面对应的标准参考位置,其中,The acquisition module 1110 is configured to acquire the standard reference position corresponding to the predetermined virtual interface in response to the viewing operation of the virtual interface displayed in the interface display layer, wherein,

标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,界面显示图层在虚拟现实空间中的垂直坐标轴方向上平行位于标准显示图层的正后方,由虚拟现实空间的内部指向用户的方向为垂直坐标轴的正方向;The standard reference position is the predetermined position of the standard layer in the virtual reality space. The interface display layer is parallel to the vertical coordinate axis direction in the virtual reality space and is directly behind the standard display layer, pointing from the inside of the virtual reality space. The user's direction is the positive direction of the vertical coordinate axis;

显示处理模块1120,用于根据标准参考位置控制渲染有虚拟界面的界面显示图层,沿着垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,目标参考显示位置对应的垂直坐标值小于等于标准参考位置对应的垂直坐标值。The display processing module 1120 is used to control the interface display layer rendered with the virtual interface according to the standard reference position, and translate it along the positive direction of the vertical coordinate axis to the target reference display position for display, where the vertical coordinate value corresponding to the target reference display position Less than or equal to the vertical coordinate value corresponding to the standard reference position.

本公开实施例所提供的虚拟界面的显示装置可执行本公开任意实施例所提供的虚拟界面的显示方法,具备执行方法相应的功能模块和有益效果,其实现原理类似,在此不再赘述。The virtual interface display device provided by the embodiments of the present disclosure can execute the virtual interface display method provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method. The implementation principles are similar and will not be described again here.

为了实现上述实施例,本公开还提出一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述实施例中的虚拟界面的显示方法。In order to implement the above embodiments, the present disclosure also proposes a computer program product, which includes a computer program/instructions. When the computer program/instructions are executed by a processor, the virtual interface display method in the above embodiments is implemented.

图12为本公开实施例提供的一种电子设备的结构示意图。Figure 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

下面具体参考图12,其示出了适于用来实现本公开实施例中的电子设备1200的结构示意图。本公开实施例中的电子设备1200可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图12示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring specifically to FIG. 12 below, a schematic structural diagram of an electronic device 1200 suitable for implementing an embodiment of the present disclosure is shown. The electronic device 1200 in the embodiment of the present disclosure may include, but is not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals ( Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 12 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

如图12所示,电子设备1200可以包括处理器(例如中央处理器、图形处理器等)1201,其可以根据存储在只读存储器(ROM)1202中的程序或者从存储器1208加载到随机访问存储器(RAM)1203中的程序而执行各种适当的动作和处理。在RAM 1203中,还存储有电子设备1200操作所需的各种程序和数据。处理器1201、ROM 1202以及RAM 1203通过总线1204彼此相连。输入/输出(I/O)接口1205也连接至总线1204。As shown in FIG. 12 , electronic device 1200 may include a processor (eg, central processing unit, graphics processor, etc.) 1201 that may be loaded into random access memory according to a program stored in read-only memory (ROM) 1202 or from memory 1208 (RAM) 1203 to perform various appropriate actions and processes. In the RAM 1203, various programs and data required for the operation of the electronic device 1200 are also stored. The processor 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204. An input/output (I/O) interface 1205 is also connected to bus 1204.

通常,以下装置可以连接至I/O接口1205:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置1206;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置1207;包括例如磁带、硬盘等的存储器1208;以及通信装置1209。通信装置1209可以允许电子设备1200与其他设备进行无线或有线通信以交换数据。虽然图12示出了具有各种装置的电子设备1200,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices may be connected to the I/O interface 1205: input devices 1206 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 1207 such as a computer; a memory 1208 including a magnetic tape, a hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic device 1200 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 12 illustrates electronic device 1200 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.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置1209从网络上被下载和安装,或者从存储器1208被安装,或者从ROM 1202被安装。在该计算机程序被处理器1201执行时,执行本公开实施例的虚拟界面的显示方法中限定的上述功能。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 1209, or from memory 1208, or from ROM 1202. When the computer program is executed by the processor 1201, the above-mentioned functions defined in the display method of the virtual interface of the embodiment of the present disclosure are performed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(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 viewing operation of the virtual interface displayed in the interface display layer, obtain the standard reference position corresponding to the predetermined virtual interface, where the standard reference position is the position of the predetermined standard layer in the virtual reality space, the interface The display layer is parallel to the standard display layer in the direction of the vertical coordinate axis in the virtual reality space. The direction pointing from the inside of the virtual reality space to the user is the positive direction of the vertical coordinate axis. The rendering is controlled according to the standard reference position. The interface display layer of the interface is translated along the positive direction of the vertical coordinate axis to the target reference display position for display, where the vertical coordinate value corresponding to the target reference display position is less than or equal to the vertical coordinate value corresponding to the standard reference position. In the embodiment of the present disclosure, an interface display layer with a depth of field relationship with the standard display layer is set to display the virtual interface. On the basis of realizing the virtual interface rendering display, the depth of field effect of the virtual interface display is created. When displaying the virtual interface Controlling the forward movement of the virtual interface toward the vertical axis improves the three-dimensional display of the virtual interface.

电子设备可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The electronic device may have computer program code for performing operations of the present disclosure written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, or a combination thereof. , also 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. Among them, the name of a unit does not constitute a limitation on the unit itself under certain circumstances.

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(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.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。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 (12)

1.一种虚拟界面的显示方法,其特征在于,包括以下步骤:1. A method for displaying a virtual interface, characterized in that it includes the following steps: 响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的所述虚拟界面对应的标准参考位置,其中,In response to a viewing operation on a virtual interface displayed in an interface display layer, a predetermined standard reference position corresponding to the virtual interface is obtained, wherein: 所述标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,所述界面显示图层在所述虚拟现实空间中的垂直坐标轴方向上平行位于所述标准显示图层的正后方,由所述虚拟现实空间的内部指向用户的方向为所述垂直坐标轴的正方向;The standard reference position is the predetermined position of the standard layer in the virtual reality space, and the interface display layer is located parallel to and directly behind the standard display layer in the direction of the vertical coordinate axis in the virtual reality space. , the direction pointing from the inside of the virtual reality space to the user is the positive direction of the vertical coordinate axis; 根据所述标准参考位置控制渲染有所述虚拟界面的界面显示图层,沿着所述垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,所述目标参考显示位置对应的垂直坐标值小于等于所述标准参考位置对应的垂直坐标值。The interface display layer rendered with the virtual interface is controlled according to the standard reference position, and is translated along the positive direction of the vertical coordinate axis to a target reference display position for display, where the vertical coordinate corresponding to the target reference display position The value is less than or equal to the vertical coordinate value corresponding to the standard reference position. 2.如权利要求1所述的方法,其特征在于,在所述获取预先确定的所述虚拟界面对应的标准参考位置之前,包括:2. The method according to claim 1, characterized in that, before obtaining the predetermined standard reference position corresponding to the virtual interface, it includes: 确定标准显示图层在虚拟现实空间中的标准参考位置,其中,所述标准参考位置位于虚拟视场范围内。Determine the standard reference position of the standard display layer in the virtual reality space, where the standard reference position is located within the virtual field of view. 3.如权利要求2所述的方法,其特征在于,所述确定标准显示图层在虚拟现实空间中的标准参考位置,包括:3. The method of claim 2, wherein determining the standard reference position of the standard display layer in the virtual reality space includes: 响应于对虚拟应用的开启操作;In response to the opening operation of the virtual application; 确定接收到所述开启操作时的用户当前视线方向,根据所述用户当前视线方向确定所述标准参考位置。Determine the user's current line of sight direction when the opening operation is received, and determine the standard reference position based on the user's current line of sight direction. 4.如权利要求3所述的方法,其特征在于,所述根据所述用户当前视线方向确定所述标准参考位置,包括:4. The method of claim 3, wherein determining the standard reference position according to the user's current sight direction includes: 确定所述虚拟现实空间的中心点位置,以及获取预设的人眼观看距离;Determine the center point position of the virtual reality space and obtain the preset human eye viewing distance; 从所述中心点位置开始,按照所述用户当前视线方向延伸到所述预设的人眼观看距离的位置作为所述标准参考位置。Starting from the center point position, a position extending from the user's current line of sight direction to the preset human eye viewing distance is used as the standard reference position. 5.如权利要求1所述的方法,其特征在于,在所述响应于对显示在界面显示图层中的虚拟界面的查看操作之前,包括:5. The method of claim 1, wherein before responding to the viewing operation of the virtual interface displayed in the interface display layer, the method includes: 在所述垂直坐标轴的负方向上,确定与所述标准参考位置的距离为第一预设距离阈值的位置为所述界面显示图层所在的初始位置;In the negative direction of the vertical coordinate axis, the position whose distance from the standard reference position is determined to be the first preset distance threshold is the initial position where the interface display layer is located; 在所述界面显示图层所在的初始位置渲染所述虚拟界面。The virtual interface is rendered at the initial position where the interface display layer is located. 6.如权利要求1所述的方法,其特征在于,所述响应于对显示在界面显示图层中的虚拟界面的查看操作,包括:6. The method of claim 1, wherein the response to the viewing operation of the virtual interface displayed in the interface display layer includes: 根据虚拟操控设备对应的操控方向,在所述虚拟现实空间中渲染触发方向指示模型,其中,所述触发方向指示模型用于指示所述操控方向在所述虚拟现实空间中对应的触发方向,所述触发方向与所述操控方向实时对应;According to the control direction corresponding to the virtual control device, a trigger direction indication model is rendered in the virtual reality space, wherein the trigger direction indication model is used to indicate the trigger direction corresponding to the control direction in the virtual reality space, so The triggering direction corresponds to the control direction in real time; 响应于所述界面显示图层位于所述触发方向指示模型的当前触发方向上。In response to the interface display layer being located in the current triggering direction of the triggering direction indicating model. 7.如权利要求1所述的方法,其特征在于,所述根据所述标准参考位置控制渲染有所述虚拟界面的界面显示图层,沿着所述垂直坐标轴的正方向平移至目标参考显示位置进行显示,包括:7. The method according to claim 1, wherein the step of controlling the interface display layer having the virtual interface rendered thereon according to the standard reference position to be translated to the target reference display position for display along the positive direction of the vertical coordinate axis comprises: 控制渲染有所述虚拟界面的界面显示图层,根据第二预设距离阈值向所述垂直坐标轴的正方向平移,以使得所述界面显示图层移动至所述目标参考显示位置,其中,Control the interface display layer rendered with the virtual interface to translate in the positive direction of the vertical coordinate axis according to a second preset distance threshold, so that the interface display layer moves to the target reference display position, wherein, 所述第二预设距离阈值小于等于所述标准参考位置与所述界面显示图层的初始位置之间的距离。The second preset distance threshold is less than or equal to the distance between the standard reference position and the initial position of the interface display layer. 8.如权利要求1-7任一所述的方法,其特征在于,8. The method according to any one of claims 1-7, characterized in that, 在所述虚拟现实空间中还包括与所述界面显示图层对应的背景图层,其中,所述背景图层中渲染有根据预设渲染参数渲染的背景信息,The virtual reality space also includes a background layer corresponding to the interface display layer, wherein the background layer is rendered with background information rendered according to preset rendering parameters, 所述背景图层在所述虚拟现实空间中的垂直坐标轴方向上平行位于所述界面显示图层的正后方,且所述背景图层伴随所述界面显示图层的平移在所述垂直坐标轴的正方向平移,所述背景图层与所述界面显示图层的图层距离为第三预设距离阈值。The background layer is located parallel to and directly behind the interface display layer in the direction of the vertical coordinate axis in the virtual reality space, and the background layer is positioned in the vertical coordinate along with the translation of the interface display layer. The positive direction of the axis translates, and the layer distance between the background layer and the interface display layer is the third preset distance threshold. 9.如权利要求1-7任一所述的方法,其特征在于,9. The method according to any one of claims 1-7, characterized in that, 所述标准显示图层为透明图层。The standard display layer is a transparent layer. 10.一种虚拟界面的显示装置,其特征在于,包括:10. A virtual interface display device, characterized in that it includes: 获取模块,用于响应于对显示在界面显示图层中的虚拟界面的查看操作,获取预先确定的所述虚拟界面对应的标准参考位置,其中,An acquisition module configured to acquire a predetermined standard reference position corresponding to the virtual interface in response to a viewing operation of the virtual interface displayed in the interface display layer, wherein, 所述标准参考位置为预先确定的标准图层在虚拟现实空间中的位置,所述界面显示图层在所述虚拟现实空间中的垂直坐标轴方向上平行位于所述标准显示图层的正后方,由所述虚拟现实空间的内部指向用户的方向为所述垂直坐标轴的正方向;The standard reference position is the predetermined position of the standard layer in the virtual reality space, and the interface display layer is located parallel to and directly behind the standard display layer in the direction of the vertical coordinate axis in the virtual reality space. , the direction pointing from the inside of the virtual reality space to the user is the positive direction of the vertical coordinate axis; 显示处理模块,用于根据所述标准参考位置控制渲染有所述虚拟界面的界面显示图层,沿着所述垂直坐标轴的正方向平移至目标参考显示位置进行显示,其中,所述目标参考显示位置对应的垂直坐标值小于等于所述标准参考位置对应的垂直坐标值。A display processing module, configured to control the interface display layer rendered with the virtual interface according to the standard reference position, and translate it along the positive direction of the vertical coordinate axis to a target reference display position for display, wherein the target reference The vertical coordinate value corresponding to the display position is less than or equal to the vertical coordinate value corresponding to the standard reference position. 11.一种电子设备,其特征在于,所述电子设备包括:11. An electronic device, characterized in that the electronic device includes: 处理器;processor; 用于存储所述处理器可执行指令的存储器;memory for storing instructions executable by the processor; 所述处理器,用于从所述存储器中读取所述可执行指令,并执行所述可执行指令以实现上述权利要求1-9中任一所述的虚拟界面的显示方法。The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the virtual interface display method described in any one of claims 1-9. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序用于执行上述权利要求1-9中任一所述的虚拟界面的显示方法。12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program is used to execute the virtual interface display method according to any one of claims 1-9. .
CN202211138585.4A 2022-09-19 2022-09-19 Virtual interface display method, device, equipment and medium Pending CN117765207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211138585.4A CN117765207A (en) 2022-09-19 2022-09-19 Virtual interface display method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211138585.4A CN117765207A (en) 2022-09-19 2022-09-19 Virtual interface display method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117765207A true CN117765207A (en) 2024-03-26

Family

ID=90316821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211138585.4A Pending CN117765207A (en) 2022-09-19 2022-09-19 Virtual interface display method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117765207A (en)

Similar Documents

Publication Publication Date Title
CN110830786B (en) Detection and display of mixed 2D/3D content
US10962780B2 (en) Remote rendering for virtual images
US11099634B2 (en) Manipulation of virtual objects using a tracked physical object
US20230405475A1 (en) Shooting method, apparatus, device and medium based on virtual reality space
US12148090B2 (en) Method and device for visualizing sensory perception
US20240028130A1 (en) Object movement control method, apparatus, and device
CN117132741A (en) Control method and device based on mixed reality, electronic equipment and storage medium
CN115981544A (en) Interaction method, device, electronic device and storage medium based on extended reality
CN117765207A (en) Virtual interface display method, device, equipment and medium
US20240161390A1 (en) Method, apparatus, electronic device and storage medium for control based on extended reality
CN117641025A (en) Model display method, device, equipment and medium based on virtual reality space
WO2024131405A1 (en) Object movement control method and apparatus, device, and medium
US20240078734A1 (en) Information interaction method and apparatus, electronic device and storage medium
CN117641026A (en) Model display method, device, equipment and medium based on virtual reality space
US20240403080A1 (en) Devices, methods, and graphical user interfaces for displaying views of physical locations
EP4509962A1 (en) Method, apparatus, electronic device, and storage for medium extended reality-based interaction control
CN117632063A (en) Display processing methods, devices, equipment and media based on virtual reality space
CN117572994A (en) Virtual object display processing method, device, equipment and medium
CN117640919A (en) Picture display method, device, equipment and medium based on virtual reality space
CN116193246A (en) Prompt method and device for shooting video, electronic equipment and storage medium
CN117631810A (en) Operation processing method, device, equipment and medium based on virtual reality space
CN117632391A (en) Application control methods, devices, equipment and media based on virtual reality space
CN119002683A (en) Function control method, device, equipment and medium of virtual control equipment
CN117745982A (en) Method, device, system, electronic equipment and storage medium for recording video
CN118343924A (en) Virtual object motion processing method, device, equipment and 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