Method for displaying object to be displayed, apparatus, electronic device, and medium

By obtaining and rendering the original texture and background texture of the object to be displayed, and performing time distortion based on the pose of the terminal device, the problem of reduced clarity of the object to be displayed in VR is solved, and efficient high-definition display is achieved.

WO2024199393A1PCT designated stage expired Publication Date: 2024-10-03BEIJING UNICORN TECH CO LTD

Patent Information

Application Number
PCT/CN2024/084549
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-03-28
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In virtual reality (VR) applications, time warping technology causes the rendering clarity of objects to be displayed to decrease, especially the loss of information due to the sampling of images during the two rendering processes, which affects the high definition of the display.

Method used

By obtaining the original texture and attribute information of the target object to be displayed, and rendering the background texture based on the pose of the terminal device and the attribute information of other objects to be displayed, combined with the second pose for time distortion, directly distorting the original map to reduce one Render samples to improve clarity.

Benefits of technology

It effectively improves the clarity of objects to be displayed, reduces rendering delays, ensures high-definition display effects, and takes into account processing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084549_03102024_PF_FP_ABST
    Figure CN2024084549_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for displaying an object to be displayed, an apparatus, an electronic device, and a medium. The specific implementation solution comprises: obtaining an original sticker and first attribute information which respectively correspond to at least one target object to be displayed; on the basis of a first orientation of a terminal device and second attribute information respectively corresponding to objects to be displayed other than the target object to be displayed, rendering the other objects to be displayed, to obtain at least one background sticker; and on the basis of the original sticker and first attribute information respectively corresponding to each target object to be displayed, and the at least one background sticker corresponding to the other objects to be displayed, and a second orientation of the terminal device, determining a picture to be displayed; wherein the second orientation is acquired after the first orientation.
Need to check novelty before this filing date? Find Prior Art

Description

Display method, device, electronic device and medium for displaying objects

[0001] This disclosure claims priority to a Chinese patent application filed with the Patent Office of China on March 29, 2023, with application number CN202310324216.2 and invention name “Display method, device, electronic device and medium for objects to be displayed”, the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0002] The present disclosure relates to the field of display technology, and in particular to a method, device, electronic device, and medium for displaying an object to be displayed. Background Art

[0003] In virtual reality (VR) applications, time warping is a technique used to reduce latency between motion and image. Typically, after an object in the virtual world is rendered, a second rendering is performed based on the object's latest pose to create the image to be displayed.

[0004] Summary of the Invention

[0005] 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. For target objects to be displayed with higher clarity requirements among the objects to be displayed, the image to be displayed can be determined based on the original image and the images of other objects to be displayed after one rendering and the posture of the terminal device, thereby reducing the impact of the two renderings on the clarity of the rendered image and effectively improving the clarity of the object.

[0006] In a first aspect, an embodiment of the present disclosure provides a display method for objects to be displayed, comprising: obtaining an original map and first attribute information respectively corresponding to at least one target object to be displayed; rendering the other objects to be displayed based on a first posture of the terminal device and second attribute information respectively corresponding to other objects to be displayed except the target object to be displayed, to obtain at least one background map; the first attribute information and the second attribute information both include position, angle, and scale; determining a picture to be displayed based on the original map and first attribute information respectively corresponding to each target object to be displayed, at least one background map corresponding to other objects to be displayed, and the second posture of the terminal device; wherein the second posture is obtained later than the first posture.

[0007] In a second aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores a computer program for executing the display method for an object to be displayed provided by any of the above embodiments of the present disclosure.

