CN118485754A - Display method, device, electronic device and medium for objects to be displayed - Google Patents
Display method, device, electronic device and medium for objects to be displayed Download PDFInfo
- Publication number
- CN118485754A CN118485754A CN202310324193.5A CN202310324193A CN118485754A CN 118485754 A CN118485754 A CN 118485754A CN 202310324193 A CN202310324193 A CN 202310324193A CN 118485754 A CN118485754 A CN 118485754A
- Authority
- CN
- China
- Prior art keywords
- displayed
- map
- posture
- target
- objects
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开提供了一种用于待显示对象的显示方法、装置、电子设备和介质。具体实现方案为:确定属于目标显示方式的至少一个目标待显示对象;对各目标待显示对象按照预设属性进行渲染,得到各目标待显示对象对应的至少一个第一贴图;其中,预设属性包括在终端设备的显示区域中的位置、角度、尺寸、缩放中的至少一项;基于终端设备的第一位姿和除目标待显示对象之外的其他待显示对象分别对应的属性信息,对其他待显示对象进行渲染,得到其他待显示对象对应的至少一个第二贴图;其中,属性信息包括其他待显示对象在基准坐标系下的位置、角度、缩放;基于至少一个第一贴图、至少一个第二贴图、终端设备的第二位姿,确定待显示画面。
The present disclosure provides a display method, device, electronic device and medium for objects to be displayed. The specific implementation scheme is: determine at least one target object to be displayed that belongs to the target display mode; render each target object to be displayed according to the preset attributes to obtain at least one first map corresponding to each target object to be displayed; wherein the preset attributes include at least one item of the position, angle, size and scale in the display area of the terminal device; based on the first posture of the terminal device and the attribute information corresponding to other objects to be displayed except the target object to be displayed, render other objects to be displayed to obtain at least one second map corresponding to other objects to be displayed; wherein the attribute information includes the position, angle and scale of other objects to be displayed in the reference coordinate system; based on at least one first map, at least one second map and the second posture of the terminal device, determine the screen to be displayed.
Description
技术领域Technical Field
本公开涉及虚拟现实或增强现实技术领域,尤其是一种用于待显示对象的显示方法、装置、电子设备和介质。The present disclosure relates to the technical field of virtual reality or augmented reality, and in particular to a display method, device, electronic device and medium for an object to be displayed.
背景技术Background Art
在虚拟现实(virtual reality,简称:VR)应用工作过程中,时间扭曲(Time Warp)是一项减少运动和图像之间延迟的技术。通常是对虚拟世界中的物体进行第一次渲染后,根据最新的位姿对第一次渲染获得的贴图进行第二次渲染获得待显示画面。In the process of virtual reality (VR) applications, time warp is a technology that reduces the delay between motion and images. Usually, after the first rendering of the objects in the virtual world, the texture obtained by the first rendering is rendered a second time according to the latest posture to obtain the image to be displayed.
发明内容Summary of the invention
有鉴于此,本公开的目的在于提供一种用于待显示对象的显示方法、装置、电子设备和介质,通过将需要跟随视角显示的目标待显示对象与其他待显示对象分别渲染,对目标待显示对象按照其在终端设备的显示区域中的预设属性进行渲染,对其他待显示对象,按照终端设备的位姿和其他待显示对象在基准坐标系下的属性信息进行渲染,使得目标待显示对象能够更加稳定地跟随用户视角显示,从而有效减少画面的抖动。In view of this, the purpose of the present disclosure is to provide a display method, device, electronic device and medium for objects to be displayed, by rendering the target object to be displayed that needs to follow the viewing angle separately from other objects to be displayed, rendering the target object to be displayed according to its preset attributes in the display area of the terminal device, and rendering other objects to be displayed according to the posture of the terminal device and the attribute information of other objects to be displayed in the reference coordinate system, so that the target object to be displayed can be displayed more stably following the user's viewing angle, thereby effectively reducing the jitter of the picture.
第一方面,本公开实施例提供了一种用于待显示对象的显示方法,包括:确定属于目标显示方式的至少一个目标待显示对象;对各目标待显示对象按照预设属性进行渲染,得到各目标待显示对象对应的至少一个第一贴图;其中,预设属性包括在终端设备的显示区域中的位置、角度、尺寸、缩放中的至少一项;基于终端设备的第一位姿和除目标待显示对象之外的其他待显示对象分别对应的属性信息,对其他待显示对象进行渲染,得到其他待显示对象对应的至少一个第二贴图;其中,属性信息包括其他待显示对象在基准坐标系下的位置、角度、缩放;基于至少一个第一贴图、至少一个第二贴图、终端设备的第二位姿,确定待显示画面;其中,第二位姿的获得时刻晚于第一位姿的获得时刻。In a first aspect, an embodiment of the present disclosure provides a display method for objects to be displayed, comprising: determining at least one target object to be displayed that belongs to a target display mode; rendering each target object to be displayed according to preset attributes to obtain at least one first map corresponding to each target object to be displayed; wherein the preset attributes include at least one item of position, angle, size, and scale in the display area of a terminal device; based on a first posture of the terminal device and attribute information corresponding to other objects to be displayed except the target object to be displayed, rendering other objects to be displayed to obtain at least one second map corresponding to other objects to be displayed; wherein the attribute information includes the position, angle, and scale of other objects to be displayed in a reference coordinate system; based on at least one first map, at least one second map, and a second posture of the terminal device, determining a picture to be displayed; wherein the second posture is obtained later than the first posture.
第二方面,本公开实施例提供了一种用于待显示对象的显示装置,包括:第一处理模块,用于确定属于目标显示方式的至少一个目标待显示对象;第二处理模块,用于对各目标待显示对象按照预设属性进行渲染,得到各目标待显示对象对应的至少一个第一贴图;其中,预设属性包括在终端设备的显示区域中的位置、角度、尺寸、缩放中的至少一项;第三处理模块,用于基于终端设备的第一位姿和除目标待显示对象之外的其他待显示对象分别对应的属性信息,对其他待显示对象进行渲染,得到其他待显示对象对应的至少一个第二贴图;其中,属性信息包括其他待显示对象在基准坐标系下的位置、角度、缩放;第四处理模块,用于基于至少一个第一贴图、至少一个第二贴图、终端设备的第二位姿,确定待显示画面;其中,第二位姿的获得时刻晚于第一位姿的获得时刻。In a second aspect, an embodiment of the present disclosure provides a display device for objects to be displayed, comprising: a first processing module, used to determine at least one target object to be displayed that belongs to a target display mode; a second processing module, used to render each target object to be displayed according to preset attributes, and obtain at least one first map corresponding to each target object to be displayed; wherein the preset attributes include at least one item of position, angle, size, and scale in the display area of the terminal device; a third processing module, used to render other objects to be displayed based on the first posture of the terminal device and the attribute information corresponding to other objects to be displayed except the target object to be displayed, and obtain at least one second map corresponding to other objects to be displayed; wherein the attribute information includes the position, angle, and scale of other objects to be displayed in the reference coordinate system; a fourth processing module, used to determine the picture to be displayed based on at least one first map, at least one second map, and the second posture of the terminal device; wherein the second posture is obtained later than the first posture.
第三方面,本公开实施例提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序用于执行本公开上述任一实施例提供的用于待显示对象的显示方法。In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the display method for an object to be displayed provided by any of the above embodiments of the present disclosure.
第四方面,本公开实施例提供了一种电子设备,该电子设备包括:处理器;用于存储处理器可执行指令的存储器;处理器,用于从存储器中读取可执行指令,并执行该指令以实现本公开上述任一实施例提供的用于待显示对象的显示方法。In a fourth aspect, an embodiment of the present disclosure provides an electronic device, which includes: a processor; a memory for storing processor executable instructions; a processor, configured to read executable instructions from the memory and execute the instructions to implement a display method for an object to be displayed provided in any of the above embodiments of the present disclosure.
第五方面,本公开实施例提供了一种计算机程序产品,计算机程序产品包括计算机程序指令,计算机程序指令在被处理器运行时实现本公开上述任一实施例提供的用于待显示对象的显示方法。In a fifth aspect, an embodiment of the present disclosure provides a computer program product, the computer program product includes computer program instructions, and when the computer program instructions are executed by a processor, they implement the display method for an object to be displayed provided by any of the above embodiments of the present disclosure.
下面通过附图和实施例,对本公开的技术方案做进一步的详细描述。The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过结合附图对本公开实施例进行更详细的描述,本公开的上述以及其他目的、特征和优势将变得更加明显。附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开实施例一起用于解释本公开,并不构成对本公开的限制。在附图中,相同的参考标号通常代表相同部件或步骤。The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
图1是可以应用于本公开的用于待显示对象的显示方法或装置的实施例的示例性系统架构;FIG. 1 is an exemplary system architecture of an embodiment of a method or apparatus for displaying an object to be displayed that can be applied to the present disclosure;
图2是本公开一示例性实施例提供的用于待显示对象的显示方法的流程示意图;FIG2 is a schematic flow chart of a method for displaying an object to be displayed provided by an exemplary embodiment of the present disclosure;
图3是本公开另一示例性实施例提供的用于待显示对象的显示方法的流程示意图;FIG3 is a schematic flow chart of a method for displaying an object to be displayed provided by another exemplary embodiment of the present disclosure;
图4是本公开一示例性实施例提供的步骤50的流程示意图;FIG4 is a flow chart of step 50 provided by an exemplary embodiment of the present disclosure;
图5是本公开一示例性实施例提供的步骤520的流程示意图;FIG5 is a flow chart of step 520 provided by an exemplary embodiment of the present disclosure;
图6是本公开一示例性实施例提供的用于待显示对象的显示装置的结构示意图;FIG6 is a schematic structural diagram of a display device for displaying an object provided by an exemplary embodiment of the present disclosure;
图7是本公开另一示例性实施例提供的用于待显示对象的显示装置的结构示意图;FIG7 is a schematic structural diagram of a display device for displaying an object provided by another exemplary embodiment of the present disclosure;
图8是本公开电子设备一个应用实施例的结构示意图。FIG. 8 is a schematic diagram of the structure of an application embodiment of the electronic device disclosed herein.
具体实施方式DETAILED DESCRIPTION
下面,将参考附图详细地描述根据本公开的示例实施例。显然,所描述的实施例仅仅是本公开的一部分实施例,而不是本公开的全部实施例,应理解,本公开不受这里描述的示例实施例的限制。Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
在本公开的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本公开的简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本公开的限制。In the description of the present disclosure, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only simplified descriptions for the convenience of describing the present disclosure, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present disclosure.
应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
在本公开的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本公开中的具体含义。In the description of the present disclosure, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
本领域技术人员可以理解,本公开实施例中的“第一”、“第二”等术语仅用于区别不同步骤、设备或模块等,既不代表任何特定技术含义,也不表示它们之间的必然逻辑顺序。Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
还应理解,在本公开实施例中,“多个”可以指两个或两个以上,“至少一个”可以指一个、两个或两个以上。It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
还应理解,对于本公开实施例中提及的任一部件、数据或结构,在没有明确限定或者在前后文给出相反启示的情况下,一般可以理解为一个或多个。It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
另外,本公开中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本公开中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
还应理解,本公开对各个实施例的描述着重强调各个实施例之间的不同之处,其相同或相似之处可以相互参考,为了简洁,不再一一赘述。It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
本公开实施例可以应用于头戴显示设备、终端设备、服务器等电子设备,其可与众多其它通用或专用计算系统环境或配置一起操作。头戴显示设备、终端设备、服务器等电子设备可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。通常,程序模块可以包括例程、程序、目标程序、组件、逻辑、数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统/服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或远程计算系统存储介质上。The embodiments of the present disclosure can be applied to electronic devices such as head-mounted display devices, terminal devices, servers, etc., which can operate with many other general or special computing system environments or configurations. Electronic devices such as head-mounted display devices, terminal devices, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Generally, program modules can include routines, programs, target programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. The computer system/server can be implemented in a distributed cloud computing environment, in which tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on a local or remote computing system storage medium including a storage device.
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
图1是可以应用于本公开的用于待显示对象的显示方法或装置的实施例的示例性系统架构。该系统结构可以包括头戴显示设备1、网络2和服务器3。网络2可以为头戴显示设备1和服务器3之间提供通信链路的介质。网络2可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。FIG1 is an exemplary system architecture of an embodiment of a method or apparatus for displaying an object to be displayed that can be applied to the present disclosure. The system architecture may include a head mounted display device 1, a network 2, and a server 3. The network 2 may be a medium for providing a communication link between the head mounted display device 1 and the server 3. The network 2 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
上述头戴显示设备1可以是具有图像显示功能的电子设备,包括但不限于AR(Augmented Reality,增强现实)智能眼镜、VR(Virtual Reality,虚拟现实)智能眼镜等等。头戴显示设备1可以为一体机,一体机式的头戴显示设备中集成有计算单元的功能,计算单元可以为头戴显示设备提供处理能力,头戴显示设备安装的各种客户端应用实际也是安装到计算单元中。或者,头戴显示设备还可以为分体式设备,分体式头戴显示设备包括头戴式显示器和与头戴式显示器分体设置的计算单元,头戴式显示器的显示屏用于显示计算单元处理后的图像。分体式头戴显示设备中的计算单元可以是终端设备,终端设备可以为手机、手柄、适配器、PC、平板、车机等。这里,为了方便表示,对于执行主体为头戴显示设备的情况,本文后续全部以一体机式的头戴显示设备作为动作执行主体来对本公开的方案进行介绍,并且使用头戴显示设备1在图中进行表示。本领域技术人员应该理解,对于分体式头戴显示设备,执行主体为计算单元。The head-mounted display device 1 may be an electronic device with an image display function, including but not limited to AR (Augmented Reality) smart glasses, VR (Virtual Reality) smart glasses, and the like. The head-mounted display device 1 may be an all-in-one device, in which the function of a computing unit is integrated, and the computing unit may provide processing capabilities for the head-mounted display device, and various client applications installed on the head-mounted display device are actually installed in the computing unit. Alternatively, the head-mounted display device may also be a split device, in which the split head-mounted display device includes a head-mounted display and a computing unit that is separately arranged from the head-mounted display, and the display screen of the head-mounted display is used to display the image processed by the computing unit. The computing unit in the split head-mounted display device may be a terminal device, and the terminal device may be a mobile phone, a handle, an adapter, a PC, a tablet, a car computer, and the like. Here, for the convenience of representation, in the case where the execution subject is a head-mounted display device, the following text will introduce the scheme of the present disclosure using the all-in-one head-mounted display device as the action execution subject, and the head-mounted display device 1 is used to represent it in the figure. Those skilled in the art should understand that, for a split-type head-mounted display device, the execution entity is the computing unit.
头戴显示设备1可以提供各种服务,例如确定属于目标显示方式的至少一个目标待显示对象,对各目标待显示对象按照其在终端设备的显示区域中的预设属性进行渲染,得到各目标待显示对象对应的至少一个第一贴图;对除目标待显示对象之外的其他待显示对象,按照终端设备的位姿和其他待显示对象在基准坐标系下的属性信息进行渲染,得到其他待显示对象对应的至少一个第二贴图;基于至少一个第一贴图和至少一个第二贴图确定待显示画面。本公开实施例所提供的用于待显示对象的显示方法可以由上述头戴显示设备1执行,相应地,用于待显示对象的显示装置通常设置于头戴显示设备1中,显示屏可以位于显示装置中。The head-mounted display device 1 can provide various services, such as determining at least one target object to be displayed that belongs to the target display mode, rendering each target object to be displayed according to its preset attributes in the display area of the terminal device, and obtaining at least one first map corresponding to each target object to be displayed; rendering other objects to be displayed except the target object to be displayed according to the posture of the terminal device and the attribute information of other objects to be displayed in the reference coordinate system, and obtaining at least one second map corresponding to other objects to be displayed; determining the screen to be displayed based on at least one first map and at least one second map. The display method for the object to be displayed provided in the embodiment of the present disclosure can be executed by the head-mounted display device 1 above, and accordingly, the display device for the object to be displayed is usually arranged in the head-mounted display device 1, and the display screen can be located in the display device.
还需指出的是,本公开提供的用于待显示对象的显示方法还可以应用于服务器3,该服务器3可以为后台页面服务器。在本公开的方法应用于服务器3的情况下,服务器3确定属于目标显示方式的至少一个目标待显示对象后,可以对各目标待显示对象按照其在终端设备的显示区域中的预设属性进行渲染,得到各目标待显示对象对应的至少一个第一贴图;对除目标待显示对象之外的其他待显示对象,按照终端设备的位姿和其他待显示对象在基准坐标系下的属性信息进行渲染,得到其他待显示对象对应的至少一个第二贴图;基于至少一个第一贴图和至少一个第二贴图确定待显示画面。相应地,用于待显示对象的显示装置也可以设置在服务器3中。It should also be pointed out that the display method for objects to be displayed provided by the present disclosure can also be applied to server 3, which can be a background page server. In the case where the method of the present disclosure is applied to server 3, after server 3 determines at least one target object to be displayed belonging to the target display mode, each target object to be displayed can be rendered according to its preset attributes in the display area of the terminal device to obtain at least one first map corresponding to each target object to be displayed; for other objects to be displayed except the target object to be displayed, the terminal device and the attribute information of other objects to be displayed in the reference coordinate system are rendered to obtain at least one second map corresponding to other objects to be displayed; the screen to be displayed is determined based on at least one first map and at least one second map. Accordingly, the display device for the object to be displayed can also be set in server 3.
除了服务器和头戴显示设备,用于待显示对象的显示方法还可以应用于其它终端设备(图中未示出)。此处的其它终端设备可以为手机、平板、电脑等。In addition to the server and the head mounted display device, the display method for the object to be displayed can also be applied to other terminal devices (not shown in the figure). The other terminal devices here can be mobile phones, tablets, computers, etc.
示例性方法Exemplary Methods
图2是本公开一示例性实施例提供的用于待显示对象的显示方法的流程示意图。本公开的实施例可应用在电子设备上,如图2所示,该方法包括如下步骤:FIG2 is a flow chart of a method for displaying an object to be displayed provided by an exemplary embodiment of the present disclosure. The embodiment of the present disclosure can be applied to an electronic device. As shown in FIG2 , the method includes the following steps:
步骤20,确定属于目标显示方式的至少一个目标待显示对象。Step 20: Determine at least one target object to be displayed that belongs to the target display mode.
在本公开的一些可选的实施例中,目标显示方式可以指跟头(跟随视角或跟随视野)显示方式,属于目标显示方式的目标待显示对象与虚拟相机观察位姿具有固定的相对位姿关系或者部分自由度锁定的相对位姿关系。其中,虚拟相机通常与所属终端设备保持一致的位姿关系,终端设备的移动导致终端设备位姿发生变化时,虚拟相机通常也会发生相应的位姿变化,使得从虚拟相机看到的画面可以反映出终端设备的移动,这个画面会呈现到终端设备的显示器上,以使用户看到的显示画面与从虚拟相机看到的画面一致。In some optional embodiments of the present disclosure, the target display mode may refer to a follow-up (following perspective or following field of view) display mode, and the target object to be displayed belonging to the target display mode has a fixed relative posture relationship or a relative posture relationship with some degrees of freedom locked with the virtual camera observation posture. Among them, the virtual camera usually maintains a consistent posture relationship with the terminal device to which it belongs. When the movement of the terminal device causes the posture of the terminal device to change, the virtual camera usually also undergoes a corresponding posture change, so that the picture seen from the virtual camera can reflect the movement of the terminal device, and this picture will be presented on the display of the terminal device so that the display picture seen by the user is consistent with the picture seen from the virtual camera.
在本公开的一些可选的实施例中,部分自由度锁定是指在三自由度或六自由度中有部分自由度需要跟头显示。比如绕虚拟相机的偏航角(yaw)方向跟头、绕虚拟相机的俯仰角(pitch)和横滚角(roll)方向不跟头(这种显示模式可称为2自由度),或绕虚拟相机的偏航角和俯仰角方向跟头、绕虚拟相机的横滚角方向不跟头(这种显示模式可称为1自由度),当然各种显示模式下哪些方向跟头哪些方向不跟头,具体可以根据实际需求设置。目标待显示对象与虚拟相机观察位姿具有固定的相对位姿关系(这种显示模式可称为0自由度)是指,无论虚拟相机的观察位姿如何变化,目标待显示对象在虚拟相机坐标系下的位姿不变。同理,部分自由度锁定的相对位姿关系是指部分自由度在虚拟相机坐标系下的坐标分量不变。比如对于2自由度的目标待显示对象,在虚拟相机坐标系下的位姿表示为(x,y,z,yaw,pitch,roll),其中,x、y、z和yaw分量保持不变,pitch和roll分量对应固定的基准坐标系下的俯仰角和横滚角,当虚拟相机在俯仰角和横滚角方向相对基准坐标系发生旋转时,目标待显示对象在虚拟相机坐标系下的pitch和roll分量会发生变化,也即在俯仰角和横滚角方向的观察视角发生了变化。In some optional embodiments of the present disclosure, partial DOF locking means that some DOFs in three or six DOFs need to be displayed with a head-on display. For example, the yaw direction of the virtual camera is with a head-on display, but the pitch and roll directions of the virtual camera are not with a head-on display (this display mode can be called 2 DOF), or the yaw and pitch directions of the virtual camera are with a head-on display, but the roll direction of the virtual camera is not with a head-on display (this display mode can be called 1 DOF). Of course, which directions are with a head-on display and which directions are not with a head-on display can be set according to actual needs. The target object to be displayed has a fixed relative posture relationship with the virtual camera observation posture (this display mode can be called 0 DOF), which means that no matter how the observation posture of the virtual camera changes, the posture of the target object to be displayed in the virtual camera coordinate system remains unchanged. Similarly, the relative posture relationship of partial DOF locking means that the coordinate components of some degrees of freedom in the virtual camera coordinate system remain unchanged. For example, for a target object to be displayed with 2 degrees of freedom, its position and posture in the virtual camera coordinate system is expressed as (x, y, z, yaw, pitch, roll), where the x, y, z and yaw components remain unchanged, and the pitch and roll components correspond to the pitch angle and roll angle in a fixed reference coordinate system. When the virtual camera rotates relative to the reference coordinate system in the pitch and roll directions, the pitch and roll components of the target object to be displayed in the virtual camera coordinate system will change, that is, the observation angle in the pitch and roll directions will change.
在本公开的一些可选的实施例中,属于目标显示方式的目标待显示对象比如可以包括播放视频时的视频窗口、三自由度和六自由度模式切换时的切换界面、在使用应用的过程中用于提醒用户的弹窗等对象中的至少一者。In some optional embodiments of the present disclosure, the target object to be displayed belonging to the target display mode may include, for example, at least one of a video window when playing a video, a switching interface when switching between three-degree-of-freedom and six-degree-of-freedom modes, and a pop-up window for reminding the user during the use of the application.
在本公开的一些可选的实施例中,属于目标显示方式的目标待显示对象的确定方式可以根据实际需求设置。比如可以设置属于目标待显示方式的预设类型集合,从而可以根据各待显示对象分别对应的类型是否属于预设类型集合,确定出目标待显示对象。再比如,还可以为需要按照目标显示方式进行显示的待显示对象设置目标显示方式标识,从而可以根据待显示对象携带的目标显示方式标识确定出目标待显示对象等等。In some optional embodiments of the present disclosure, the method for determining the target to-be-displayed object belonging to the target display mode can be set according to actual needs. For example, a preset type set belonging to the target to-be-displayed mode can be set, so that the target to-be-displayed object can be determined according to whether the type corresponding to each to-be-displayed object belongs to the preset type set. For another example, a target display mode identifier can be set for the to-be-displayed object that needs to be displayed according to the target display mode, so that the target to-be-displayed object can be determined according to the target display mode identifier carried by the to-be-displayed object, and so on.
用于待显示对象的显示方法的执行主体(可以为终端设备,例如可以为头戴显示设备、手机、服务器等)确定属于目标显示方式的至少一个目标待显示对象。An execution subject of the display method for an object to be displayed (which may be a terminal device, for example, a head-mounted display device, a mobile phone, a server, etc.) determines at least one target object to be displayed belonging to a target display mode.
步骤30,对各目标待显示对象按照预设属性进行渲染,得到各目标待显示对象对应的至少一个第一贴图。Step 30: Render each target object to be displayed according to preset attributes to obtain at least one first texture corresponding to each target object to be displayed.
在本公开的一些可选的实施例中,预设属性包括在终端设备的显示区域中的位置、角度、尺寸、缩放中的至少一项。In some optional embodiments of the present disclosure, the preset attribute includes at least one of a position, an angle, a size, and a scaling in a display area of the terminal device.
在本公开的一些可选的实施例中,终端设备的显示区域是显示待显示画面的区域,当显示待显示画面时,待显示画面填充该显示区域,使得用户可以在该显示区域观看待显示画面的内容。In some optional embodiments of the present disclosure, the display area of the terminal device is the area for displaying the picture to be displayed. When the picture to be displayed is displayed, the picture to be displayed fills the display area, so that the user can view the content of the picture to be displayed in the display area.
在本公开的一些可选的实施例中,预设属性所包括的在终端设备的显示区域中的位置,表示目标待显示对象在显示到显示区域中时的位置,也表示了目标待显示对象在待显示画面中的位置。同理,角度表示目标待显示对象在显示区域中绕虚拟相机的偏航角、俯仰角、横滚角中的至少一个方向的旋转角度,尺寸表示目标待显示对象在显示区域中的大小,缩放表示目标待显示对象显示到显示区域中时的缩放倍数。预设属性可以是预先设置并存储的。预设属性也可以在应用过程中根据用户的调整发生变化。例如用户对目标待显示对象在显示区域中的位置、角度、尺寸、缩放中的至少一项进行了调整。In some optional embodiments of the present disclosure, the position in the display area of the terminal device included in the preset attributes indicates the position of the target object to be displayed when it is displayed in the display area, and also indicates the position of the target object to be displayed in the screen to be displayed. Similarly, the angle indicates the rotation angle of the target object to be displayed in the display area around at least one of the yaw angle, pitch angle, and roll angle of the virtual camera, the size indicates the size of the target object to be displayed in the display area, and the zoom indicates the zoom factor of the target object to be displayed when it is displayed in the display area. The preset attributes can be pre-set and stored. The preset attributes can also change according to the user's adjustments during the application process. For example, the user adjusts at least one of the position, angle, size, and zoom of the target object to be displayed in the display area.
在本公开的一些可选的实施例中,终端设备可以是配置有相机的设备,比如头戴显示设备、手机、平板等。In some optional embodiments of the present disclosure, the terminal device may be a device equipped with a camera, such as a head-mounted display device, a mobile phone, a tablet, etc.
步骤40,基于终端设备的第一位姿和除目标待显示对象之外的其他待显示对象分别对应的属性信息,对其他待显示对象进行渲染,得到其他待显示对象对应的至少一个第二贴图。Step 40: based on the first posture of the terminal device and the attribute information corresponding to the other objects to be displayed except the target object to be displayed, render the other objects to be displayed to obtain at least one second map corresponding to the other objects to be displayed.
在本公开的一些可选的实施例中,属性信息包括其他待显示对象在基准坐标系下的位置、角度、缩放。In some optional embodiments of the present disclosure, the attribute information includes the position, angle, and scale of other objects to be displayed in the reference coordinate system.
在本公开的一些可选的实施例中,基准坐标系是相对稳定的坐标系,比如可以是世界坐标系,或者基于应用需求设置的与世界坐标系刚性连接的三维空间坐标系。属性信息可以包括其他待显示对象的位置、角度和缩放。其中,位置可以表示为其他待显示对象在基准坐标系下的坐标,角度可以表示为其他待显示对象在基准坐标系下的姿态或朝向,缩放可以表示对其他待显示对象的缩放倍数。属性信息可以是预先为各个其他待显示对象分别设置并存储的。属性信息也可以在应用过程中根据用户的调整发生变化。例如用户对其他待显示对象的位置、角度、缩放中的至少一项进行了调整。In some optional embodiments of the present disclosure, the reference coordinate system is a relatively stable coordinate system, such as a world coordinate system, or a three-dimensional space coordinate system rigidly connected to the world coordinate system set based on application requirements. The attribute information may include the position, angle, and scale of other objects to be displayed. Among them, the position can be expressed as the coordinates of other objects to be displayed in the reference coordinate system, the angle can be expressed as the posture or orientation of other objects to be displayed in the reference coordinate system, and the scale can represent the zoom multiple of other objects to be displayed. The attribute information may be pre-set and stored for each other object to be displayed. The attribute information may also change according to the user's adjustment during the application process. For example, the user adjusts at least one of the position, angle, and scale of other objects to be displayed.
在本公开的一些可选的实施例中,第一位姿可以包括位置和姿态中的至少一者。第一位姿可以是在即将渲染得到至少一个第二贴图时获得的终端设备的实时位姿,也可以是预估的下一显示时刻终端设备的位姿,具体可以根据实际需求设置。In some optional embodiments of the present disclosure, the first pose may include at least one of a position and a pose. The first pose may be a real-time pose of the terminal device obtained when at least one second map is about to be rendered, or may be an estimated pose of the terminal device at the next display moment, which may be set according to actual needs.
在本公开的一些可选的实施例中,终端设备上可以配置有IMU(InertialMeasurement Unit,惯性测量单元)及其他可用于测量终端设备速度、加速度、角度、角速度等的传感器中的至少一者。第一位姿可以基于终端设备上的相关传感器采集的数据获得,比如可以基于IMU和相机,结合IMU数据和相机图像,通过VSLAM(Visual SimultaneousLocalization and Mapping,视觉即时定位与地图构建)实现位姿的实时定位和位姿估计中的至少一者。对于终端设备的预估位姿,具体位姿估计方式可以根据实际需求设置,比如可以采用预设位姿估计算法进行估计。预设位姿估计算法比如可以包括任意的滤波算法、优化算法,等等。其中,滤波算法比如可以为一欧元滤波算法、卡尔曼滤波算法,等等。优化算法可以包括最小二乘优化算法及其他可能的算法。In some optional embodiments of the present disclosure, the terminal device may be configured with at least one of an IMU (Inertial Measurement Unit) and other sensors that can be used to measure the speed, acceleration, angle, angular velocity, etc. of the terminal device. The first posture can be obtained based on the data collected by the relevant sensors on the terminal device, for example, based on the IMU and the camera, combined with the IMU data and the camera image, through VSLAM (Visual Simultaneous Localization and Mapping) to achieve at least one of the real-time positioning and posture estimation of the posture. For the estimated posture of the terminal device, the specific posture estimation method can be set according to actual needs, for example, a preset posture estimation algorithm can be used for estimation. The preset posture estimation algorithm may include, for example, any filtering algorithm, optimization algorithm, and the like. Among them, the filtering algorithm may be, for example, a Euro filtering algorithm, a Kalman filtering algorithm, and the like. The optimization algorithm may include a least squares optimization algorithm and other possible algorithms.
在本公开的一些可选的实施例中,其他待显示对象可以包括待显示对象中除目标待显示对象之外的所有待显示对象,其他待显示对象可以包括一个或多个待显示对象。其他待显示对象比如可以包括在基准坐标系下具有固定位置和固定姿态中的至少一者的对象。当虚拟相机在基准坐标系下的观察位姿发生变化,表示其他待显示对象在虚拟相机坐标系下的位置和姿态中的至少一者发生了变化,从而导致其他待显示对象在观察视野内的情况发生变化。In some optional embodiments of the present disclosure, other objects to be displayed may include all objects to be displayed except the target object to be displayed, and other objects to be displayed may include one or more objects to be displayed. For example, other objects to be displayed may include objects having at least one of a fixed position and a fixed posture in a reference coordinate system. When the observation posture of the virtual camera in the reference coordinate system changes, it means that at least one of the position and posture of other objects to be displayed in the virtual camera coordinate system has changed, thereby causing the situation of other objects to be displayed in the observation field to change.
在本公开的一些可选的实施例中,基于终端设备的第一位姿和其他待显示对象分别对应的属性信息,对其他待显示对象进行渲染是指:根据第一位姿下的虚拟相机观察位姿相对于其他待显示对象的相对位姿关系,渲染出在第一位姿下应该看到其他待显示对象的图像(即第二贴图)。可以根据实际需求,得到其他待显示对象对应的至少一个第二贴图。比如对于多个其他待显示对象可以生成一个第二贴图,也可以生成多个第二贴图。In some optional embodiments of the present disclosure, based on the first posture of the terminal device and the attribute information corresponding to the other objects to be displayed, rendering the other objects to be displayed means: according to the relative posture relationship of the virtual camera observation posture in the first posture with respect to the other objects to be displayed, rendering the image (i.e., the second map) of the other objects to be displayed that should be seen in the first posture. At least one second map corresponding to the other objects to be displayed can be obtained according to actual needs. For example, one second map can be generated for multiple other objects to be displayed, or multiple second maps can be generated.
虚拟相机可以与终端设备固连,因此终端设备的位姿也能反映虚拟相机的位姿。The virtual camera can be fixedly connected to the terminal device, so the posture of the terminal device can also reflect the posture of the virtual camera.
上述步骤30和步骤40没有执行顺序上的限制,可以先后或并行执行。There is no restriction on the execution order of the above steps 30 and 40, and they can be executed sequentially or in parallel.
步骤50,基于至少一个第一贴图、至少一个第二贴图、终端设备的第二位姿,确定待显示画面。Step 50: determine a picture to be displayed based on at least one first map, at least one second map, and a second posture of the terminal device.
在本公开的一些可选的实施例中,第二位姿的获得时刻晚于第一位姿的获得时刻。In some optional embodiments of the present disclosure, the second posture is obtained later than the first posture.
在本公开的一些可选的实施例中,第二位姿对应的时刻不早于第一位姿对应的时刻。In some optional embodiments of the present disclosure, the time corresponding to the second posture is not earlier than the time corresponding to the first posture.
在本公开的一些可选的实施例中,第二位姿可以是终端设备的最新位姿,也可以是预估的终端设备在下一显示时刻的位姿。比如,在完成对其他待显示对象的渲染、得到至少一个第二贴图后,需要进一步确定待显示画面,此时(可以称为当前时刻)可以获得终端设备当前时刻的实时位姿,作为第二位姿,也可以是在当前时刻预估终端设备在下一显示时刻的位姿,作为第二位姿,具体不作限定。In some optional embodiments of the present disclosure, the second posture can be the latest posture of the terminal device, or it can be the estimated posture of the terminal device at the next display time. For example, after completing the rendering of other objects to be displayed and obtaining at least one second map, it is necessary to further determine the screen to be displayed. At this time (which can be called the current moment), the real-time posture of the terminal device at the current moment can be obtained as the second posture, or the posture of the terminal device at the next display moment can be estimated at the current moment as the second posture, without specific limitation.
在本公开的一些可选的实施例中,第一位姿为即将渲染得到至少一个第二贴图时获得的终端设备的实时位姿,相应的,第二位姿为得到至少一个第二贴图后,需要进一步确定待显示画面时获得的终端设备的实时位姿。In some optional embodiments of the present disclosure, the first posture is the real-time posture of the terminal device obtained when at least one second map is about to be rendered, and correspondingly, the second posture is the real-time posture of the terminal device obtained when the picture to be displayed needs to be further determined after obtaining at least one second map.
在本公开的一些可选的实施例中,第一位姿为即将渲染得到至少一个第二贴图时获得的终端设备的实时位姿,第二位姿为终端设备在下一显示时刻的预估位姿。In some optional embodiments of the present disclosure, the first posture is the real-time posture of the terminal device obtained when at least one second map is about to be rendered, and the second posture is the estimated posture of the terminal device at the next display moment.
在本公开的一些可选的实施例中,第一位姿为在渲染得到至少一个第二贴图之前的任一时刻预估的终端设备在下一显示时刻的第一预估位姿,第二位姿为在晚于第一预估位姿的预测时刻的任一时刻预估的终端设备在下一显示时刻的第二预估位姿。In some optional embodiments of the present disclosure, the first pose is a first estimated pose of the terminal device at the next display moment estimated at any moment before rendering at least one second map, and the second pose is a second estimated pose of the terminal device at the next display moment estimated at any moment later than the predicted moment of the first estimated pose.
在本公开的一些可选的实施例中,若第二位姿为终端设备的最新位姿,则确定的待显示画面为该终端设备的最新位姿下对应的待显示画面,可以实时将该待显示画面显示到终端设备的显示屏上,也可以是在显示时刻到达时显示到显示屏上。In some optional embodiments of the present disclosure, if the second posture is the latest posture of the terminal device, the determined picture to be displayed is the picture to be displayed corresponding to the latest posture of the terminal device. The picture to be displayed can be displayed on the display screen of the terminal device in real time, or it can be displayed on the display screen when the display time arrives.
在本公开的一些可选的实施例中,若第二位姿为预估的终端设备在下一显示时刻的位姿,则确定的待显示画面为下一显示时刻的待显示画面,在确定该下一显示时刻的待显示画面后,可以在下一显示时刻到达时,将待显示画面显示到终端设备的显示屏上。In some optional embodiments of the present disclosure, if the second posture is the estimated posture of the terminal device at the next display moment, the determined picture to be displayed is the picture to be displayed at the next display moment. After determining the picture to be displayed at the next display moment, the picture to be displayed can be displayed on the display screen of the terminal device when the next display moment arrives.
在本公开的一些可选的实施例中,第二位姿的确定原理与第一位姿类似,在此不再赘述。由于第二位姿的获得时刻晚于第一位姿的获得时刻,因此相对来说,第二位姿会更加接近待显示时刻时终端设备的实际位姿,且第二位姿相对于第一位姿可能有些变化,比如位置和姿态的至少一者有相对的变化。In some optional embodiments of the present disclosure, the determination principle of the second posture is similar to that of the first posture, and will not be repeated here. Since the second posture is obtained later than the first posture, relatively speaking, the second posture will be closer to the actual posture of the terminal device at the time to be displayed, and the second posture may have some changes relative to the first posture, such as a relative change in at least one of the position and posture.
为了保证其他待显示对象的低延迟性,需要基于第二位姿相对于第一位姿的位姿变化量,对其他待显示对象的至少一个第二贴图进行时间扭曲(Time Warp),以调整其在待显示画面中的显示位置、角度等。对于目标待显示对象,可以直接基于至少一个第一贴图,确定目标待显示对象在待显示画面的渲染结果,而无需基于第二位姿进行时间扭曲,以避免目标待显示对象的抖动。In order to ensure low latency of other objects to be displayed, it is necessary to perform time warping (Time Warp) on at least one second map of other objects to be displayed based on the change in the second pose relative to the first pose, so as to adjust its display position, angle, etc. in the screen to be displayed. For the target object to be displayed, the rendering result of the target object to be displayed in the screen to be displayed can be determined directly based on at least one first map, without performing time warping based on the second pose, so as to avoid jitter of the target object to be displayed.
在相关技术中,是对所有待显示对象按照第一位姿进行渲染得到一张贴图,之后按照第二位姿相对于第一位姿的位姿变化量,对贴图进行时间扭曲,得到待显示画面,发明人发现这样跟头显示的目标待显示对象会出现画面抖动的问题。In the related art, all objects to be displayed are rendered according to a first pose to obtain a texture, and then the texture is time-distorted according to the pose change of the second pose relative to the first pose to obtain the image to be displayed. The inventors found that the target object to be displayed in this way will have a jitter problem.
本公开实施例提供的用于待显示对象的显示方法,对需要跟随视角显示的待显示对象(即目标待显示对象),对各目标待显示对象按照其在终端设备的显示区域中的预设属性进行渲染获得至少一个第一贴图,而不是如相关技术一样对目标待显示对象按照第一位姿进行渲染获得贴图。对其他待显示对象按照第一位姿进行渲染获得至少一个第二贴图,在确定待显示画面时,为了保证其他待显示对象的低延迟性,可以基于终端设备的第二位姿进一步对第二贴图进行时间扭曲,结合目标待显示对象对应的至少一个第一贴图确定待显示画面,从而在兼顾其他待显示对象的低延迟性的情况下,降低需要跟随视角显示的目标待显示对象的抖动,提高用户体验。The display method for objects to be displayed provided by the embodiments of the present disclosure renders each target object to be displayed according to its preset attributes in the display area of the terminal device to obtain at least one first map, instead of rendering the target object to be displayed according to the first pose to obtain a map as in the related art. Other objects to be displayed are rendered according to the first pose to obtain at least one second map. When determining the screen to be displayed, in order to ensure the low latency of other objects to be displayed, the second map can be further time-distorted based on the second pose of the terminal device, and the screen to be displayed is determined in combination with at least one first map corresponding to the target object to be displayed, thereby reducing the jitter of the target object to be displayed that needs to be displayed following the viewing angle while taking into account the low latency of other objects to be displayed, thereby improving the user experience.
在本公开的一些可选的实施例中,可以基于预设属性建立待显示画面的像素与第一贴图像素的对应关系,从而可以基于该对应关系从第一贴图进行采样,确定待显示画面中各个像素的像素颜色值。该对应关系可以通过预设属性与终端设备的显示区域的关系及待显示画面与显示区域的关系确定。In some optional embodiments of the present disclosure, a correspondence between pixels of the to-be-displayed image and pixels of the first map can be established based on preset attributes, so that sampling can be performed from the first map based on the correspondence to determine the pixel color value of each pixel in the to-be-displayed image. The correspondence can be determined by the relationship between the preset attribute and the display area of the terminal device and the relationship between the to-be-displayed image and the display area.
在本公开的一些可选的实施例中,其他待显示对象的属性信息可以与第二位姿结合,用于确定待显示画面的像素与第二贴图像素的对应关系,从而可以基于该对应关系从第二贴图进行采样,确定待显示画面中各个像素的像素颜色值。具体可以根据实际需求设置,本实施例不作限定。In some optional embodiments of the present disclosure, the attribute information of other objects to be displayed can be combined with the second posture to determine the correspondence between the pixels of the screen to be displayed and the pixels of the second map, so that the pixel color value of each pixel in the screen to be displayed can be determined by sampling from the second map based on the correspondence. The specific setting can be based on actual needs and is not limited in this embodiment.
在本公开的一些可选的实施例中,在确定待显示画面时,对于各目标待显示对象和其他待显示对象,可以分别作为不同的层级进行渲染,再对各层级渲染后的子图像进行融合获得待显示画面。还可以是根据待显示画面的各像素分别在各目标待显示对象的第一贴图和其他待显示对象的第二贴图上的进行采样,采集各像素分别对应的像素值,按照层级进行融合获得待显示画面等等。具体可以根据实际需求设置。各目标待显示对象的层级和其他待显示对象的层级可以根据预设规则确定。预设规则可以根据实际需求设置,比如预设规则可以包括各目标待显示对象与其他待显示对象的位置关系,还可以包括各目标待显示对象和其他待显示对象的类别,等等。In some optional embodiments of the present disclosure, when determining the picture to be displayed, each target object to be displayed and other objects to be displayed can be rendered as different levels, and then the sub-images rendered at each level can be fused to obtain the picture to be displayed. It can also be that each pixel of the picture to be displayed is sampled on the first map of each target object to be displayed and the second map of other objects to be displayed, and the pixel values corresponding to each pixel are collected, and the picture to be displayed is obtained by fusion according to the level, etc. It can be set specifically according to actual needs. The level of each target object to be displayed and the level of other objects to be displayed can be determined according to preset rules. The preset rules can be set according to actual needs. For example, the preset rules can include the positional relationship between each target object to be displayed and other objects to be displayed, and can also include the category of each target object to be displayed and other objects to be displayed, and so on.
在本公开的一些可选的实施例中,终端设备的显示屏比如可以为头戴显示设备的显示屏、手机的显示屏、平板的显示屏,等等,使得用户能够通过显示屏观看待显示画面的内容。In some optional embodiments of the present disclosure, the display screen of the terminal device may be, for example, a display screen of a head-mounted display device, a display screen of a mobile phone, a display screen of a tablet, etc., so that the user can view the content of the image to be displayed through the display screen.
本公开实施例提供的用于待显示对象的显示方法,对需要跟随视角显示的目标待显示对象,可以按照其在终端设备的显示区域中的预设属性进行渲染获得至少一个第一贴图,对于其他待显示对象可以按照第一位姿进行渲染获得至少一个第二贴图,进而基于第一贴图、第二贴图和终端设备的第二位姿确定待显示画面,从而在兼顾其他待显示对象的低延迟性的情况下,降低需要跟随视角显示的目标待显示对象的抖动,提高用户体验。The display method for objects to be displayed provided by the embodiments of the present disclosure can, for target objects to be displayed that need to be displayed following the viewing angle, be rendered according to their preset attributes in the display area of a terminal device to obtain at least one first map, and for other objects to be displayed, be rendered according to a first posture to obtain at least one second map, and then determine the picture to be displayed based on the first map, the second texture and the second posture of the terminal device, thereby reducing the jitter of the target objects to be displayed that need to be displayed following the viewing angle while taking into account the low latency of other objects to be displayed, thereby improving the user experience.
在本公开的一些可选的实施例中,步骤20的确定属于目标显示方式的至少一个目标待显示对象,包括:In some optional embodiments of the present disclosure, the step 20 of determining at least one target to-be-displayed object belonging to the target display mode includes:
根据各待显示对象分别对应的类型及预设类型集合,确定属于目标显示方式的至少一个目标待显示对象。At least one target object to be displayed belonging to the target display mode is determined according to the types corresponding to the objects to be displayed and the preset type set.
在本公开的一些可选的实施例中,预设类型集合中存储有属于目标显示方式的类型。In some optional embodiments of the present disclosure, the preset type set stores types belonging to the target display mode.
在本公开的一些可选的实施例中,预设类型集合可以根据实际需求设置。比如预设类型集合可以包括弹窗类型、视频窗口类型、模式切换界面类型,等等。将各待显示对象的类型与预设类型集合进行匹配,若某一待显示对象的类型在预设类型集合中,确定该待显示对象为属于目标显示方式的目标待显示对象。In some optional embodiments of the present disclosure, the preset type set can be set according to actual needs. For example, the preset type set may include a pop-up window type, a video window type, a mode switching interface type, etc. The type of each object to be displayed is matched with the preset type set. If the type of a certain object to be displayed is in the preset type set, the object to be displayed is determined to be a target object to be displayed belonging to the target display mode.
在本公开的一些可选的实施例中,预设类型集合中的类型可以按照用户的指示进行调整,调整可以包括增加、删除、修改中的至少一项。则步骤20按照调整后的预设类型集合确定目标待显示对象。In some optional embodiments of the present disclosure, the types in the preset type set can be adjusted according to the user's instructions, and the adjustment can include at least one of adding, deleting, and modifying. Then step 20 determines the target object to be displayed according to the adjusted preset type set.
本公开实施例提供的用于待显示对象的显示方法,通过设置预设类型集合,用于存储属于目标显示方式的类型,使得在渲染过程中,可以方便地确定出属于目标显示方式的目标待显示对象,提高处理效率。The display method for objects to be displayed provided by the embodiments of the present disclosure sets a preset type set to store types belonging to the target display mode, so that during the rendering process, the target objects to be displayed belonging to the target display mode can be easily determined, thereby improving processing efficiency.
在本公开的一些可选的实施例中,步骤20的确定属于目标显示方式的至少一个目标待显示对象,包括:In some optional embodiments of the present disclosure, the step 20 of determining at least one target to-be-displayed object belonging to the target display mode includes:
响应于任一待显示对象携带有目标显示方式标识,确定该待显示对象属于目标显示方式。In response to any to-be-displayed object carrying a target display mode identifier, it is determined that the to-be-displayed object belongs to the target display mode.
在本公开的一些可选的实施例中,可以预先为属于目标显示方式的待显示对象设置目标显示方式标识,使得属于目标显示方式的待显示对象携带有目标显示方式标识,在待显示画面的渲染过程中,可以通过识别各待显示对象携带的目标显示方式标识,确定属于目标显示方式的目标待显示对象。In some optional embodiments of the present disclosure, a target display mode identifier can be set in advance for the objects to be displayed that belong to the target display mode, so that the objects to be displayed that belong to the target display mode carry the target display mode identifier. During the rendering process of the picture to be displayed, the target objects to be displayed that belong to the target display mode can be determined by identifying the target display mode identifier carried by each object to be displayed.
在本公开的一些可选的实施例中,目标显示方式标识的具体表示方式可以根据实际需求设置,只要能够唯一识别目标显示方式即可。In some optional embodiments of the present disclosure, the specific representation method of the target display mode identifier can be set according to actual needs, as long as the target display mode can be uniquely identified.
本公开实施例提供的用于待显示对象的显示方法,通过识别待显示对象携带的目标显示方式标识确定属于目标显示方式的目标待显示对象,可以进一步提高处理效率。The display method for the object to be displayed provided by the embodiment of the present disclosure can further improve processing efficiency by identifying the target display mode identifier carried by the object to be displayed to determine the target object to be displayed belonging to the target display mode.
在本公开的一些可选的实施例中,属于目标显示方式的目标待显示对象还可以基于用户的操作确定。比如用户可以选择将某一待显示对象按照目标显示方式进行显示,则可以响应于用户的操作,将该待显示对象作为属于目标显示方式的目标待显示对象。In some optional embodiments of the present disclosure, the target to-be-displayed object belonging to the target display mode may also be determined based on the user's operation. For example, the user may choose to display a certain to-be-displayed object in the target display mode, and then, in response to the user's operation, the to-be-displayed object may be used as the target to-be-displayed object belonging to the target display mode.
在一个可选的示例中,用户通过控制手柄长按某个对象,比如某个窗口,则可以弹出让用户选择是否将该对象以目标显示方式进行显示的选项,若用户选择是,则在渲染过程中,该窗口会跳过时间扭曲,以保证该窗口的稳定性。In an optional example, when a user long presses an object, such as a window, with a control handle, an option may pop up for the user to choose whether to display the object in target display mode. If the user chooses yes, the window will skip time warping during the rendering process to ensure the stability of the window.
在一个可选的示例中,用户还可以预先将某一应用(APP)设置为目标显示方式,则在渲染该应用时,该应用会按照目标显示方式对应的渲染过程进行渲染,保证该应用的视觉稳定性。In an optional example, the user may also pre-set an application (APP) as the target display mode. When rendering the application, the application will be rendered according to the rendering process corresponding to the target display mode to ensure the visual stability of the application.
在本公开的一些可选的实施例中,对于用户为某些窗口或应用人工增加目标显示方式标识的情况,在步骤30中,会屏蔽这些窗口或应用原先的属性信息,并使用预设属性对这些窗口或应用进行渲染得到第一贴图。In some optional embodiments of the present disclosure, when a user manually adds a target display mode identifier for certain windows or applications, in step 30, the original attribute information of these windows or applications will be shielded, and these windows or applications will be rendered using preset attributes to obtain a first map.
在本公开的一些可选的实施例中,可以将待显示对象中属于预设类型集合中类型的待显示对象和携带有目标显示方式标识的待显示对象,一起作为目标待显示对象。In some optional embodiments of the present disclosure, objects to be displayed that belong to a type in a preset type set and objects to be displayed that carry a target display mode identifier among the objects to be displayed may be taken together as target objects to be displayed.
图3是本公开另一示例性实施例提供的用于待显示对象的显示方法的流程示意图。FIG. 3 is a schematic flow chart of a method for displaying an object to be displayed provided by another exemplary embodiment of the present disclosure.
在本公开的一些可选的实施例中,本公开的方法还包括:In some optional embodiments of the present disclosure, the method of the present disclosure further includes:
步骤610,按照预设规则确定各第一贴图的层级和各第二贴图的层级。Step 610: Determine the level of each first texture and the level of each second texture according to a preset rule.
在本公开的一些可选的实施例中,预设规则可以包括各目标待显示对象的第一贴图与其他待显示对象的第二贴图的位置关系,还可以包括各目标待显示对象和其他待显示对象的类别,等等。位置关系可以包括深度和遮挡中的至少一者。类别可以包括目标类、其他类。其中,目标类对应目标待显示对象,其他类对应其他待显示对象。In some optional embodiments of the present disclosure, the preset rules may include the positional relationship between the first map of each target object to be displayed and the second map of other objects to be displayed, and may also include the categories of each target object to be displayed and other objects to be displayed, etc. The positional relationship may include at least one of depth and occlusion. The categories may include target categories and other categories. Among them, the target category corresponds to the target object to be displayed, and the other categories correspond to other objects to be displayed.
在本公开的一些可选的实施例中,各第一贴图的层级和各第二贴图的层级可以采用任意的方式表示。比如用编号或其他符号,具体可以根据实际需求设置。In some optional embodiments of the present disclosure, the levels of each first map and the levels of each second map may be represented in any manner, such as by numbers or other symbols, which may be specifically set according to actual needs.
在本公开的一个可选示例中,层级可以采用层号表示,比如1、2、3、…,层号越大可以表示层级越靠上。各目标待显示对象的层号可以按照遮挡关系确定,比如被遮挡的目标待显示对象的层级低于遮挡它的目标待显示对象的层级。In an optional example of the present disclosure, the level can be represented by a level number, such as 1, 2, 3, ..., and a larger level number can represent a higher level. The level number of each target to-be-displayed object can be determined according to the occlusion relationship, for example, the level of the occluded target to-be-displayed object is lower than the level of the target to-be-displayed object that occludes it.
在本公开的一些可选的实施例中,目标待显示对象的层号可以大于其他待显示对象。比如在三自由度和六自由度的模式切换时,切换界面层级最靠上,以保证用户能够清晰地观看到切换界面。In some optional embodiments of the present disclosure, the layer number of the target to-be-displayed object may be greater than that of other to-be-displayed objects. For example, when switching between three-degree-of-freedom and six-degree-of-freedom modes, the switching interface is at the top to ensure that the user can clearly see the switching interface.
在本公开的一些可选的实施例中,各第一贴图可以设置在同一层级,也可以根据相对位置关系设置在不同层级,具体可以根据实际需求设置。In some optional embodiments of the present disclosure, each first map may be set at the same level, or may be set at different levels according to relative position relationships, and may be set specifically according to actual needs.
本公开实施例提供的用于待显示对象的显示方法,通过为各第一贴图和各第二贴图确定的层级,可以在确定待显示画面时,能够处理好各个目标待显示对象和其他待显示对象之间的遮挡关系。The display method for objects to be displayed provided by the embodiments of the present disclosure can handle the occlusion relationship between each target object to be displayed and other objects to be displayed when determining the picture to be displayed by determining the levels for each first map and each second map.
在本公开的一些可选的实施例中,步骤610的按照预设规则确定各第一贴图的层级和各第二贴图的层级,包括:In some optional embodiments of the present disclosure, determining the level of each first map and the level of each second map according to a preset rule in step 610 includes:
将各第一贴图配置为预设层级;基于全部第二贴图在终端设备处于目标位姿下的位置关系,确定各第二贴图的层级。Each first map is configured as a preset level; based on the positional relationship of all second maps when the terminal device is in a target position, the level of each second map is determined.
在本公开的一些可选的实施例中,目标位姿包括如下任一项:第一位姿,第二位姿。位置关系包括如下至少一项:深度,遮挡。In some optional embodiments of the present disclosure, the target posture includes any one of the following: a first posture, a second posture. The position relationship includes at least one of the following: depth, occlusion.
在本公开的一些可选的实施例中,预设层级可以根据实际需求设置,比如将各第一贴图配置为层号最高的预设个数的层级,预设个数与第一贴图的数量一致。例如当第一贴图有3个时,可以将这3个第一贴图的层号分别配置为999、998、997。In some optional embodiments of the present disclosure, the preset level can be set according to actual needs, such as configuring each first map to be a level with a preset number of the highest layer number, and the preset number is consistent with the number of first maps. For example, when there are three first maps, the layer numbers of the three first maps can be configured as 999, 998, and 997 respectively.
在本公开的一些可选的实施例中,在终端设备处于目标位姿下时,通过终端设备的相机或虚拟相机观察各第二贴图,能观察到的内容会受各第二贴图相对于终端设备位置关系的影响,比如距离、角度等的影响。其中,距离可以表征其他待显示对象的深度,角度可以表征观察视角,不同视角可能会导致其他待显示对象之间不同的遮挡关系。基于此原理,可以根据全部第二贴图在终端设备处于目标位姿下的位置关系,确定各第二贴图的层级。第二贴图在目标位姿下相对于相机或虚拟相机的深度信息可以基于第二贴图对应的其他待显示对象的属性信息和目标位姿确定。In some optional embodiments of the present disclosure, when the terminal device is in the target posture, each second map is observed through the camera or virtual camera of the terminal device, and the observable content will be affected by the positional relationship of each second map relative to the terminal device, such as the distance, angle, etc. Among them, the distance can characterize the depth of other objects to be displayed, and the angle can characterize the viewing angle. Different viewing angles may lead to different occlusion relationships between other objects to be displayed. Based on this principle, the level of each second map can be determined according to the positional relationship of all second maps when the terminal device is in the target posture. The depth information of the second map relative to the camera or virtual camera in the target posture can be determined based on the attribute information of other objects to be displayed corresponding to the second map and the target posture.
在实际应用中,还可以根据用户对各待显示对象的操作,调整各待显示对象的层级。比如用户通过拖拽将原本被第一待显示对象遮挡的第二待显示对象移动到遮挡第一待显示对象的状态,则可以对第一待显示对象和第二待显示对象的层级进行调整,基于调整后的层级确定待显示画面,使得待显示画面及时跟随用户的操作进行相应的显示。In actual applications, the levels of the objects to be displayed can also be adjusted according to the user's operations on the objects to be displayed. For example, if the user drags the second object to be displayed, which was originally blocked by the first object to be displayed, to a state where it blocks the first object to be displayed, the levels of the first object to be displayed and the second object to be displayed can be adjusted, and the screen to be displayed is determined based on the adjusted levels, so that the screen to be displayed is displayed accordingly in time following the user's operations.
在为其他待显示对象确定层级时,对于没有遮挡关系的第二贴图,层级可以随机分配。例如,有2个第二贴图A、B,如果终端设备在目标位姿下,A、B之间彼此不会遮挡,则可以忽略A、B的深度关系,A、B的层号可以随机分配为1、2,均不影响最终在待显示画面上的显示效果。When determining the levels for other objects to be displayed, the levels can be randomly assigned for the second maps that have no occlusion relationship. For example, there are two second maps A and B. If the terminal device is in the target posture and A and B do not occlude each other, the depth relationship between A and B can be ignored, and the layer numbers of A and B can be randomly assigned to 1 and 2, which will not affect the final display effect on the screen to be displayed.
本公开实施例提供的用于待显示对象的显示方法,可以将各第一贴图配置为预设层级,根据全部第二贴图在终端设备处于目标位姿下的位置关系,确定各第二贴图的层级,便于后续层级融合,提高处理效率。The display method for the object to be displayed provided by the embodiment of the present disclosure can configure each first map as a preset level, and determine the level of each second map according to the positional relationship of all second maps when the terminal device is in a target position, so as to facilitate subsequent level fusion and improve processing efficiency.
图4是本公开一示例性实施例提供的步骤50的流程示意图。FIG. 4 is a flowchart of step 50 provided by an exemplary embodiment of the present disclosure.
在本公开的一些可选的实施例中,步骤50的基于至少一个第一贴图、至少一个第二贴图、终端设备的第二位姿,确定待显示画面,包括:In some optional embodiments of the present disclosure, step 50 of determining the picture to be displayed based on at least one first map, at least one second map, and the second posture of the terminal device includes:
步骤510,基于至少一个第二贴图和终端设备的第二位姿,确定各第二贴图分别对应的渲染结果。Step 510: Determine rendering results corresponding to each second texture based on at least one second texture and a second posture of the terminal device.
在本公开的一些可选的实施例中,对于每一第二贴图,可以基于第二位姿与第一位姿,确定待显示画面的各像素与该第二贴图的像素的对应关系,基于此,可以得到该第二贴图对应的渲染结果。具体可参见前述内容,在此不再赘述。In some optional embodiments of the present disclosure, for each second map, the correspondence between each pixel of the to-be-displayed image and the pixel of the second map can be determined based on the second pose and the first pose, and based on this, the rendering result corresponding to the second map can be obtained. For details, please refer to the above content, which will not be repeated here.
步骤520,基于各第一贴图、各第一贴图的层级、各渲染结果和各第二贴图的层级,确定待显示画面。Step 520 , determining a picture to be displayed based on each first texture, the level of each first texture, each rendering result and the level of each second texture.
在本公开的一些可选的实施例中,待显示画面的确定可以采用任意可实施的方式实现。比如按照层级逐层叠加各层级的子图像(对于目标待显示对象,子图像为第一贴图;对于其他待显示对象,子图像为渲染结果),并根据待显示画面进行裁剪,获得待显示画面。再比如可以按照一定数量的层级进行子图像的叠加和裁剪,确定待显示画面。还可以所有层级一起叠加和裁剪,确定待显示画面。具体可以根据实际需求设置。In some optional embodiments of the present disclosure, the determination of the picture to be displayed can be implemented in any feasible manner. For example, sub-images of each level are superimposed layer by layer according to the level (for the target object to be displayed, the sub-image is the first map; for other objects to be displayed, the sub-image is the rendering result), and the picture to be displayed is cropped to obtain the picture to be displayed. For another example, the sub-images can be superimposed and cropped according to a certain number of levels to determine the picture to be displayed. All levels can also be superimposed and cropped together to determine the picture to be displayed. The specific setting can be based on actual needs.
本公开实施例提供的用于待显示对象的显示方法,通过结合第二位姿对第二贴图进行渲染,获得各第二贴图分别对应的渲染结果,之后融合各层级的子图像得到待显示画面,实现了待显示画面的有效确定,保证待显示画面中目标待显示对象的稳定性。The display method for the object to be displayed provided by the embodiment of the present disclosure renders the second map in combination with the second posture to obtain the rendering results corresponding to each second map, and then fuses the sub-images of each level to obtain the picture to be displayed, thereby achieving effective determination of the picture to be displayed and ensuring the stability of the target object to be displayed in the picture to be displayed.
在本公开的一些可选的实施例中,步骤510的基于至少一个第二贴图和终端设备的第二位姿,确定各第二贴图分别对应的渲染结果,包括:In some optional embodiments of the present disclosure, determining the rendering results corresponding to the second maps respectively based on at least one second map and the second posture of the terminal device in step 510 includes:
对于任一第二贴图,基于第二位姿,确定待显示画面的各像素在该第二贴图中的采样坐标;基于各像素在第二贴图中的采样坐标,确定该第二贴图对应的渲染结果。For any second map, based on the second posture, the sampling coordinates of each pixel of the to-be-displayed picture in the second map are determined; based on the sampling coordinates of each pixel in the second map, the rendering result corresponding to the second map is determined.
在本公开的一些可选的实施例中,待显示画面的各像素在其他待显示对象的第二贴图中的采样坐标可以基于待显示画面的像素坐标与第二贴图的像素坐标之间的转换关系确定。该转换关系可以通过第二位姿相对于第一位姿的位姿变化量来确定。In some optional embodiments of the present disclosure, the sampling coordinates of each pixel of the picture to be displayed in the second map of the other object to be displayed can be determined based on the conversion relationship between the pixel coordinates of the picture to be displayed and the pixel coordinates of the second map. The conversion relationship can be determined by the change in the second posture relative to the first posture.
本公开实施例提供的用于待显示对象的显示方法,基于第二位姿,确定待显示画面的各像素在第二贴图中的采样坐标,基于各像素在第二贴图中的采样坐标,可以在后续确定待显示画面时,确定待显示画面的各像素在该第二贴图时间扭曲后对应的像素值,为待显示画面的确定提供准确的渲染结果。The display method for an object to be displayed provided by the embodiment of the present disclosure determines the sampling coordinates of each pixel of the picture to be displayed in the second map based on the second posture. Based on the sampling coordinates of each pixel in the second map, when the picture to be displayed is subsequently determined, the pixel value corresponding to each pixel of the picture to be displayed after the time distortion of the second map can be determined, thereby providing an accurate rendering result for the determination of the picture to be displayed.
在本公开的一些可选的实施例中,由于第一贴图是基于目标待显示对象在终端设备的显示区域中的预设属性渲染获得的,也即第一贴图与待显示画面的各像素具有相应的对应关系,因此基于第一贴图可以直接确定待显示画面的各像素在第一贴图的采样坐标。In some optional embodiments of the present disclosure, since the first map is obtained by rendering based on preset attributes of the target object to be displayed in the display area of the terminal device, that is, the first map has a corresponding correspondence with each pixel of the picture to be displayed, the sampling coordinates of each pixel of the picture to be displayed in the first map can be directly determined based on the first map.
图5是本公开一示例性实施例提供的步骤520的流程示意图。FIG. 5 is a flowchart of step 520 provided by an exemplary embodiment of the present disclosure.
在本公开的一些可选的实施例中,步骤520的基于各第一贴图、各第一贴图的层级、各渲染结果和各第二贴图的层级,确定待显示画面,包括:In some optional embodiments of the present disclosure, step 520 of determining the picture to be displayed based on each first map, the level of each first map, each rendering result and the level of each second map includes:
步骤5210,从处理状态为未处理的层级中,确定深度最大的层级作为当前层级;其中,所有层级的初始处理状态为未处理。Step 5210, from among the levels whose processing status is unprocessed, determine the level with the greatest depth as the current level; wherein the initial processing status of all levels is unprocessed.
在本公开的一些可选的实施例中,可以将所有层级的处理状态初始化为未处理。深度最大的层级是可能会被其他层级遮挡的层级,因此,从深度最大的层级开始,将深度最大的层级作为当前层级。In some optional embodiments of the present disclosure, the processing status of all levels can be initialized to unprocessed. The level with the greatest depth is the level that may be blocked by other levels, so starting from the level with the greatest depth, the level with the greatest depth is used as the current level.
步骤5220,基于待显示画面的各像素的采样坐标,将当前层级的子图像与在前渲染结果进行融合,获得当前渲染结果;其中,在前渲染结果初始为空;子图像包括如下一种:第一贴图,渲染结果。Step 5220, based on the sampling coordinates of each pixel of the screen to be displayed, merge the sub-image of the current level with the previous rendering result to obtain the current rendering result; wherein the previous rendering result is initially empty; the sub-image includes the following: a first map, a rendering result.
在本公开的一些可选的实施例中,在前渲染结果是指在前一轮处理过程中融合获得的渲染结果。将当前层级的子图像与在前渲染结果进行融合,可以是在在前渲染结果的基础上,将当前层级的子图像的各像素的颜色值与在前渲染结果的各像素的颜色值进行融合。颜色值可以包括R(RED,红色)、G(GREEN,绿色)、B(BLUE,蓝色)三个颜色通道的取值和透明度。对于颜色值的融合,可以根据透明度情况,将当前层级的子图像的颜色值对在前渲染结果的颜色值进行相应透明度的遮挡。比如当前层级的某像素的颜色值透明度为1时,则对于该像素,融合后的结果为当前层级的颜色值,基于此,可以获得当前渲染结果。透明度可以默认设置为1,也可以为介于0和1之间的某个值,可以根据需要进行设置和调整。In some optional embodiments of the present disclosure, the previous rendering result refers to the rendering result obtained by fusion in the previous round of processing. The sub-image of the current level is fused with the previous rendering result, and the color value of each pixel of the sub-image of the current level is fused with the color value of each pixel of the previous rendering result on the basis of the previous rendering result. The color value may include the values and transparency of three color channels R (RED), G (GREEN), and B (BLUE). For the fusion of color values, the color value of the sub-image of the current level can be masked with the color value of the previous rendering result with corresponding transparency according to the transparency. For example, when the color value transparency of a pixel at the current level is 1, for the pixel, the fused result is the color value of the current level, based on which the current rendering result can be obtained. The transparency can be set to 1 by default, or it can be a value between 0 and 1, and can be set and adjusted as needed.
在本公开的一些可选的实施例中,若当前层级为第一贴图对应的层级,则当前层级的子图像为第一贴图,若当前层级为第二贴图对应的层级,则当前层级的子图像为第二贴图对应的渲染结果。In some optional embodiments of the present disclosure, if the current level is the level corresponding to the first map, the sub-image of the current level is the first map; if the current level is the level corresponding to the second map, the sub-image of the current level is the rendering result corresponding to the second map.
在本公开的一些可选的实施例中,子图像可以是按照待显示画面进行裁剪后的结果,也可以是未裁剪的结果。对于未裁剪的结果,可以在融合时进行裁剪,使得融合后的当前渲染结果为适配待显示画面的渲染结果。In some optional embodiments of the present disclosure, the sub-image may be a result of cropping according to the picture to be displayed, or may be an uncropped result. For the uncropped result, cropping may be performed during fusion so that the current rendering result after fusion is a rendering result adapted to the picture to be displayed.
步骤5230,将当前层级的处理状态更新为已处理,并使用当前渲染结果更新在前渲染结果。Step 5230, update the processing status of the current level to processed, and use the current rendering result to update the previous rendering result.
在本公开的一些可选的实施例中,在获得当前渲染结果后,为了避免重复处理,将当前层级的处理状态更新为已处理,并使用当前渲染结果更新在前渲染结果。In some optional embodiments of the present disclosure, after obtaining the current rendering result, in order to avoid repeated processing, the processing status of the current level is updated to processed, and the current rendering result is used to update the previous rendering result.
在本公开的一些可选的实施例中,在前渲染结果可以存储在渲染缓冲区中,在使用当前渲染结果更新在前渲染结果时,可以使用当前渲染结果替换渲染缓冲区中的在前渲染结果。In some optional embodiments of the present disclosure, the previous rendering result may be stored in a rendering buffer, and when the previous rendering result is updated using the current rendering result, the current rendering result may be used to replace the previous rendering result in the rendering buffer.
步骤5240,判断所有层级的处理状态是否均为已处理。Step 5240, determine whether the processing status of all levels is processed.
响应于所有层级中还有至少一个层级的处理状态为未处理,重复执行步骤5210:从处理状态为未处理的层级中,确定深度最大的层级作为当前层级的步骤。In response to at least one level in all levels still having a processing status of unprocessed, step 5210 is repeatedly executed: determining, from among the levels in the processing status of unprocessed, the level with the greatest depth as the current level.
该步骤的具体操作,参见前述内容,在此不再赘述。For the specific operation of this step, please refer to the above content and will not be repeated here.
响应于所有层级的处理状态均为已处理,执行步骤5250,将在前渲染结果作为待显示画面。In response to the processing status of all levels being processed, step 5250 is executed to use the previous rendering result as the picture to be displayed.
在本公开的一些可选的实施例中,当所有层级的处理状态均为已处理,表示完成了所有层级的子图像的融合,最终获得的在前渲染结果作为待显示画面,以在需要显示该待显示画面时,将该待显示画面显示到终端设备的显示屏上。In some optional embodiments of the present disclosure, when the processing status of all levels is processed, it means that the fusion of sub-images of all levels is completed, and the final previous rendering result is used as the picture to be displayed, so that when the picture to be displayed needs to be displayed, the picture to be displayed can be displayed on the display screen of the terminal device.
本公开实施例提供的用于待显示对象的显示方法,通过按层级顺序逐层融合实现了待显示画面的确定。The display method for the object to be displayed provided by the embodiment of the present disclosure realizes the determination of the picture to be displayed by fusing layer by layer in hierarchical order.
在本公开的一些可选的实施例中,步骤520的基于各第一贴图、各第一贴图的层级、各渲染结果和各第二贴图的层级,确定待显示画面,包括:In some optional embodiments of the present disclosure, step 520 of determining the picture to be displayed based on each first map, the level of each first map, each rendering result and the level of each second map includes:
从处理状态为未处理的层级中,确定深度最大的预设数量的层级作为当前目标层级;其中,所有层级的初始处理状态为未处理;基于待显示画面的各像素的采样坐标,将各个当前目标层级的子图像按照层级顺序与在前渲染结果进行融合,获得当前渲染结果;其中,在前渲染结果初始为空;子图像包括如下一种:第一贴图,渲染结果;将各个当前目标层级的处理状态更新为已处理,并使用当前渲染结果更新在前渲染结果;重复执行从处理状态为未处理的层级中,确定深度最大的预设数量的层级作为当前目标层级的步骤;响应于所有层级的处理状态均为已处理,将在前渲染结果作为待显示画面。From the layers whose processing status is unprocessed, determine the layers with a preset number of the largest depths as the current target layers; wherein the initial processing status of all the layers is unprocessed; based on the sampling coordinates of each pixel of the picture to be displayed, merge the sub-images of each current target layer with the previous rendering result in the layer order to obtain the current rendering result; wherein the previous rendering result is initially empty; the sub-images include the following: a first map, a rendering result; update the processing status of each current target layer to processed, and use the current rendering result to update the previous rendering result; repeatedly execute the step of determining the layers with a preset number of the largest depths as the current target layers from the layers whose processing status is unprocessed; in response to the processing status of all the layers being processed, use the previous rendering result as the picture to be displayed.
在本公开的一些可选的实施例中,预设数量可以根据实际需求设置,比如可以设置为2层、3层,等等。对于各个当前目标层级的子图像,按照层级顺序与在前渲染结果进行融合的过程可以是逐层融合,也可以是逐像素融合。逐层融合与前述的逐层融合类似,可以是当前目标层级先按照层级顺序融合得到临时融合结果,再将临时融合结果与在前渲染结果进行融合得到当前渲染结果。逐像素融合是指对于待显示画面的任一像素,基于该像素在各个当前目标层级和在前渲染结果中对应的采样坐标,按层级顺序确定该像素对应的融合后的像素值,具体可以根据实际需求设置。对于各像素的融合可以依次处理,也可以并行处理,具体可以根据实际需求设置。In some optional embodiments of the present disclosure, the preset number can be set according to actual needs, for example, it can be set to 2 layers, 3 layers, and so on. For each sub-image of the current target level, the process of fusing with the previous rendering result in the hierarchical order can be layer-by-layer fusion or pixel-by-pixel fusion. The layer-by-layer fusion is similar to the aforementioned layer-by-layer fusion, and the current target level can be first fused in the hierarchical order to obtain a temporary fusion result, and then the temporary fusion result is fused with the previous rendering result to obtain the current rendering result. Pixel-by-pixel fusion means that for any pixel of the screen to be displayed, based on the sampling coordinates corresponding to the pixel in each current target level and the previous rendering result, the corresponding fused pixel value of the pixel is determined in the hierarchical order, which can be specifically set according to actual needs. The fusion of each pixel can be processed sequentially or in parallel, which can be specifically set according to actual needs.
本公开实施例提供的用于待显示对象的显示方法,通过预设数量的层级作为当前目标层级进行按层级的融合,确定待显示画面,可以提高处理效率。The display method for the object to be displayed provided by the embodiment of the present disclosure can improve processing efficiency by performing hierarchical fusion by using a preset number of levels as the current target level to determine the picture to be displayed.
在本公开的一些可选的实施例中,步骤520的基于各第一贴图、各第一贴图的层级、各渲染结果和各第二贴图的层级,确定待显示画面,包括:In some optional embodiments of the present disclosure, step 520 of determining the picture to be displayed based on each first map, the level of each first map, each rendering result and the level of each second map includes:
基于待显示画面的各像素的采样坐标,按照层级顺序对所有层级的子图像进行融合,获得待显示画面;子图像包括如下一种:第一贴图,渲染结果。Based on the sampling coordinates of each pixel of the picture to be displayed, the sub-images of all levels are merged in a hierarchical order to obtain the picture to be displayed; the sub-image includes the following: a first map, a rendering result.
在本公开的一些可选的实施例中,基于待显示画面的各像素的采样坐标可以从各层级的子图像获得对应的像素值,按照层级顺序将所有层级的像素值进行融合。融合时可以将子图像按照待显示画面进行裁剪,以使融合结果能够适配待显示画面。In some optional embodiments of the present disclosure, corresponding pixel values can be obtained from sub-images of each level based on the sampling coordinates of each pixel of the screen to be displayed, and the pixel values of all levels are fused in the order of the levels. During fusion, the sub-images can be cropped according to the screen to be displayed so that the fusion result can adapt to the screen to be displayed.
本公开实施例提供的用于待显示对象的显示方法,可以基于待显示画面的各像素的采样坐标,按照层级顺序对所有层级的子图像进行融合,对待显示画面的各个像素遍历执行一遍即可获得待显示画面各个像素的像素值,提高融合效率。The display method for the object to be displayed provided by the embodiment of the present disclosure can fuse sub-images of all levels in a hierarchical order based on the sampling coordinates of each pixel of the picture to be displayed. The pixel value of each pixel of the picture to be displayed can be obtained by traversing each pixel of the picture to be displayed once, thereby improving the fusion efficiency.
在本公开的一些可选的实施例中,步骤50的基于至少一个第一贴图、至少一个第二贴图、终端设备的第二位姿,确定待显示画面,包括:In some optional embodiments of the present disclosure, step 50 of determining the picture to be displayed based on at least one first map, at least one second map, and the second posture of the terminal device includes:
对于待显示画面的任一像素,从各第一贴图中确定该像素对应的颜色值,以及基于第二位姿在各第二贴图中确定该像素对应的颜色值,将该像素的采样坐标在每个层级对应的颜色值按照层级顺序进行融合,得到该像素的融合颜色值。For any pixel of the image to be displayed, the color value corresponding to the pixel is determined from each first map, and the color value corresponding to the pixel is determined in each second map based on the second posture, and the color values corresponding to the sampling coordinates of the pixel at each level are fused in the order of the levels to obtain the fused color value of the pixel.
在本公开的一些可选的实施例中,可以在得到目标待显示对象对应的至少一个第一贴图,以及得到其他待显示对象对应的至少一个第二贴图后,对于待显示画面的任一像素,可以直接从各第一贴图中确定该像素对应的颜色值,以及基于第二位姿在各第二贴图中确定该像素对应的颜色值,基于此,可以得到该像素在每个层级上对应的采样坐标。将该像素在每个层级对应的采样坐标处的颜色值按照层级顺序进行融合,得到该像素的颜色值。基于此,可以获得待显示画面的所有像素的颜色值,从而确定出待显示画面。由于省去了基于第二位姿对各第二贴图分别渲染得到渲染结果的步骤,而且对待显示画面的各个像素遍历执行一遍即可得到待显示画面各个像素的像素值,可以进一步提高处理效率。In some optional embodiments of the present disclosure, after obtaining at least one first map corresponding to the target object to be displayed and at least one second map corresponding to other objects to be displayed, for any pixel of the screen to be displayed, the color value corresponding to the pixel can be directly determined from each first map, and the color value corresponding to the pixel can be determined in each second map based on the second posture, based on which the sampling coordinates corresponding to the pixel at each level can be obtained. The color values of the sampling coordinates corresponding to the pixel at each level are fused according to the hierarchical order to obtain the color value of the pixel. Based on this, the color values of all pixels of the screen to be displayed can be obtained, thereby determining the screen to be displayed. Since the step of rendering each second map based on the second posture to obtain the rendering result is omitted, and the pixel values of each pixel of the screen to be displayed can be obtained by traversing each pixel of the screen to be displayed once, the processing efficiency can be further improved.
在本公开的一些可选的实施例中,颜色值可以包括R(RED,红色)、G(GREEN,绿色)、B(BLUE,蓝色)三个颜色通道的取值和透明度。In some optional embodiments of the present disclosure, the color value may include the values and transparency of three color channels: R (RED), G (GREEN), and B (BLUE).
本公开上述各实施例或可选示例可以单独实施,也可以在不冲突的情况下以任意组合方式结合实施,具体可以根据实际需求设置,本公开不做限定。The above-mentioned embodiments or optional examples of the present disclosure may be implemented separately, or may be implemented in combination in any manner without conflict. The specific configuration may be based on actual needs, and the present disclosure does not limit this.
本公开实施例提供的任一种用于待显示对象的显示方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:终端设备和服务器等。或者,本公开实施例提供的任一种用于待显示对象的显示方法可以由处理器执行,如处理器通过调用存储器存储的相应指令来执行本公开实施例提及的任一种用于待显示对象的显示方法。下文不再赘述。Any display method for an object to be displayed provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any display method for an object to be displayed provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any display method for an object to be displayed mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.
示例性装置Exemplary Devices
图6是本公开一示例性实施例提供的用于待显示对象的显示装置的结构示意图。该实施例的装置可用于实现本公开相应的用于待显示对象的显示方法实施例,如图6所示的装置包括:第一处理模块710、第二处理模块720、第三处理模块730和第四处理模块740。Fig. 6 is a schematic diagram of the structure of a display device for displaying an object provided by an exemplary embodiment of the present disclosure. The device of this embodiment can be used to implement the corresponding display method embodiment for displaying an object to be displayed of the present disclosure. The device shown in Fig. 6 includes: a first processing module 710, a second processing module 720, a third processing module 730 and a fourth processing module 740.
第一处理模块710,用于确定属于目标显示方式的至少一个目标待显示对象。The first processing module 710 is used to determine at least one target to-be-displayed object belonging to a target display mode.
第二处理模块720,用于对各目标待显示对象按照预设属性进行渲染,得到各目标待显示对象对应的至少一个第一贴图;其中,预设属性包括在终端设备的显示区域中的位置、角度、尺寸、缩放中的至少一项。The second processing module 720 is used to render each target object to be displayed according to preset attributes to obtain at least one first map corresponding to each target object to be displayed; wherein the preset attributes include at least one of the position, angle, size, and scaling in the display area of the terminal device.
第三处理模块730,用于基于终端设备的第一位姿和除目标待显示对象之外的其他待显示对象分别对应的属性信息,对其他待显示对象进行渲染,得到其他待显示对象对应的至少一个第二贴图;其中,属性信息包括其他待显示对象在基准坐标系下的位置、角度、缩放。The third processing module 730 is used to render other objects to be displayed based on the first posture of the terminal device and the attribute information corresponding to other objects to be displayed except the target object to be displayed, and obtain at least one second map corresponding to other objects to be displayed; wherein the attribute information includes the position, angle, and scale of other objects to be displayed in the reference coordinate system.
第四处理模块740,用于基于至少一个第一贴图、至少一个第二贴图、终端设备的第二位姿,确定待显示画面;其中,第二位姿的获得时刻晚于第一位姿的获得时刻。The fourth processing module 740 is used to determine the picture to be displayed based on at least one first map, at least one second map, and a second posture of the terminal device; wherein the second posture is obtained later than the first posture.
图7是本公开另一示例性实施例提供的用于待显示对象的显示装置的结构示意图。FIG. 7 is a schematic structural diagram of a display device for displaying an object provided by another exemplary embodiment of the present disclosure.
在本公开的一些可选的实施例中,本公开的装置还包括:In some optional embodiments of the present disclosure, the apparatus of the present disclosure further includes:
第五处理模块810,用于按照预设规则确定各第一贴图的层级和各第二贴图的层级。The fifth processing module 810 is used to determine the level of each first map and the level of each second map according to a preset rule.
在本公开的一些可选的实施例中,第四处理模块740具体用于:In some optional embodiments of the present disclosure, the fourth processing module 740 is specifically used to:
基于至少一个第二贴图和终端设备的第二位姿,确定各第二贴图分别对应的渲染结果;基于各第一贴图、各第一贴图的层级、各渲染结果和各第二贴图的层级,确定待显示画面。Based on at least one second map and a second posture of the terminal device, rendering results corresponding to each second map are determined; based on each first map, the level of each first map, each rendering result and the level of each second map, a picture to be displayed is determined.
在本公开的一些可选的实施例中,第四处理模块740具体用于:In some optional embodiments of the present disclosure, the fourth processing module 740 is specifically used to:
对于任一第二贴图,基于第二位姿,确定待显示画面的各像素在该第二贴图中的采样坐标;基于各像素在第二贴图中的采样坐标,确定该第二贴图对应的渲染结果。For any second map, based on the second posture, the sampling coordinates of each pixel of the to-be-displayed picture in the second map are determined; based on the sampling coordinates of each pixel in the second map, the rendering result corresponding to the second map is determined.
在本公开的一些可选的实施例中,第四处理模块740具体用于:In some optional embodiments of the present disclosure, the fourth processing module 740 is specifically used to:
从处理状态为未处理的层级中,确定深度最大的层级作为当前层级;其中,所有层级的初始处理状态为未处理。基于待显示画面的各像素的采样坐标,将当前层级的子图像与在前渲染结果进行融合,获得当前渲染结果;其中,在前渲染结果初始为空;子图像包括如下一种:第一贴图,渲染结果。将当前层级的处理状态更新为已处理,并使用当前渲染结果更新在前渲染结果。重复执行从处理状态为未处理的层级中,确定深度最大的层级作为当前层级的步骤。响应于所有层级的处理状态均为已处理,将在前渲染结果作为待显示画面。From the levels whose processing status is unprocessed, determine the level with the greatest depth as the current level; wherein the initial processing status of all levels is unprocessed. Based on the sampling coordinates of each pixel of the screen to be displayed, fuse the sub-image of the current level with the previous rendering result to obtain the current rendering result; wherein the previous rendering result is initially empty; the sub-image includes the following: a first map, a rendering result. Update the processing status of the current level to processed, and use the current rendering result to update the previous rendering result. Repeat the step of determining the level with the greatest depth as the current level from the levels whose processing status is unprocessed. In response to the processing status of all levels being processed, use the previous rendering result as the screen to be displayed.
在本公开的一些可选的实施例中,第四处理模块740具体用于:In some optional embodiments of the present disclosure, the fourth processing module 740 is specifically used to:
从处理状态为未处理的层级中,确定深度最大的预设数量的层级作为当前目标层级;其中,所有层级的初始处理状态为未处理。基于待显示画面的各像素的采样坐标,将各个当前目标层级的子图像按照层级顺序与在前渲染结果进行融合,获得当前渲染结果;其中,在前渲染结果初始为空;子图像包括如下一种:第一贴图,渲染结果。将各个当前目标层级的处理状态更新为已处理,并使用当前渲染结果更新在前渲染结果。重复执行从处理状态为未处理的层级中,确定深度最大的预设数量的层级作为当前目标层级的步骤。响应于所有层级的处理状态均为已处理,将在前渲染结果作为待显示画面。From the levels whose processing status is unprocessed, determine the levels with the largest preset number of depths as the current target levels; wherein the initial processing status of all levels is unprocessed. Based on the sampling coordinates of each pixel of the picture to be displayed, merge the sub-images of each current target level with the previous rendering result in the order of the levels to obtain the current rendering result; wherein the previous rendering result is initially empty; the sub-images include the following: a first map, a rendering result. Update the processing status of each current target level to processed, and use the current rendering result to update the previous rendering result. Repeat the step of determining the levels with the largest preset number of depths as the current target level from the levels whose processing status is unprocessed. In response to the processing status of all levels being processed, use the previous rendering result as the picture to be displayed.
在本公开的一些可选的实施例中,第四处理模块740具体用于:In some optional embodiments of the present disclosure, the fourth processing module 740 is specifically used to:
基于待显示画面的各像素的采样坐标,按照层级顺序对所有层级的子图像进行融合,获得待显示画面;子图像包括如下一种:第一贴图,渲染结果。Based on the sampling coordinates of each pixel of the picture to be displayed, the sub-images of all levels are merged in a hierarchical order to obtain the picture to be displayed; the sub-image includes the following: a first map, a rendering result.
在本公开的一些可选的实施例中,第四处理模块740具体用于:In some optional embodiments of the present disclosure, the fourth processing module 740 is specifically used to:
对于待显示画面的任一像素,从各第一贴图中确定该像素对应的颜色值,以及基于第二位姿在各第二贴图中确定该像素对应的颜色值,将该像素的采样坐标在每个层级对应的颜色值按照层级顺序进行融合,得到该像素的融合颜色值。For any pixel of the image to be displayed, the color value corresponding to the pixel is determined from each first map, and the color value corresponding to the pixel is determined in each second map based on the second posture, and the color values corresponding to the sampling coordinates of the pixel at each level are fused in the order of the levels to obtain the fused color value of the pixel.
在本公开的一些可选的实施例中,第五处理模块810具体用于:In some optional embodiments of the present disclosure, the fifth processing module 810 is specifically used to:
将各第一贴图配置为预设层级。基于全部第二贴图在终端设备处于目标位姿下的位置关系,确定各第二贴图的层级。其中,目标位姿包括如下任一项:第一位姿,第二位姿。位置关系包括如下至少一项:深度,遮挡。Each first map is configured as a preset level. Based on the positional relationship of all second maps in the terminal device in the target posture, the level of each second map is determined. The target posture includes any of the following: the first posture, the second posture. The positional relationship includes at least one of the following: depth, occlusion.
在本公开的一些可选的实施例中,第一处理模块710具体用于:In some optional embodiments of the present disclosure, the first processing module 710 is specifically used to:
根据各待显示对象分别对应的类型及预设类型集合,确定属于目标显示方式的至少一个目标待显示对象;其中,预设类型集合中存储有属于目标显示方式的类型。At least one target object to be displayed belonging to the target display mode is determined according to the types corresponding to the objects to be displayed and the preset type set; wherein the preset type set stores the types belonging to the target display mode.
在本公开的一些可选的实施例中,第一处理模块710具体用于:In some optional embodiments of the present disclosure, the first processing module 710 is specifically used to:
响应于任一待显示对象携带有目标显示方式标识,确定该待显示对象属于目标显示方式。In response to any to-be-displayed object carrying a target display mode identifier, it is determined that the to-be-displayed object belongs to the target display mode.
需要说明的是,本公开实施例的用于待显示对象的显示装置的具体实施方式与本公开实施例的用于待显示对象的显示方法的具体实施方式类似,具体参见用于待显示对象的显示方法部分,为了减少冗余,在此不作赘述。It should be noted that the specific implementation of the display device for the object to be displayed in the embodiment of the present disclosure is similar to the specific implementation of the display method for the object to be displayed in the embodiment of the present disclosure. Please refer to the part of the display method for the object to be displayed for details. In order to reduce redundancy, it will not be repeated here.
示例性电子设备Exemplary Electronic Devices
本公开实施例还提供了一种电子设备,包括:处理器,用于存储处理器可执行指令的存储器。An embodiment of the present disclosure further provides an electronic device, including: a processor, and a memory for storing instructions executable by the processor.
处理器,用于从存储器中读取可执行指令并执行可执行指令,以实现本公开上述任一实施例所述的用于待显示对象的显示方法。The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the display method for the object to be displayed described in any of the above embodiments of the present disclosure.
示例性头戴显示设备Exemplary head mounted display device
本公开实施例还提供了一种头戴显示设备,包括:处理器,用于存储处理器可执行指令的存储器。The embodiment of the present disclosure also provides a head mounted display device, comprising: a processor, and a memory for storing instructions executable by the processor.
处理器,用于从存储器中读取可执行指令并执行可执行指令,以实现本公开上述任一实施例所述的用于待显示对象的显示方法。The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the display method for the object to be displayed described in any of the above embodiments of the present disclosure.
图8是本公开电子设备一个应用实施例的结构示意图。头戴显示设备的结构可参见该电子设备的结构。本实施例中,该电子设备包括一个或多个处理器100和存储器200。Fig. 8 is a schematic diagram of the structure of an application embodiment of the electronic device disclosed in the present invention. The structure of the head mounted display device can refer to the structure of the electronic device. In this embodiment, the electronic device includes one or more processors 100 and a memory 200.
处理器100可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元,并且可以控制电子设备中的其他组件以执行期望的功能。The processor 100 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
存储器200可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器100可以运行所述程序指令,以实现上文所述的本公开的各个实施例的方法以及/或者其他期望的功能。在所述计算机可读存储介质中还可以存储诸如输入信号、信号分量、噪声分量等各种内容。The memory 200 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and/or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 100 may run the program instructions to implement the methods of the various embodiments of the present disclosure described above and/or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
在一个示例中,电子设备还可以包括:输入装置300和输出装置400,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。In one example, the electronic device may further include: an input device 300 and an output device 400 , and these components are interconnected via a bus system and/or other forms of connection mechanisms (not shown).
例如,该输入装置300可以是上述的麦克风或麦克风阵列,用于捕捉声源的输入信号。For example, the input device 300 may be the microphone or microphone array mentioned above, used to capture the input signal of the sound source.
此外,该输入装置300还可以包括例如键盘、鼠标等等。In addition, the input device 300 may also include, for example, a keyboard, a mouse, and the like.
该输出装置400可以向外部输出各种信息,包括确定出的距离信息、方向信息等。该输出装置400可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出设备等等。The output device 400 can output various information to the outside, including determined distance information, direction information, etc. The output device 400 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
当然,为了简化,图8中仅示出了该电子设备中与本公开有关的组件中的一些,省略了诸如总线、输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备还可以包括任何其他适当的组件。Of course, for simplicity, only some of the components related to the present disclosure in the electronic device are shown in FIG8 , and components such as a bus, an input/output interface, etc. are omitted. In addition, the electronic device may further include any other appropriate components according to specific application scenarios.
示例性计算机程序产品和计算机可读存储介质Exemplary computer program products and computer-readable storage media
除了上述方法和设备以外,本公开的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本公开各种实施例的方法中的步骤。In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
此外,本公开的实施例还可以是计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本公开各种实施例的方法中的步骤。In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
以上结合具体实施例描述了本公开的基本原理,但是,需要指出的是,在本公开中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本公开的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本公开为必须采用上述具体的细节来实现。The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, rather than limitation, and the above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似的部分相互参见即可。对于系统实施例而言,由于其与方法实施例基本对应,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
本公开中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and/or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
可能以许多方式来实现本公开的方法和装置。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本公开的方法和装置。用于所述方法的步骤的上述顺序仅是为了进行说明,本公开的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本公开实施为记录在记录介质中的程序,这些程序包括用于实现根据本公开的方法的机器可读指令。因而,本公开还覆盖存储用于执行根据本公开的方法的程序的记录介质。The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
还需要指出的是,在本公开的装置、设备和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本公开的等效方案。It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and/or recombined. Such decomposition and/or recombination should be regarded as equivalent solutions of the present disclosure.
提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本公开。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本公开的范围。因此,本公开不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本公开的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims (15)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310324193.5A CN118485754A (en) | 2023-03-29 | 2023-03-29 | Display method, device, electronic device and medium for objects to be displayed |
PCT/CN2024/084524 WO2024199386A1 (en) | 2023-03-29 | 2024-03-28 | Method for displaying object to be displayed, electronic device, and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310324193.5A CN118485754A (en) | 2023-03-29 | 2023-03-29 | Display method, device, electronic device and medium for objects to be displayed |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118485754A true CN118485754A (en) | 2024-08-13 |
Family
ID=92192595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310324193.5A Pending CN118485754A (en) | 2023-03-29 | 2023-03-29 | Display method, device, electronic device and medium for objects to be displayed |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118485754A (en) |
WO (1) | WO2024199386A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119047014B (en) * | 2024-10-17 | 2025-02-18 | 北京探索者软件股份有限公司 | Display method, device, storage medium and electronic device for structural drawings |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109242943B (en) * | 2018-08-21 | 2023-03-21 | 腾讯科技(深圳)有限公司 | Image rendering method and device, image processing equipment and storage medium |
CN109727305B (en) * | 2019-01-02 | 2024-01-12 | 京东方科技集团股份有限公司 | Virtual reality system picture processing method, device and storage medium |
CN111627116B (en) * | 2020-05-29 | 2024-02-27 | 联想(北京)有限公司 | Image rendering control method and device and server |
CN115100342A (en) * | 2022-07-25 | 2022-09-23 | 闪耀现实(无锡)科技有限公司 | Method, apparatus, electronic device and storage medium for rendering images |
-
2023
- 2023-03-29 CN CN202310324193.5A patent/CN118485754A/en active Pending
-
2024
- 2024-03-28 WO PCT/CN2024/084524 patent/WO2024199386A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024199386A1 (en) | 2024-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9268410B2 (en) | Image processing device, image processing method, and program | |
WO2021204296A1 (en) | Remote display method for three-dimensional model, first terminal, electronic device and storage medium | |
US20160217616A1 (en) | Method and System for Providing Virtual Display of a Physical Environment | |
US11044398B2 (en) | Panoramic light field capture, processing, and display | |
CN112328353B (en) | Display method and device of sub-application player, electronic equipment and storage medium | |
US10049490B2 (en) | Generating virtual shadows for displayable elements | |
CN110796664B (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
CN114175630A (en) | Methods, systems, and media for rendering immersive video content using a point of gaze grid | |
CN116301530A (en) | Virtual scene processing method, device, electronic equipment and storage medium | |
WO2024199386A1 (en) | Method for displaying object to be displayed, electronic device, and medium | |
KR20230034351A (en) | Face image display method, device, electronic device and storage medium | |
WO2023246302A9 (en) | Subtitle display method and apparatus, device and medium | |
WO2024199393A1 (en) | Method for displaying object to be displayed, apparatus, electronic device, and medium | |
CN114900621B (en) | Special effect video determining method and device, electronic equipment and storage medium | |
CN117692582A (en) | Video processing method and electronic equipment | |
KR102345295B1 (en) | Edge server remote rendering system and method for web service | |
US11471773B2 (en) | Occlusion in mobile client rendered augmented reality environments | |
CN118365835A (en) | Method, device, electronic equipment and storage medium for rendering image | |
CN118537455A (en) | Animation editing method, playing method, medium, electronic device, and program product | |
CN117237532A (en) | Panorama display method and device for points outside model, equipment and medium | |
JP5862223B2 (en) | Parts catalog creation device, program, and parts catalog creation method | |
CN111563956A (en) | A three-dimensional display method, device, equipment and medium of a two-dimensional picture | |
CN114449221B (en) | Polling method, device, equipment and storage medium for panoramic monitoring images | |
CN114610217B (en) | Method and device for displaying view and head-mounted display equipment | |
US20250139887A1 (en) | Techniques for defining relationships between objects within a user interface |
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 |