[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: a processor; a memory for storing processor executable instructions; a processor for reading executable instructions from the memory and executing the instructions to implement the display method for an object to be displayed provided in any of the above embodiments of the present disclosure.

[0009] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other purposes, features, and advantages of the present disclosure will become more apparent through a more detailed description of the embodiments of the present disclosure in conjunction with the accompanying drawings. The accompanying drawings are intended 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 are not intended to limit the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.

[0011] 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;

[0012] FIG2 is a flow chart of a method for displaying an object to be displayed provided by an exemplary embodiment of the present disclosure;

[0013] 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;

[0014] FIG4 is a flow chart of a method for displaying an object to be displayed provided by yet another exemplary embodiment of the present disclosure;

[0015] FIG5 is a flow chart of step 420 provided by an exemplary embodiment of the present disclosure;

[0016] FIG6 is a schematic diagram of cross-occlusion of textures provided by an exemplary embodiment of the present disclosure;

[0017] FIG7 is a schematic structural diagram of a display device for displaying an object provided by an exemplary embodiment of the present disclosure;

[0018] FIG8 is a schematic structural diagram of a display device for displaying an object provided by another exemplary embodiment of the present disclosure;

[0019] FIG9 is a schematic structural diagram of an application embodiment of the electronic device disclosed herein. DETAILED DESCRIPTION

[0020] 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 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 herein.

[0021] 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.

[0022] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, and do not represent any specific technical meanings, nor do they indicate a necessary logical order between them.

[0023] It should also be understood that in the embodiments of the present disclosure, “a plurality of” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.

[0024] In addition, the term "and / or" in this disclosure is merely a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this disclosure generally indicates that the related objects are in an "or" relationship.

[0025] 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 part of the specification.

[0026] 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-purpose or special-purpose 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 local or remote computing system storage media including storage devices.

[0027] The following describes the specific embodiments of the present disclosure in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure and are not intended to limit the present disclosure.

[0028] Figure 1 illustrates an exemplary system architecture applicable to embodiments of the present disclosure's method or apparatus for displaying an object. The system architecture may include a head-mounted display device 1, a network 2, and a server 3. Network 2 may provide a communication link between the head-mounted display device 1 and the server 3. Network 2 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0029] The head-mounted display device 1 can be an electronic device with image display capabilities, including but not limited to AR (Augmented Reality) smart glasses, VR (Virtual Reality) smart glasses, and the like. The head-mounted display device 1 can be an all-in-one device. An all-in-one head-mounted display device integrates the functionality of a computing unit, which provides processing power for the head-mounted display device. Various client applications installed on the head-mounted display device are actually installed on the computing unit. Alternatively, the head-mounted display device can be a split device, comprising a head-mounted display and a computing unit separate from the head-mounted display, with the head-mounted display's display screen used to display images processed by the computing unit. The computing unit in a split head-mounted display device can be a terminal device, such as a mobile phone, controller, adapter, PC, tablet, or in-vehicle computer. For ease of presentation, in the case where the execution subject is a head-mounted display device, the following description of the disclosed solution will use the all-in-one head-mounted display device as the execution subject, and the head-mounted display device 1 will be used in the figures. Those skilled in the art should understand that, for a split-type head-mounted display device, the execution entity is the computing unit.

[0030] The head-mounted display device 1 can provide various services, such as obtaining the original map and first attribute information corresponding to at least one target object to be displayed; rendering the other objects to be displayed based on the first posture of the terminal device and the second attribute information corresponding to the other objects to be displayed except the target object to be displayed to obtain at least one background map; the first attribute information and the second attribute information both include position, angle, and scale; determining the image to be displayed based on the original map and first attribute information corresponding to each target object to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device; wherein the second posture is obtained later than the first posture. The display method for the object to be displayed provided in the embodiment of the present disclosure is generally performed by the above-mentioned head-mounted display device 1, and accordingly, the display device for the object to be displayed is generally provided in the head-mounted display device 1, and the display screen can be located in the display device.

[0031] 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 obtains the original map and first attribute information corresponding to at least one target object to be displayed, it can render the other objects to be displayed based on the first posture of the terminal device and the second attribute information corresponding to the other objects to be displayed except the target object to be displayed, and obtain at least one background map, and then determine the picture to be displayed based on the original map and first attribute information corresponding to each target object to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device. Correspondingly, the display device for the object to be displayed can also be set in server 3.

[0032] 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.

[0033] Exemplary Methods

[0034] The present disclosure provides a method for displaying objects to be displayed on a head-mounted display device, wherein the objects to be displayed include a target object to be displayed and other objects to be displayed, wherein the other objects to be displayed include at least one of a background object to be displayed and a foreground object to be displayed. The method includes: obtaining an original texture and first attribute information of at least one target object to be displayed; rendering the other objects to be displayed based on a first pose of the head-mounted display device and second attribute information of the other objects to be displayed to obtain at least one background texture; determining a first rendering result corresponding to the target object to be displayed based on the second pose of the head-mounted display device, the original texture, and the first attribute information, wherein the second pose is obtained later than the first pose; determining a second rendering result corresponding to the at least one background texture based on the second pose and the at least one background texture; and determining a screen to be displayed based on the first rendering result and the second rendering result.

[0035] The present disclosure also provides another method for displaying objects to be displayed for a head-mounted display device, wherein the objects to be displayed include a target object to be displayed and other objects to be displayed, the target object to be displayed having a first clarity requirement, and the other objects to be displayed having a second clarity requirement, wherein the first clarity requirement is higher than the second clarity requirement. The method includes: obtaining an original texture and first attribute information of at least one target object to be displayed; rendering the other objects to be displayed based on a first posture of the head-mounted display device and the second attribute information of the other objects to be displayed to obtain at least one background texture; determining a first rendering result corresponding to the target object to be displayed based on the second posture of the head-mounted display device, the original texture, and the first attribute information, wherein the second posture is obtained later than the first posture; determining a second rendering result corresponding to at least one background texture based on the second posture and at least one background texture; and determining a screen to be displayed based on the first rendering result and the second rendering result.

[0036] In an optional example of the present disclosure, the image to be displayed may be determined based on the first rendering result, the level of the target object to be displayed, the second rendering result, and the level corresponding to the background map.

[0037] 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:

[0038] Step 20: Obtain the original texture and first attribute information corresponding to at least one target object to be displayed.

[0039] In some optional embodiments of the present disclosure, the target object to be displayed can be set according to the demand for display clarity. For example, the target object to be displayed can be at least one of the types (or categories) of objects such as documents, web pages, pictures, and videos. The original texture corresponding to the target object to be displayed can be the original texture data that has not been sampled for the first rendering (such as in the related art). Different types of target objects to be displayed may have different ways of obtaining their original textures. For example, for a document-type object, its original texture can be obtained through a text editor; for a web page-type object, its original texture can be obtained through a browser; for a video-type object, its original texture can be obtained through a video player; for a picture-type object, its original texture can be obtained through a picture viewer, and so on.

[0040] In some optional embodiments of the present disclosure, the first attribute information may be attribute information of the target object to be displayed in a reference coordinate system. 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 first attribute information may include the position, angle and scale of the target object to be displayed. The position can be expressed as the coordinates of the target object to be displayed in the reference coordinate system, the angle can be expressed as the posture or orientation of the target object to be displayed in the reference coordinate system, and the scale can represent the zoom factor of the original map of the target object to be displayed. The first attribute information may be pre-set and stored for the original map. The first 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 the target object to be displayed.

[0041] The execution subject of the display method for the object to be displayed (which can be a terminal device, for example, the head-mounted display device shown in Figure 1, a server, etc.) obtains the original map and first attribute information corresponding to at least one target object to be displayed.

[0042] Step 30: Based on the first posture of the terminal device and the second 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 background map.

[0043] In some optional embodiments of the present disclosure, the first attribute information and the second attribute information both include position, angle, and scale. Detailed information is provided above and will not be repeated here.

[0044] 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, or a tablet. The terminal device may be equipped with at least one of an IMU (Inertial Measurement Unit) and other sensors that can be used to measure the terminal device's speed, acceleration, angle, angular velocity, etc. The first pose may include at least one of position and posture. The first pose may be the pose of the terminal device obtained at the time when the content of each other object to be displayed is generated, or the real-time pose of the terminal device obtained when at least one background texture of the other object to be displayed is required, or the pose of the terminal device estimated at the next display time when the other object to be displayed is rendered. The specific pose can be set according to actual needs. The first pose can be obtained based on data collected by relevant sensors on the terminal device. For example, it can be based on at least one of real-time positioning and pose estimation using an IMU and SLAM (Simultaneous Localization and Mapping). For the estimated pose of the terminal device, the specific pose estimation method can be set according to actual needs, for example, a preset pose estimation algorithm can be used for estimation. The preset pose estimation algorithm can include any filtering algorithm, optimization algorithm, etc. The filtering algorithm may be, for example, a Euro filtering algorithm, a Kalman filtering algorithm, etc. The optimization algorithm may include a least squares optimization algorithm and other possible algorithms.

[0045] In some optional embodiments of the present disclosure, the other objects to be displayed may include all objects to be displayed except the target object to be displayed. The other objects to be displayed may include one or more objects to be displayed. For example, the other objects to be displayed may include at least one of background objects to be displayed and foreground objects to be displayed. The background objects to be displayed may include at least one object to be displayed, and the foreground objects to be displayed may also include at least one object to be displayed. The specific setting can be based on actual needs.

[0046] In some optional embodiments of the present disclosure, rendering other objects to be displayed based on the first posture of the terminal device and the second attribute information corresponding to the other objects to be displayed respectively 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., background map) of the other objects to be displayed that should be seen in the first posture. Depending on the specific type of the other objects to be displayed, at least one background map can be obtained according to actual needs. For example, for other objects to be displayed of the background type, at least one background map can be obtained; for other objects to be displayed of the foreground type, at least one foreground map can be obtained.

[0047] 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.

[0048] There is no restriction on the execution order of the above steps 20 and 30, and they can be executed sequentially or in parallel.

[0049] Step 40 : determining the image to be displayed based on the original texture and first attribute information corresponding to each target object to be displayed, at least one background texture corresponding to other objects to be displayed, and the second posture of the terminal device.

[0050] In some optional embodiments of the present disclosure, the second posture is obtained later than the first posture.

[0051] 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 posture of the terminal device estimated at the next display moment. For example, after completing the rendering of other objects to be displayed and obtaining at least one background map, it is necessary to further determine the picture 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. It can also be the posture of the terminal device at the next display moment estimated at the current moment, as the second posture, without specific limitation.

[0052] In some optional embodiments of the present disclosure, the second pose represents a time no earlier than the time the first pose represents a time. That is, the time at which the terminal device pose is represented by the second pose is no earlier than the time at which the terminal device pose is represented by the first pose. For example, the first pose corresponds to the current pose of the terminal device and represents the current moment, while the second pose corresponds to the estimated pose of the terminal device at the next display moment and represents the next future display moment.

[0053] In some optional embodiments of the present disclosure, the first posture is the real-time posture of the terminal device obtained when it is necessary to obtain at least one background map of other objects to be displayed. Correspondingly, the second posture is the real-time posture of the terminal device obtained when it is necessary to further determine the picture to be displayed after the rendering of other objects to be displayed is completed.

[0054] 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 background map of other objects to be displayed is required, and the second posture is the estimated posture of the terminal device at the next display moment.

[0055] In some optional embodiments of the present disclosure, the first pose is the first estimated pose of the terminal device at the next display moment estimated at any moment before rendering other objects to be displayed to obtain at least one background map, and the second pose is the 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.

[0056] 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 next display time arrives.

[0057] 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.

[0058] In some optional embodiments of the present disclosure, the principle for determining the second posture is similar to that of the first posture and will not be further described here. Since the second posture is obtained later than the first posture, the second posture will be relatively closer to the actual posture of the terminal device at the next display time, and the second posture may have some changes relative to the first posture, such as a relative change in at least one of position and posture.

[0059] To ensure low latency for other objects to be displayed, it is necessary to time warp at least one background texture of the other objects to be displayed based on the change in the second pose relative to the first pose, thereby adjusting its display position, angle, etc. in the displayed image. For the target object to be displayed, it is necessary to time warp the original texture of the target object to be displayed based on the relative pose relationship of the virtual camera observation pose in the second pose relative to the first attribute information of the target object to be displayed.

[0060] In related technologies, all objects to be displayed are rendered in a first pose to create a texture. This texture is then time-warped based on the change in the second pose relative to the first pose to create the image to be displayed. This effectively samples the objects to be displayed twice during the rendering and time-warping processes, resulting in a significant loss of clarity.

[0061] The display method for objects to be displayed of the embodiment of the present disclosure obtains the original texture and first attribute information of each target object to be displayed for the objects to be displayed (i.e., target objects to be displayed) that need to ensure high definition, instead of rendering the target object to be displayed according to the first pose to obtain the texture as in the related art. Based on the first attribute information of the target object to be displayed, the original texture of the target object to be displayed is directly time-warped according to the second pose, thereby reducing one sampling (in fact, the first sampling is omitted), retaining the image information carried in the target object to be displayed as much as possible, achieving high-definition display, and improving user experience. For objects to be displayed whose clarity expectations are not particularly high (i.e., other objects to be displayed), at least one background texture can be obtained by rendering according to the first pose, and then each background texture is time-warped according to the posture change of the second pose relative to the first pose, thereby ensuring the processing speed of the entire display solution while taking into account the clarity requirements of the target object to be displayed.

[0062] In some optional embodiments of the present disclosure, the first attribute information can be combined with the second pose to determine a correspondence between pixels of the to-be-displayed image and pixels of the original texture. Based on this correspondence, the original texture can be sampled to determine the pixel color values ​​of the target to-be-displayed object in the to-be-displayed image. The specific configuration can be determined based on actual needs and is not limited in this embodiment.

[0063] 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 rendering results of 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 original map of each target object to be displayed and the background maps of other objects to be displayed, and the pixel values ​​corresponding to each pixel are collected, and the pictures to be displayed are fused according to the levels, etc. 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 the background maps of other objects to be displayed, and can also include the categories of each target object to be displayed and other objects to be displayed, and so on.

[0064] 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.

[0065] The display method for objects to be displayed provided by the embodiment of the present disclosure can obtain the original map and first attribute information corresponding to the target object to be displayed for the target object to be displayed. For other objects to be displayed other than the target object to be displayed, the other objects to be displayed can be rendered based on the first posture of the terminal device and the second attribute information corresponding to the other objects to be displayed, and at least one background map can be obtained. Then, based on the original map and first attribute information corresponding to each target object to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device, the picture to be displayed is determined. Compared with other objects to be displayed, the number of sampling times of the target object to be displayed can be reduced, thereby improving the clarity of the target object to be displayed in the picture to be displayed, and ensuring a low display delay.

[0066] 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.

[0067] In some optional embodiments of the present disclosure, the method of the present disclosure further includes:

[0068] Step 510: Determine the level of each target object to be displayed and the level corresponding to each background map according to a preset rule.

[0069] In some optional embodiments of the present disclosure, the preset rules may include the positional relationship between each target object to be displayed and the background images 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. The positional relationship may include at least one of depth and occlusion. The categories may include target class and background class. The background class may be further divided into foreground class and background class.

[0070] In some optional embodiments of the present disclosure, the level of each target object to be displayed and the level corresponding to each background map can be represented in any manner, such as by numbers or other symbols, and can be specifically set according to actual needs.

[0071] In an optional example of the present disclosure, the hierarchy can be represented by a layer number, such as 1, 2, 3, ..., where a larger layer number indicates a higher level in the hierarchy. For example, the layer number of a background object to be displayed can be 0, and the layer number of a foreground object to be displayed can be the largest of all layers. The layer number of each target object to be displayed can be determined based on the occlusion relationship, for example, the layer of the occluded object to be displayed is lower than the layer of the corresponding occluding object to be displayed.

[0072] The display method for objects to be displayed provided by the embodiment 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 screen to be displayed by determining the hierarchy for each target object to be displayed and each background map.

[0073] In some optional embodiments of the present disclosure, step 510 of determining the level of each target object to be displayed and the level corresponding to each background map according to a preset rule includes:

[0074] According to the positional relationship between all target objects to be displayed and all background maps when the terminal device is in the target posture, the level of each target object to be displayed and the level corresponding to each background map are determined.

[0075] In some optional embodiments of the present disclosure, the target pose includes any one of the following: a first pose, a second pose, and the position relationship includes at least one of the following: depth, occlusion.

[0076] In some optional embodiments of the present disclosure, when a terminal device is in a target position, the target objects to be displayed and the background images are observed through the terminal device's camera or virtual camera. The observed content is affected by the positional relationship between the target objects to be displayed and the background images relative to the terminal device, such as distance, angle, etc. Distance can represent the depth of the object to be displayed, and angle can represent the viewing angle. Different viewing angles may result in different occlusion relationships between the objects to be displayed. For example, the background image in the background image should be the background image of the other objects to be displayed farthest from the terminal device. For the target object to be displayed, it will occlude other objects to be displayed in the background. For other objects to be displayed in the foreground, it will occlude other objects to be displayed in the background. It may also partially occlude the target object to be displayed, and so on. Based on this principle, the level of each target object to be displayed and the corresponding level of each background image can be determined based on the positional relationship between all target objects to be displayed and all background images when the terminal device is in the target position. The depth information of the background image relative to the camera or virtual camera in the target position can be determined based on the second attribute information of the other objects to be displayed corresponding to the background image and the target position. The depth information of each target object to be displayed at the target posture may be determined based on the first attribute information and the target posture of each target object to be displayed.

[0077] The display method for objects to be displayed provided by the embodiment of the present disclosure can determine the level of each target object to be displayed and the corresponding level of each background map based on the positional relationship between all target objects to be displayed and all background maps when the terminal device is in the target position, thereby facilitating subsequent level fusion and improving processing efficiency.

[0078] In some optional embodiments of the present disclosure, step 510 of determining the level of each target object to be displayed and the level corresponding to each background map according to a preset rule includes:

[0079] According to the categories of all target objects to be displayed and all background maps, and the positional relationship between all target objects to be displayed and all background maps when the terminal device is in a target posture, the level of each target object to be displayed and the corresponding level of each background map are determined; wherein the category includes the target class and the background class; the target posture includes any one of the following: the first posture, the second posture; the positional relationship includes at least one of the following: depth, occlusion.

[0080] In some optional embodiments of the present disclosure, background objects to be displayed can be rendered together to obtain a background map, and the layer of the background map is set to the top layer. For target objects to be displayed, the layer of each target object to be displayed can be determined according to its positional relationship in the target posture.

[0081] In some optional embodiments of the present disclosure, the background class may include a foreground class and a background class.

[0082] In some optional embodiments of the present disclosure, other background objects to be displayed may include background objects and foreground objects. To further ensure the accuracy and effectiveness of the determined image to be displayed, the hierarchy of each target object to be displayed and the hierarchy of each background texture can be determined based on the category of each target object to be displayed and each background texture, as well as the positional relationship between each target object to be displayed and each background texture in the target position. For example, for background textures of the background category, the corresponding hierarchy can be the bottom layer; for background textures of the foreground category, they can be arranged hierarchically according to their positional relationship with each target object to be displayed.

[0083] In actual applications, the hierarchy of each to-be-displayed object can also be adjusted based on the user's operations on the to-be-displayed object. For example, if a user drags a second to-be-displayed object that was originally obscured by a first to-be-displayed object until it obscures the first to-be-displayed object, the hierarchy of the first to-be-displayed object and the second to-be-displayed object can be adjusted, and the to-be-displayed screen can be determined based on the adjusted hierarchy, so that the to-be-displayed screen is displayed in a timely manner in response to the user's operations.

[0084] When determining the layers for the target objects to be displayed, the layers can be randomly assigned for target objects to be displayed and background textures that do not have an occlusion relationship. For example, if there are two target objects to be displayed, A and B, and one background texture, C, and if the terminal device is in the target posture and A, B, and C do not occlude each other, the depth relationship between A, B, and C can be ignored, and the corresponding layer numbers can be randomly assigned to 1, 2, and 3, without affecting the final display effect on the screen to be displayed.

[0085] The display method for objects to be displayed provided by the embodiment of the present disclosure determines the hierarchy of each target object to be displayed and the hierarchy of each background map by combining the categories of all target objects to be displayed and all background maps, as well as the positional relationship of all target objects to be displayed and all background maps when the terminal device is in the target posture. This can further improve the accuracy and effectiveness of the hierarchy and provide a more accurate hierarchy reference for the subsequent determination of the screen to be displayed.

[0086] In some optional embodiments of the present disclosure, when there is no mutual occlusion between the target object to be displayed and the background map to be displayed in the screen to be displayed, it is also possible not to perform the processing of determining the level, and the screen to be displayed is determined directly based on the original map and first attribute information corresponding to the target object to be displayed, the background map, and the second posture of the terminal device.

[0087] FIG4 is a schematic flow chart of a method for displaying an object to be displayed provided by another exemplary embodiment of the present disclosure.

[0088] In some optional embodiments of the present disclosure, step 40 of determining the image to be displayed based on the original image and first attribute information corresponding to each target object to be displayed, at least one background image corresponding to other objects to be displayed, and the second posture of the terminal device includes:

[0089] Step 410: Determine a first rendering result corresponding to each target object to be displayed based on the second posture, the original map corresponding to each target object to be displayed, and the first attribute information; and determine a second rendering result corresponding to each background map based on the second posture and at least one background map corresponding to other objects to be displayed.

[0090] In some optional embodiments of the present disclosure, for each target object to be displayed, the correspondence between each pixel of the to-be-displayed image and the pixels of the original map can be determined based on the second pose and the first attribute information. Based on this, pixel values ​​can be sampled from the original map to determine at least one of the pixel values ​​corresponding to each pixel of the to-be-displayed image and the sampling coordinates of each pixel of the to-be-displayed image in the original map as the first rendering result corresponding to the target object to be displayed. The determination of the correspondence between each pixel of the to-be-displayed image and the pixels of the original map can be referred to in the above content and will not be repeated here.

[0091] In some optional embodiments of the present disclosure, for each background texture, a correspondence between each pixel of the to-be-displayed image and the pixels of the background texture can be determined based on the second pose and the first pose. Based on this, a second rendering result corresponding to the background texture can be obtained. The principle for determining this correspondence is similar to that for the original texture described above and will not be further described here.

[0092] Step 420 : Determine the image to be displayed based on each first rendering result, the level of each target object to be displayed, each second rendering result, and the level corresponding to each background map.

[0093] In some optional embodiments of the present disclosure, the image to be displayed can be determined using any feasible method. For example, the rendering results of each level can be stacked layer by layer and cropped according to the image to be displayed to obtain the image to be displayed; another example is that the rendering results can be stacked and cropped according to a certain number of levels to determine the image to be displayed; or all levels can be stacked and cropped together to determine the image to be displayed. The specific configuration can be based on actual needs.

[0094] The display method for objects to be displayed provided by the embodiments of the present disclosure obtains rendering results corresponding to each level through hierarchical rendering, and then obtains the picture to be displayed by fusing the rendering results of each level, thereby achieving effective determination of the picture to be displayed and ensuring the clarity of the target object to be displayed in the picture to be displayed.

[0095] In some optional embodiments of the present disclosure, determining a first rendering result corresponding to each target object to be displayed based on the second pose, the original map corresponding to each target object to be displayed, and the first attribute information in step 410 includes:

[0096] For any target object to be displayed, based on the second posture, the original map of the target object to be displayed and the first attribute information, the sampling coordinates of each pixel of the screen to be displayed in the original map of the target object to be displayed are determined; based on the sampling coordinates of each pixel in the original map of the target object to be displayed, the first rendering result corresponding to the target object to be displayed is determined.

[0097] In some optional embodiments of the present disclosure, the sampling coordinates of each pixel of the to-be-displayed image in the original texture of the target to-be-displayed object may be determined based on a conversion relationship between the pixel coordinates of the to-be-displayed image and the pixel coordinates of the original texture. This conversion relationship may be determined by the second pose and the pose of the original texture represented by the first attribute information of the original texture.

[0098] The display method for an object to be displayed provided by an embodiment of the present disclosure determines the sampling coordinates of each pixel of the image to be displayed in the original map of the target object to be displayed based on the second posture, the original map of the target object to be displayed, and the first attribute information. Based on the sampling coordinates of each pixel in the original map of the target object to be displayed, the time-warped pixel value at the level of the target object to be displayed can be determined when the image to be displayed is subsequently determined, thereby providing an accurate first rendering result for determining the image to be displayed.

[0099] In some optional embodiments of the present disclosure, determining a second rendering result corresponding to each background map based on the second pose and at least one background map corresponding to other objects to be displayed in step 410 includes:

[0100] For any background map, based on the second posture, the sampling coordinates of each pixel of the to-be-displayed image in the background map are determined; based on the sampling coordinates of each pixel in the background map, the second rendering result corresponding to the background map is determined.

[0101] In some optional embodiments of the present disclosure, the determination of the second rendering result corresponding to the background texture is similar to the determination of the first rendering result of the target object to be displayed. Using the second pose and the first pose of the background texture, a correspondence is established between each pixel of the image to be displayed and the sampling coordinates of the background texture to determine the sampling coordinates of each pixel of the image to be displayed in the background texture. The specific principles will not be elaborated on here.

[0102] 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 screen to be displayed in the background map to determine the second rendering result corresponding to the background map, thereby realizing time distortion of the background map and cropping of the screen, and providing an accurate and effective second rendering result for determining the screen to be displayed.

[0103] In some optional embodiments of the present disclosure, FIG5 is a flowchart of step 420 provided by an exemplary embodiment of the present disclosure. Referring to FIG5 , step 420 determines the image to be displayed based on each first rendering result, the level of each target object to be displayed, each second rendering result, and the level corresponding to each background map, including:

[0104] Step 4210: Determine the layer with the greatest depth from the layers whose processing status is unprocessed as the current layer; wherein the initial processing status of all layers is unprocessed.

[0105] In some optional embodiments of the present disclosure, the processing status of all levels can be initialized to unprocessed, and the level with the greatest depth is the level that may be obscured by other levels. Therefore, starting from the level with the greatest depth, the level with the greatest depth is used as the current level.

[0106] Step 4220 , based on the sampling coordinates of each pixel of the image to be displayed, the rendering result of the current layer is merged with the previous rendering result to obtain the current rendering result; wherein the previous rendering result is initially empty.

[0107] In some optional embodiments of the present disclosure, the previous rendering result refers to the rendering result obtained by fusion during the processing of the previous level. The rendering result of the current level is fused with the previous rendering result, and the color value of each pixel of the rendering result 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 the three color channels R (RED), G (GREEN), and B (BLUE). For the fusion of color values, the color value of the rendering result of the current level may be masked with the color value of the previous rendering result with corresponding transparency according to the transparency. For example, when the transparency of the color value of a pixel at the current level is 1, then 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.

[0108] In some optional embodiments of the present disclosure, the first rendering result and the second rendering result may be cropped according to the image to be displayed, or may be uncropped rendering results. The uncropped rendering result may be cropped during fusion so that the current fused rendering result is a rendering result adapted to the image to be displayed.

[0109] Step 4230: Update the processing status of the current level to processed, and use the current rendering result to update the previous rendering result.

[0110] 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.

[0111] In some optional embodiments of the present disclosure, the previous rendering result may be stored in a rendering buffer. When the current rendering result is used to update the previous rendering result, the current rendering result may replace the previous rendering result in the rendering buffer.

[0112] Step 4240: Determine whether the processing status of all levels is processed.

[0113] In response to a negative judgment result, step 4210 is repeatedly executed: determining the level with the greatest depth as the current level from the levels whose processing status is unprocessed.

[0114] For the specific operation of this step, please refer to the above content and will not be repeated here.

[0115] In response to the processing status of all levels being processed, step 4250 is executed to use the previous rendering result as the picture to be displayed.

[0116] In some optional embodiments of the present disclosure, when the processing status of all levels is processed, it means that the fusion of the rendering results 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.

[0117] The display method for the object to be displayed provided by the embodiment of the present disclosure realizes the determination of the image to be displayed by fusing the images layer by layer in hierarchical order.

[0118] In some optional embodiments of the present disclosure, step 420 of determining the image to be displayed based on each first rendering result, the level of each target object to be displayed, each second rendering result, and the level corresponding to each background map includes:

[0119] 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 layers is unprocessed; based on the sampling coordinates of each pixel of the picture to be displayed, merge the rendering results 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; update the processing status of each current target layer to processed, and use the current rendering result to update the previous rendering result; repeat 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 layers being processed, use the previous rendering result as the picture to be displayed.

[0120] 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 the rendering results of each current target level, the process of fusing with the previous rendering results in hierarchical order can be layer-by-layer fusion or pixel-by-pixel fusion. Layer-by-layer fusion is similar to the aforementioned layer-by-layer fusion, and the current target level can be first fused in 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 refers to that for any pixel of the picture to be displayed, based on the sampling coordinates corresponding to the pixel in each current target level and the previous rendering result, the fused pixel value corresponding to the pixel is determined in 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.

[0121] 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.

[0122] In some optional embodiments of the present disclosure, step 420 of determining the image to be displayed based on each first rendering result, the level of each target object to be displayed, each second rendering result, and the level corresponding to each background map includes:

[0123] Based on the sampling coordinates of each pixel of the picture to be displayed, the rendering results of all levels are fused in the order of levels to obtain the picture to be displayed.

[0124] In some optional embodiments of the present disclosure, corresponding pixel values ​​can be obtained from the rendering results of each layer based on the sampling coordinates of each pixel of the image to be displayed, and the pixel values ​​of all layers can be fused in the order of the layers. During the fusion, the rendering results can be cropped according to the image to be displayed so that the fused result can adapt to the image to be displayed.

[0125] The display method for the object to be displayed provided by the embodiment of the present disclosure can fuse the rendering results of all levels in a hierarchical order based on the sampling coordinates of each pixel of the screen to be displayed. The pixel value of each pixel of the screen to be displayed can be obtained by traversing each pixel of the screen to be displayed once, thereby improving the fusion efficiency.

[0126] In some optional embodiments of the present disclosure, step 40 of determining the image to be displayed based on the original image and first attribute information corresponding to each target object to be displayed, at least one background image corresponding to other objects to be displayed, and the second posture of the terminal device includes:

[0127] For any pixel of the image to be displayed, the sampling coordinates corresponding to the pixel are confirmed at each level based on the second posture, and the color values ​​of the sampling coordinates corresponding to each level in the map corresponding to the level are fused in the order of the levels to obtain the color value of the corresponding pixel.

[0128] In some optional embodiments of the present disclosure, after obtaining at least one background map corresponding to other objects to be displayed, for any pixel of the screen to be displayed, the sampling coordinates corresponding to the pixel can be directly confirmed at each level based on the second posture, and the color values ​​of the sampling coordinates corresponding to the pixel at each level are fused in the order of the levels 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 rendering process for each level 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.

[0129] In some optional embodiments of the present disclosure, step 40 of determining the image to be displayed based on the original image and first attribute information corresponding to each target object to be displayed, at least one background image corresponding to other objects to be displayed, and the second posture of the terminal device includes:

[0130] For any pixel of the image to be displayed, the sampling coordinates corresponding to the pixel are confirmed on each map based on the second posture, and the color values ​​of the sampling coordinates corresponding to each map in the map are fused according to the depth order of each map under the second posture to obtain the color value of the corresponding pixel.

[0131] As shown in Figure 6, a single texture may have inconsistent depths at the same pose. If two textures intersect, some pixels in each texture may be obscured by the other. Because the color values ​​of the sampled coordinates in each texture are fused pixel by pixel according to the depth order at the second pose, the resulting display is more accurate when objects intersect and are obscured.

[0132] In some optional embodiments of the present disclosure, after obtaining each map, for any pixel of the image to be displayed, the sampling coordinates corresponding to the pixel can be directly determined on each map based on the second pose. The color values ​​of the pixel at the sampling coordinates corresponding to each map are then fused according to the depth order under the second pose to obtain the color value of the pixel. Based on this, the color values ​​of all pixels in the image to be displayed can be obtained, thereby determining the image to be displayed. In addition to saving rendering processes at each level and improving processing efficiency, it can also effectively solve the problem of cross-occlusion of maps, resulting in a more realistic and natural image to be displayed.

[0133] In some optional embodiments of the present disclosure, the color value may include the values ​​of three color channels R (RED), G (GREEN), and B (BLUE) and transparency.

[0134] In some optional embodiments of the present disclosure, step 420 of determining the image to be displayed based on each first rendering result, the level of each target object to be displayed, each second rendering result, and the level corresponding to each background map includes:

[0135] When the other objects to be displayed correspond to a background map and the layer corresponding to the background map is the top layer, if the second rendering result corresponding to the background map needs to be at least partially obscured by the target object to be displayed, the transparency of the pixels of the obscured part in the second rendering result is set to transparent; the rendering results of each layer are merged in order of the layers to obtain the picture to be displayed.

[0136] In some optional embodiments of the present disclosure, when other objects to be displayed correspond to a background map, such as a background map that includes both background and foreground, the level of the background map can be set to the top layer. During the application process, the target object to be displayed may be moved in front of other objects to be displayed corresponding to the background map due to factors such as user operations. In this case, the second rendering result corresponding to the background map needs to be at least partially obscured by the target object to be displayed. According to the occlusion relationship, the transparency of the obscured pixels in the second rendering result of the background map can be set to transparent, while the transparency of the pixels in the second rendering result that are not obscured or need to obscure the target object to be displayed is kept at the default value (the default value can be, for example, 1 to represent opacity, or 0.5, 0.9, etc. to represent incomplete transparency), so as to achieve the purpose of being obscured when the rendering results of each level are merged in hierarchical order, and obtain an accurate picture to be displayed.

[0137] The display method for objects to be displayed provided by the embodiments of the present disclosure can achieve the occlusion effect of the lower layer on the higher layer by setting the transparency of the pixels of the occluded part in the second rendering result of the top-level background map to transparent, thereby solving the display problem after the position relationship of the objects to be displayed in the application changes.

[0138] In some optional embodiments of the present disclosure, when other objects to be displayed correspond to a background map and the background map is placed on the top layer, step 40 of determining the image to be displayed based on the original map and the first attribute information corresponding to each target object to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device includes:

[0139] If at least a portion of the background image in the second posture needs to be obscured by the target object to be displayed, the transparency of the obscured pixels in the background image is set to transparent, wherein the target object to be displayed is determined by the corresponding original image and the first attribute information.

[0140] The maps are fused in order of their depths at the second pose to obtain a picture to be displayed.

[0141] In some optional embodiments of the present disclosure, for the case where other objects to be displayed correspond to a background map and the background map is placed on the top layer, by setting the transparency of the pixels in the background map that need to be blocked by the target object to be displayed to transparent (such as a transparency of 0), a similar windowing effect can be achieved in the background map. Although the background map is placed on the top layer, the visual effect of the target object to be displayed blocking the background map can be seen. Moreover, after obtaining each map, for any pixel of the picture to be displayed, the sampling coordinates corresponding to the pixel can be directly confirmed on each map based on the second posture, and the color value of the pixel at the sampling coordinate corresponding to each map can be fused according to the depth order under the second posture to obtain the color value of the pixel. In addition to improving processing efficiency, it can also solve the problem of cross-occlusion of maps, and the resulting picture to be displayed is more realistic and natural.

[0142] The above-mentioned embodiments of the present disclosure may be implemented individually or in any combination without conflict. The specific configuration may be based on actual needs and is not limited by the present disclosure.

[0143] Any of the methods for displaying an object to be displayed provided in the embodiments of the present disclosure can be executed by any appropriate device with data processing capabilities, including but not limited to a terminal device and a server. Alternatively, any of the methods for displaying an object to be displayed provided in the embodiments of the present disclosure can be executed by a processor, such as by invoking corresponding instructions stored in a memory to execute any of the methods for displaying an object to be displayed mentioned in the embodiments of the present disclosure. This will not be further described below.

[0144] Exemplary devices

[0145] FIG7 is a schematic diagram of a display device for displaying an object according to an exemplary embodiment of the present disclosure. The device of this embodiment can be used to implement the corresponding method embodiment of the present disclosure. The device shown in FIG7 includes: an acquisition module 600, a first processing module 700, and a second processing module 800.

[0146] The acquisition module 600 is configured to acquire an original texture and first attribute information corresponding to at least one target object to be displayed.

[0147] The first processing module 700 is used to render other objects to be displayed based on the first posture of the terminal device and the second attribute information corresponding to other objects to be displayed except the target object to be displayed, so as to obtain at least one background map; the first attribute information and the second attribute information both include position, angle, and scale.

[0148] The second processing module 800 is used to determine the image to be displayed based on the original map and first attribute information corresponding to each target object to be displayed, at least one background map corresponding to other objects to be displayed, and the second posture of the terminal device; wherein the second posture is obtained later than the first posture.

[0149] FIG8 is a schematic structural diagram of a display device for displaying an object provided by another exemplary embodiment of the present disclosure.

[0150] In some optional embodiments of the present disclosure, the apparatus of the present disclosure further includes: a third processing module 900, configured to determine the level of each target object to be displayed and the level corresponding to each background map according to a preset rule.

[0151] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0152] Based on the second posture, the original maps corresponding to each target object to be displayed, and the first attribute information, the first rendering result corresponding to each target object to be displayed is determined, and based on the second posture and at least one background map corresponding to other objects to be displayed, the second rendering result corresponding to each background map is determined; based on each first rendering result, the level of each target object to be displayed, each second rendering result, and the level corresponding to each background map, the screen to be displayed is determined.

[0153] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0154] For any target object to be displayed, based on the second posture, the original map of the target object to be displayed and the first attribute information, the sampling coordinates of each pixel of the screen to be displayed in the original map of the target object to be displayed are determined; based on the sampling coordinates of each pixel in the original map of the target object to be displayed, the first rendering result corresponding to the target object to be displayed is determined.

[0155] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0156] For any background map, based on the second posture, the sampling coordinates of each pixel of the to-be-displayed image in the background map are determined; based on the sampling coordinates of each pixel in the background map, the second rendering result corresponding to the background map is determined.

[0157] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0158] From the layers whose processing status is unprocessed, determine the layer with the largest depth as the current layer; wherein, the initial processing status of all layers is unprocessed; based on the sampling coordinates of each pixel of the picture to be displayed, merge the rendering result of the current layer with the previous rendering result to obtain the current rendering result; wherein, the previous rendering result is initially empty; update the processing status of the current layer to processed, and use the current rendering result to update the previous rendering result; repeat the step of determining the layer with the largest depth as the current layer from the layers whose processing status is unprocessed; in response to the processing status of all layers being processed, use the previous rendering result as the picture to be displayed.

[0159] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0160] 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 layers is unprocessed; based on the sampling coordinates of each pixel of the picture to be displayed, merge the rendering results 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; update the processing status of each current target layer to processed, and use the current rendering result to update the previous rendering result; repeat 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 layers being processed, use the previous rendering result as the picture to be displayed.

[0161] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0162] Based on the sampling coordinates of each pixel of the picture to be displayed, the rendering results of all levels are fused in the order of levels to obtain the picture to be displayed.

[0163] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0164] For any pixel of the image to be displayed, the sampling coordinates corresponding to the pixel are confirmed at each level based on the second posture, and the color values ​​of the sampling coordinates corresponding to each level in the map corresponding to the level are fused in the order of the levels to obtain the color value of the corresponding pixel.

[0165] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0166] For any pixel of the image to be displayed, the sampling coordinates corresponding to the pixel are confirmed on each map based on the second posture, and the color values ​​of the sampling coordinates corresponding to each map in the map are fused according to the depth order of each map under the second posture to obtain the color value of the corresponding pixel.

[0167] In some optional embodiments of the present disclosure, the third processing module 900 is specifically configured to:

[0168] According to the positional relationship between all target objects to be displayed and all background maps when the terminal device is in a target posture, the level of each target object to be displayed and the corresponding level of each background map are determined; wherein the target posture includes any one of the following: a first posture, a second posture; and the positional relationship includes at least one of the following: depth, occlusion.

[0169] In some optional embodiments of the present disclosure, the third processing module 900 is specifically configured to:

[0170] According to the categories of all target objects to be displayed and all background maps, and the positional relationship between all target objects to be displayed and all background maps when the terminal device is in a target posture, the level of each target object to be displayed and the corresponding level of each background map are determined; wherein the category includes the target class and the background class; the target posture includes any one of the following: the first posture, the second posture; the positional relationship includes at least one of the following: depth, occlusion.

[0171] In some optional embodiments of the present disclosure, the background class includes a foreground class and a background class.

[0172] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0173] When the other objects to be displayed correspond to a background map and the layer corresponding to the background map is the top layer, if the second rendering result corresponding to the background map is at least partially blocked by the target object to be displayed, the transparency of the pixels of the blocked part in the second rendering result is set to transparent; the rendering results of each layer are merged in order of the layers to obtain the picture to be displayed.

[0174] In some optional embodiments of the present disclosure, the second processing module 800 is specifically configured to:

[0175] When other objects to be displayed correspond to a background map and the background map is placed on the top layer, if at least part of the background map needs to be obscured by the target object to be displayed in the second posture, the transparency of the pixels of the obscured part of the background map is set to transparent; wherein the target object to be displayed is determined by the corresponding original map and the first attribute information; and each map is fused according to the depth order of each map in the second posture to obtain the image to be displayed.

[0176] It should be noted that the specific implementation of the display device for objects to be displayed in the embodiment of the present disclosure is similar to the specific implementation of the display method for objects to be displayed in the embodiment of the present disclosure. Please refer to the part of the display method for objects to be displayed for details. In order to reduce redundancy, it will not be repeated here.

[0177] Exemplary electronic devices

[0178] An embodiment of the present disclosure further provides an electronic device, including: a processor and a memory for storing instructions executable by the processor.

[0179] The processor is configured to read executable instructions from the memory and execute the instructions to implement the display method for the object to be displayed described in any of the above embodiments of the present disclosure.

[0180] Exemplary head-mounted display device

[0181] An embodiment of the present disclosure further provides a head-mounted display device, comprising: a processor and a memory for storing instructions executable by the processor.

[0182] The processor is configured to read executable instructions from the memory and execute the instructions to implement the display method for the object to be displayed described in any of the above embodiments of the present disclosure.

[0183] FIG9 is a schematic diagram of the structure of an application embodiment of the electronic device disclosed herein. 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.

[0184] 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.

[0185] 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, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, 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 11 may execute 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.

[0186] 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).

[0187] For example, the input device 300 may be the aforementioned microphone or microphone array, configured to capture input signals from a sound source.

[0188] In addition, the input device 300 may also include, for example, a keyboard, a mouse, and the like.

[0189] 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 its connected remote output device, etc.

[0190] Of course, for simplicity, FIG9 only shows some of the components of the electronic device related to the present disclosure, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may further include any other appropriate components depending on the specific application.

[0191] Exemplary computer program products and computer-readable storage media

[0192] 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, implement the steps of the method according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.

[0193] The computer program product may be written in any combination of one or more programming languages ​​to implement the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, and conventional procedural programming languages ​​such as C or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0194] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to execute the steps in the method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0195] 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, for example, include but is not limited to a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. 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 thereof.

[0196] The above description has been provided 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 a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A method for displaying an object to be displayed, include: Obtaining an original map and first attribute information respectively corresponding to at least one target object to be displayed; Based on the first posture of the terminal device and the second attribute information respectively corresponding to the other objects to be displayed except the target object to be displayed, the other objects to be displayed are rendered to obtain at least one background map; The first attribute information and the second attribute information both include position, angle, and scale; Based on the original map and the first attribute information corresponding to each of the target objects to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device, the picture to be displayed is determined; wherein the second posture is obtained later than the first posture.

2. The method according to claim 1, in, Also includes: The level of each target object to be displayed and the level corresponding to each background map are determined according to a preset rule.

3. The method according to claim 2, in, The determining of the picture to be displayed based on the original map and the first attribute information respectively corresponding to each of the target objects to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device includes: Determine a first rendering result corresponding to each of the target objects to be displayed based on the second posture, the original maps corresponding to each of the target objects to be displayed, and the first attribute information; and determine a second rendering result corresponding to each of the background maps based on the second posture and at least one background map corresponding to the other objects to be displayed; The picture to be displayed is determined based on each of the first rendering results, the level of each of the target objects to be displayed, each of the second rendering results and the level corresponding to each of the background maps.

4. The method according to claim 3, in, The determining, based on the second posture, the original maps and the first attribute information respectively corresponding to each of the target objects to be displayed, a first rendering result corresponding to each of the target objects to be displayed, comprises: For any of the target objects to be displayed, based on the second posture, the original texture of the target object to be displayed and the first attribute information, determining the sampling coordinates of each pixel of the picture to be displayed in the original texture of the target object to be displayed; Based on the sampling coordinates of each pixel in the original map of the target object to be displayed, a first rendering result corresponding to the target object to be displayed is determined.

5. The method according to claim 3, in, The determining, based on the second posture and at least one background map corresponding to the other objects to be displayed, a second rendering result corresponding to each background map includes: For any of the background maps, based on the second posture, determining the sampling coordinates of each pixel of the picture to be displayed in the background map; Based on the sampling coordinates of each pixel in the background map, a second rendering result corresponding to the background map is determined.

6. The method according to claim 3, in, The determining the picture to be displayed based on each of the first rendering results, the level of each of the target objects to be displayed, each of the second rendering results and the level corresponding to each of the background maps includes: From the layers whose processing status is unprocessed, determine the layer with the largest depth as the current layer; 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, the rendering result of the current level is merged with the previous rendering result to obtain the current rendering result; wherein the previous rendering result is initially empty; Update the processing status of the current layer to processed, and use the current rendering result to update the previous rendering result; Repeat the step of determining the layer with the largest depth from the layers in the unprocessed state as the current layer; In response to the processing status of all levels being processed, the previous rendering result is used as the picture to be displayed.

7. The method according to claim 3, in, The determining the picture to be displayed based on each of the first rendering results, the level of each of the target objects to be displayed, each of the second rendering results and the level corresponding to each of the background maps includes: From the layers whose processing status is unprocessed, determine the layers with the 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, the rendering results of each current target level are merged with the previous rendering results in the level order to obtain the current rendering result; wherein the previous rendering result is initially empty; Update the processing status of each current target layer to processed, and use the current rendering result to update the previous rendering result; Repeat the step of determining a preset number of levels with the largest depths from the levels in the unprocessed state as the current target levels; In response to the processing status of all levels being processed, the previous rendering result is used as the picture to be displayed.

8. The method according to claim 3, in, The determining the picture to be displayed based on each of the first rendering results, the level of each of the target objects to be displayed, each of the second rendering results and the level corresponding to each of the background maps includes: Based on the sampling coordinates of each pixel of the picture to be displayed, the rendering results of all levels are merged in a hierarchical order to obtain the picture to be displayed.

9. The method according to claim 2, in, The determining of the picture to be displayed based on the original map and the first attribute information respectively corresponding to each of the target objects to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device includes: For any pixel of the image to be displayed, the sampling coordinates corresponding to the pixel are respectively confirmed at each level based on the second posture, and the color values ​​of the sampling coordinates corresponding to each level in the map corresponding to the level are fused in the order of the levels to obtain the color value corresponding to the pixel.

10. The method according to claim 2, in, The step of determining the level of each target object to be displayed and the level corresponding to each background map according to a preset rule includes one of the following: Determine the level of each target object to be displayed and the level corresponding to each background map according to the positional relationship between all the target objects to be displayed and all the background maps when the terminal device is in a target posture; wherein the target posture includes any one of the following: the first posture, the second posture; the positional relationship includes at least one of the following: depth, occlusion; According to the categories of all the target objects to be displayed and all the background maps, and the positional relationship between all the target objects to be displayed and all the background maps when the terminal device is in a target posture, the level of each target object to be displayed and the level corresponding to each background map are determined; wherein the categories include target categories and background categories; the target posture includes any one of the following: the first posture, the second posture; the positional relationship includes at least one of the following: depth, occlusion.

11. The method according to claim 3, in, The determining the picture to be displayed based on each of the first rendering results, the level of each of the target objects to be displayed, each of the second rendering results and the level corresponding to each of the background maps includes: In a case where the other objects to be displayed correspond to a background map and the layer corresponding to the background map is the topmost layer, if at least part of the second rendering result corresponding to the background map needs to be blocked by the target object to be displayed, setting the transparency of the blocked part of the pixels in the second rendering result to transparent; The rendering results of each level are merged according to the level order to obtain the picture to be displayed.

12. The method according to claim 1, in, The determining of the picture to be displayed based on the original map and the first attribute information respectively corresponding to each of the target objects to be displayed, at least one background map corresponding to the other objects to be displayed, and the second posture of the terminal device includes at least one of the following: For any pixel of the image to be displayed, respectively confirm the sampling coordinates corresponding to the pixel on each map based on the second posture, and fuse the color values ​​of the sampling coordinates corresponding to each map in the map according to the depth order of each map in the second posture to obtain the color value corresponding to the pixel; In the case where the other objects to be displayed correspond to a background map and the background map is placed on the top layer, if at least part of the background map needs to be blocked by the target object to be displayed in the second posture, the transparency of the pixels of the blocked part in the background map is set to transparent; wherein the target object to be displayed is composed of the corresponding original map and the first attribute. Sexual information confirmed, The maps are merged according to the depth order of the maps in the second posture to obtain the picture to be displayed.

13. The method according to any one of claims 1 to 12, in, The obtaining of the original map and the first attribute information respectively corresponding to at least one target to-be-displayed object comprises one of the following: For the target to-be-displayed object of the document type, obtaining the original texture through a text editor; For a target to-be-displayed object of a web page type, obtaining the original texture through a browser; For a target to-be-displayed object of a video type, obtaining the original texture through a video player; For the target to-be-displayed object of picture type, the original texture is obtained through a picture viewer.

14. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the display method for an object to be displayed according to any one of claims 1 to 13.

15. An electronic device, the electronic device include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the display method for the object to be displayed as described in any one of claims 1-13 above.

Citation Information

Patent Citations

  • Method and device for displaying augmented reality (AR) scene

    CN114332429A

  • Method and device for rendering image, electronic equipment and storage medium

    CN115100342A

  • Image rendering method and apparatus

    WO2022095757A1

  • Late warping to minimize latency of moving objects

    WO2022246384A1

Cited By

  • VR rendering method and related device

    CN120198564A