Rendering method and device of near-to-eye display equipment, equipment and storage medium

By determining the rendering order based on the distance and priority of the layer in the near-eye display device, the problem of low rendering efficiency caused by complex depth buffer calculation is solved, and a more efficient rendering process is achieved.

CN119919555APending Publication Date: 2025-05-02ZHUHAI MOJIE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411913119.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

When rendering multi-images, the near-eye display device has a high complexity in depth buffer calculation, resulting in poor convenience in determining the rendering order, which in turn affects the rendering efficiency.

Method used

By obtaining the layer to be rendered, and determining the target rendering order based on at least one of distance, relative priority, and absolute priority relative to the near-eye display device, the target rendering order is then performed.

Benefits of technology

Improves the convenience of defining rendering order, reduces computational complexity, and improves rendering efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119919555A_ABST
    Figure CN119919555A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image rendering, and provides a rendering method and device of near-eye display equipment, equipment and a storage medium, and the method comprises the steps: obtaining a to-be-rendered layer of the near-eye display equipment; determining a target rendering sequence corresponding to the to-be-rendered layer according to at least one of the distance of the to-be-rendered layer relative to the near-eye display device, the relative priority of the to-be-rendered layer and the absolute priority of the to-be-rendered layer; and rendering the to-be-rendered layer according to the target rendering sequence, thereby improving the determination convenience of the rendering sequence of the layer by the near-eye display device, and improving the rendering efficiency of the layer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image rendering technology, and in particular to a rendering method, apparatus, device and storage medium for a near-eye display device. Background Art

[0002] The near-eye display device can render images. In the related art, when the near-eye display device needs to render multiple images, the depth information of each of the multiple images is generally determined through a depth buffer, so as to control the rendering order between the multiple images based on the depth information of each of the multiple images. However, due to the high calculation complexity of the depth buffer for the depth information of the image, it is easy to have a situation where the rendering order of the images is not convenient to determine, resulting in poor rendering efficiency of the images. Summary of the invention

[0003] The main purpose of the present application is to provide a rendering method, apparatus, device and storage medium for a near-eye display device, aiming to solve the technical problem of poor image rendering efficiency caused by the poor convenience in determining the rendering order of images.

[0004] In a first aspect, the present application provides a rendering method for a near-eye display device, the rendering method comprising:

[0005] Get the layer to be rendered of the near-eye display device;

[0006] Determining a target rendering order corresponding to the layers to be rendered according to at least one of a distance of the layers to be rendered relative to the near-eye display device, a relative priority of the layers to be rendered, and an absolute priority of the layers to be rendered;

[0007] Render the to-be-rendered layers according to the target rendering order.

[0008] In a second aspect, the present application provides a rendering device for a near-eye display device, the rendering device comprising:

[0009] A layer acquisition module, used to obtain the layer to be rendered of the near-eye display device;

[0010] an order determination module, configured to determine a target rendering order corresponding to the layers to be rendered according to at least one of a distance of the layers to be rendered relative to the near-eye display device, a relative priority of the layers to be rendered, and an absolute priority of the layers to be rendered;

[0011] A rendering module is used to render the to-be-rendered layers according to the target rendering order.

[0012] In a third aspect, the present application provides a near-eye display device, the near-eye display device comprising a memory and a processor;

[0013] The memory is used to store computer programs;

[0014] The processor is used to execute the computer program and implement the steps of the rendering method of the near-eye display device as described above when executing the computer program.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the rendering method of the near-eye display device as described above are implemented.

[0016] The present application provides a rendering method, apparatus, device and storage medium for a near-eye display device. The rendering method includes: obtaining a to-be-rendered layer of the near-eye display device; determining a target rendering order corresponding to the to-be-rendered layer according to at least one of a distance of the to-be-rendered layer relative to the near-eye display device, a relative priority of the to-be-rendered layer, and an absolute priority of the to-be-rendered layer; and rendering the to-be-rendered layer according to the target rendering order.

[0017] When the layer to be rendered is obtained, the near-eye display device can determine the target rendering order corresponding to the layer to be rendered based on at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered. The target rendering order can be used to render the layer to be rendered. Since the computational complexity required for the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered are all low, it is beneficial to improve the convenience of the near-eye display device in determining the target rendering order corresponding to the layer to be rendered. Accordingly, based on the improvement of the convenience of determining the target rendering order corresponding to the layer to be rendered, the near-eye display device does not need to spend more time determining the target rendering order corresponding to the layer to be rendered, thereby improving the rendering efficiency of the layer. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 It is a flowchart of a rendering method of a near-eye display device provided in an embodiment of the present application;

[0020] Figure 2is a flowchart of a rendering method for a near-eye display device according to an embodiment of the present application;

[0021] Figure 3 is a schematic block diagram of a rendering device of a near-eye display device provided in an embodiment of the present application;

[0022] Figure 4 It is a schematic block diagram of a near-eye display device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0025] Embodiments of the present application provide a rendering method, apparatus, device and storage medium for a near-eye display device. The rendering method of the near-eye display device can be applied to a near-eye display device. A near-eye display device may include virtual reality (VR) glasses, augmented reality (AR) glasses, mixed reality (MR) glasses, VR helmets, AR helmets, MR helmets, and the like, without limitation. The rendering method of the near-eye display device can also be applied to a server, which can be a separate server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0026] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0027] See also Figure 1 , Figure 1It is a flowchart of a rendering method for a near-eye display device provided in an embodiment of the present application. It should be noted that the rendering method for a near-eye display device provided in an embodiment of the present application can be used in a near-eye display device or in a server, and is not limited here.

[0028] like Figure 1 As shown, the rendering method of the near-eye display device includes steps S101 to S103.

[0029] S101: Obtain a layer to be rendered of a near-eye display device.

[0030] For example, the near-eye display device may obtain the layer to be rendered by obtaining the image to be rendered of the near-eye display device. The image to be rendered may include at least one layer to be rendered. When the image to be rendered is obtained, the near-eye display device may correspondingly obtain the layer to be rendered included in the image to be rendered. Of course, it is not limited to this, and the near-eye display device may also directly obtain the layer to be rendered, which is not limited here.

[0031] When the near-eye display device obtains the layer to be rendered, it can realize the display of different scenes by rendering the layer to be rendered. Different scenes may include at least one of different virtual scenes, different real scenes, different areas of the same virtual scene, and different areas of the same real scene. In the process of displaying different scenes, the near-eye display device can render the layer to be rendered to realize at least one of displaying different virtual scenes, displaying different areas of the same virtual scene, adding corresponding virtual effects to different real scenes, and adding corresponding virtual effects to different areas of the same real scene. The layer to be rendered can be pre-set or set by the user, which is not limited here.

[0032] For example, when rendering the layers to be rendered, the near-eye display device can focus on the synthesis and effect processing between different layers to be rendered. For example, the near-eye display device can render different layers to be rendered in a corresponding rendering order and rendering method to form a corresponding image to be rendered. When the image to be rendered is obtained, the near-eye display device can also render the image to be rendered. For example, the near-eye display device can process the pixels of the image to be rendered by rendering the image to be rendered, such as grayscale processing, inversion processing, Gaussian blur processing, etc., to change the visual effect of the image to be rendered. Of course, it is not limited to this and is not limited here.

[0033] In some embodiments, when the near-eye display device performs the near-eye display function, it is necessary to display the scene and / or realize the fusion between the layer to be rendered and the scene to enhance the user's near-eye display experience. Taking the near-eye display device including an AR device as an example, the AR device can render the layer to be rendered, and superimpose and display the corresponding virtual scene or virtual special effects in the real scene viewed by the user through the AR device to achieve the fusion of virtual and reality. Taking the near-eye display device including a VR device as an example, the VR device needs to provide the user with an immersive virtual scene. The VR device can simulate the natural phenomena such as light, shadow, reflection, and refraction of the layer to be rendered in the real scene by rendering the layer to be rendered, so as to display the corresponding natural phenomena in the virtual scene displayed by the VR device. Based on this, when the user views the virtual scene displayed by the VR device, the VR device provides the user with a viewing experience of the real scene, thereby enhancing the user's immersive experience of the virtual scene. Of course, it is not limited to this, and no limitation is made here.

[0034] In this way, when the to-be-rendered layer of the near-eye display device is obtained, the to-be-rendered layer can be provided for the subsequent near-eye display device to render the to-be-rendered layer.

[0035] In some embodiments, a preset layer of a near-eye display device is obtained; when the position information of the preset layer is within a preset viewing angle range corresponding to the near-eye display device, the preset image is determined to be a layer to be rendered of the near-eye display device.

[0036] Corresponding to different scenes, the near-eye display device may be provided with different preset layers. The preset layer may be determined according to at least one preset image. Each preset image may include at least one preset layer, which is not limited here. The near-eye display device needs to select the layer to be rendered corresponding to the currently displayed scene or the scene to be displayed from the preset layer in combination with the scene currently displayed by the near-eye display device or the scene to be displayed by the near-eye display device.

[0037] For example, the near-eye display device determines the layer to be rendered of the near-eye display device from the preset layers according to the position information of the preset layer and the preset viewing angle range corresponding to the near-eye display device. The preset viewing angle range corresponding to the near-eye display device can be determined according to the device posture of the near-eye display device. Since the near-eye display device can be worn on the user's head, the device posture of the near-eye display device can be changed in response to the change of the user's head posture. In the case where the user's head posture changes, the near-eye display device can determine that the user needs to view different areas or different scenes of the same scene, which is equivalent to the scene currently displayed by the near-eye display device or the scene that the near-eye display device needs to display will change. Based on this, the near-eye display device can determine the preset viewing angle range corresponding to the near-eye display device according to the changed device posture. Accordingly, the near-eye display device can determine whether the position information of each preset layer is within the preset viewing angle range corresponding to the near-eye display device. If there is a preset layer whose position information is within the preset viewing angle range corresponding to the near-eye display device, it can be determined that the layer to be rendered corresponding to the scene currently displayed by the near-eye display device includes the preset layer, and then the preset layer can be determined as the layer to be rendered.

[0038] Take the preset layers including layer 1 and layer 2, layer 1 corresponds to scene 1, and layer 2 corresponds to scene 2 as an example. In the process of changing the device posture of the near-eye display device, if the scene currently displayed by the near-eye display device or the scene to be displayed changes from scene 1 to scene 2, the near-eye display device can determine that the preset viewing angle range corresponding to the near-eye display device can correspond to scene 2. Correspondingly, the near-eye display device can determine whether the position information of each layer 1 and layer 2 is within the preset viewing angle range corresponding to the near-eye display device. In the case where layer 1 corresponds to scene 1, the near-eye display device can determine that the position information of layer 1 is not within the preset viewing angle range corresponding to the near-eye display device. In the case where layer 2 corresponds to scene 2, the near-eye display device can determine that the position information of image 2 is within the preset viewing angle range corresponding to the near-eye display device. Based on this, the near-eye display device can determine layer 1 as a non-rendering layer, and determine layer 2 as a rendering layer. Of course, it is not limited to this, and no limitation is made here.

[0039] In this way, the near-eye display device can determine whether the preset layer is the layer to be rendered of the near-eye display device based on the position information of the preset layer and the preset viewing angle range corresponding to the near-eye display device, which is conducive to improving the convenience of the near-eye display device in determining the layer to be rendered.

[0040] S102: Determine a target rendering order corresponding to the layers to be rendered according to at least one of a distance of the layers to be rendered relative to the near-eye display device, a relative priority of the layers to be rendered, and an absolute priority of the layers to be rendered.

[0041] When the near-eye display device obtains the layer to be rendered, it can determine at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered.

[0042] For example, the near-eye display device can calculate the distance of the layer to be rendered relative to the near-eye display device. The near-eye display device can determine the position information of the near-eye display device according to the device posture of the near-eye display device. Accordingly, the near-eye display device can obtain the position information of the layer to be rendered. The near-eye display device can substitute the position information of the near-eye display device and the position information of the layer to be rendered into a preset distance calculation formula, and then the distance of the layer to be rendered relative to the near-eye display device can be obtained. For example, the preset distance calculation formula can be expressed as:

[0043]

[0044] Where distance is used to indicate the distance of the layer to be rendered relative to the near-eye display device, x layer ,y layer and z layer Used to indicate the location information of the layer to be rendered, x observer ,y observer and z observer Used to indicate the location information of the near-eye display device.

[0045] Accordingly, the near-eye display device can determine the relative priority of the layer to be rendered and the absolute priority of the layer to be rendered. The relative priority can be used to indicate the priority order determined based on the relative importance and relative urgency of the layer to be rendered in the process of rendering the layer to be rendered. The relative priority is used to ensure that the near-eye display device can render the layer to be rendered in a timely manner. The absolute priority can be used to indicate the priority order of the layer to be rendered that cannot be changed or affected by other factors under all circumstances. Regardless of the load of the near-eye display device or the relative priority of other layers to be rendered, the absolute priority can be used to ensure that the layer to be rendered always has the right to render first. Among them, the absolute priority is more important in determining the rendering order of the layers to be rendered than the relative priority is in determining the rendering order of the layers to be rendered. In an exemplary embodiment, the layers to be rendered include layer 3 and layer 4 as an example. When the correlation between layer 3 and the scene currently displayed by the near-eye display device or the scene that the near-eye display device needs to display is lower than the correlation between layer 4 and the scene currently displayed by the near-eye display device or the scene that the near-eye display device needs to display, the near-eye display device can set a corresponding absolute priority for layer 4 and a corresponding relative priority for layer 3, so that the near-eye display device can render layer 4 first and then render layer 3. Of course, it is not limited to this and is not limited here. The relative priority of the layer to be rendered can be pre-set or set by the user, which is not limited here. The absolute priority of the layer to be rendered can be pre-set or set by the user, which is not limited here.

[0046] When determining at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered, the near-eye display device may determine the target rendering order corresponding to the layer to be rendered in combination with at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered.

[0047] In some embodiments, the rendering order between each layer to be rendered is sorted according to the distance of each layer to be rendered relative to the near-eye display device to obtain a first rendering order; when there are at least two layers to be rendered in each highlight to be rendered and their distances relative to the near-eye display device are the same, the first rendering order is adjusted according to the relative priority of each layer to be rendered with the same distance to obtain a second rendering order; according to the absolute priority of each layer to be rendered, one of the first rendering order and the second rendering order is adjusted to obtain a target rendering order corresponding to the layer to be rendered.

[0048] For example, the near-eye display device may perform a first sorting of the rendering order between the rendered images according to the distance of each to-be-rendered layer relative to the near-eye display device to obtain a first rendering order.

[0049] Take the example that the layers to be rendered include image a, image b, image c, and image d. The distance of image a relative to the near-eye display device is distance 1, the distance of image b relative to the near-eye display device is distance 2, the distance of image c relative to the near-eye display device is distance 3, and the distance of image d relative to the near-eye display device is distance 4. When distance 1 is less than distance 2, distance 2 is equal to distance 4, and distance 2 is less than distance 3, the near-eye display device can sort the rendering order between images a to d according to the first sorting strategy to obtain a first rendering order. When the first sorting strategy is used to indicate that the greater the distance of the layer to be rendered relative to the near-eye display device, the earlier the rendering order, the near-eye display device can determine that the first rendering order is that the rendering order of image c is before the rendering order of image b, the rendering order of image b is equal to the rendering order of image d, and the rendering order of image b is before the rendering order of image a. Accordingly, when the first sorting strategy is used to indicate that the smaller the distance of the layer to be rendered relative to the near-eye display device, the earlier the rendering order, the near-eye display device can determine the first rendering order as the rendering order of image a is before the rendering order of image b, the rendering order of image b is equal to the rendering order of image d, and the rendering order of image b is before the rendering order of image c. The first sorting strategy can be preset or set by the user, which is not limited here.

[0050] Since the near-eye display device can determine the first rendering order according to the distance of the layer to be rendered relative to the near-eye display device, it is helpful to improve the convenience of determining the first rendering order.

[0051] Since the distances of different layers to be rendered relative to the near-eye display device can be the same, when there are at least two layers to be rendered in each layer to be rendered that are at the same distance from the near-eye display device, the rendering order of the layers to be rendered with the same distance in the first rendering order is the same. Accordingly, if the near-eye display device renders the layers to be rendered with the same distance at the same time, then in the case of limited computing resources of the near-eye display device, as the number of layers to be rendered with the same distance increases, it is easy to have a situation where the rendering efficiency of the layers to be rendered with the same distance is poor. Based on this, the near-eye display device needs to determine the rendering order between the layers to be rendered with the same distance. For example, the near-eye display device can adjust the first rendering order in combination with the relative priorities of the layers to be rendered with the same distance to obtain the second rendering order.

[0052] Take the case where the layers to be rendered include images a to d as an example. When distance 2 is equal to distance 4, the rendering orders of images b and d indicated by the first rendering order are the same. Based on this, the near-eye display device can obtain the relative priorities of images b and d, and adjust the rendering order between images b and d in the first rendering order in combination with the second sorting strategy to obtain the second rendering order. In the case where the second sorting strategy is used to indicate that the higher the relative priority of the layer to be rendered, the earlier the rendering order, if the relative priority of image b is higher than the relative priority of image d, the near-eye display device can determine that the rendering order of image b in the second rendering order is before the rendering order of image d. If the relative priority of image b is lower than the relative priority of image d, the near-eye display device can determine that the rendering order of image b in the second rendering order is after the rendering order of image d. Accordingly, in the case where the second sorting strategy is used to indicate that the lower the relative priority of the layer to be rendered, the earlier the rendering order, if the relative priority of image b is lower than the relative priority of image d, the near-eye display device can determine that the rendering order of image b in the second rendering order is before the rendering order of image d. If the relative priority of image b is higher than the relative priority of image d, the near-eye display device may determine that the rendering order of image b in the second rendering order is later than the rendering order of image d. The second sorting strategy may be preset or set by the user, which is not limited here.

[0053] Based on the near-eye display device, the first rendering order can be adjusted according to the relative priorities of the layers to be rendered at the same distance to obtain the second rendering order, which is conducive to improving the convenience of adjusting the first rendering order and improving the convenience of determining the second rendering order.

[0054] Of course, it is not limited to this. For example, when the distances of different layers to be rendered relative to the near-eye display device are different, the near-eye display device does not need to obtain the relative priority of each layer to be rendered. Accordingly, the near-eye display device does not need to adjust the first rendering order. For another example, when the distances of different layers to be rendered relative to the near-eye display device are the same, the first rendering order, for example, indicates that the rendering order of each layer to be rendered is the same. Based on this, the near-eye display device can obtain the relative priority of each layer to be rendered, and adjust the first rendering order according to the relative priority of each layer to be rendered to obtain a second rendering order. This is not limited here.

[0055] Exemplarily, the importance of the absolute priority in determining the rendering order of the layers to be rendered may be greater than the importance of the distance of the layers to be rendered relative to the near-eye display device and the relative priority of the layers to be rendered in determining the rendering order of the layers to be rendered. Based on this, when determining at least one of the first rendering order and the second rendering order, the near-eye display device may also obtain the absolute priority of the layers to be rendered, so as to determine the rendering order of the layers to be rendered in combination with the absolute priority of the layers to be rendered.

[0056] For example, when determining the first rendering order, if the distances of each layer to be rendered relative to the near-eye display device are different, the near-eye display device can adjust the first rendering order according to the absolute priority of each layer to be rendered to obtain the target rendering order corresponding to the layer to be rendered.

[0057] In an exemplary embodiment, when the absolute priorities of the layers to be rendered are the same, or when the layers to be rendered are not set with absolute priorities, the near-eye display device may determine the first rendering order as the target rendering order.

[0058] In an exemplary embodiment, when the absolute priorities of the layers to be rendered are partially different or completely different, the near-eye display device can adjust the first rendering order according to the absolute priorities of the layers to be rendered to obtain the corresponding target rendering order.

[0059] For example, the layers to be rendered include image a, image b, image c, and image d, and the first rendering order indicates that the rendering order of image c is before the rendering order of image b, the rendering order of image b is before the rendering order of image d, and the rendering order of image d is before the rendering order of image a. The near-eye display device can adjust the first rendering order in combination with the absolute priorities of images a to d and the third sorting strategy to determine the target rendering order. For example, in the case where the third sorting strategy is used to indicate that the higher the absolute priority of the layer to be rendered, the earlier the rendering order, if the absolute priority of image a is higher than the absolute priority of image c, the absolute priority of image c is higher than the absolute priority of image b, and the absolute priority of image b is equal to the absolute priority of image d, or image b and image d are not set with absolute priorities, the near-eye display device can determine the target rendering order as the rendering order of image a is before the rendering order of image c, the rendering order of image c is before the rendering order of image b, and the rendering order of image b is before the rendering order of image d. For another example, when the third sorting strategy is used to indicate that the lower the absolute priority of the layer to be rendered, the earlier the rendering order, if the absolute priority of image b is equal to the absolute priority of image d, the absolute priority of image d is lower than the absolute priority of image c, and the absolute priority of image c is lower than the absolute priority of image a, or image b and image d are not set with absolute priorities, then the near-eye display device can determine the target rendering order as the rendering order of image b before the rendering order of image d, the rendering order of image d before the rendering order of image c, and the rendering order of image c before the rendering order of image a. The third sorting strategy can be preset or set by the user, which is not limited here.

[0060] Based on the near-eye display device, the first rendering order can be adjusted according to the absolute priority of the layer to be rendered to obtain the target rendering order, which is conducive to improving the convenience of adjusting the first rendering order and improving the convenience of determining the target rendering order, thereby helping to improve the rendering efficiency of the layer to be rendered.

[0061] For example, when determining the first rendering order, if there are layers to be rendered with the same distance among the layers to be rendered, the first rendering order can be adjusted according to the relative priorities of the layers to be rendered with the same distance to obtain the second rendering order. Accordingly, the near-eye display device can adjust the second rendering order according to the absolute priorities of the layers to be rendered to obtain the target rendering order corresponding to the layers to be rendered.

[0062] In an exemplary embodiment, when the absolute priorities of the layers to be rendered are the same or the layers to be rendered are not set with absolute priorities, the near-eye display device may determine the second rendering order as the target rendering order.

[0063] In an exemplary embodiment, when the absolute priorities of the layers to be rendered are partially different or completely different, the near-eye display device can adjust the second rendering order according to the absolute priorities of the layers to be rendered to obtain the corresponding target rendering order.

[0064] For example, the layers to be rendered include image a, image b, image c, and image d, and the second rendering order indicates that the rendering order of image b is before the rendering order of image d, the rendering order of image d is before the rendering order of image a, and the rendering order of image a is before the rendering order of image c. The near-eye display device can adjust the second rendering order in combination with the absolute priorities of images a to d and the third sorting strategy to determine the target rendering order. For example, in the case where the third sorting strategy is used to indicate that the higher the absolute priority of the layer to be rendered, the earlier the rendering order, if the absolute priority of image a is higher than the absolute priority of image b, the absolute priority of image b is higher than the absolute priority of image d, and the absolute priority of image d is equal to the absolute priority of image c, or image c is not set with an absolute priority, the near-eye display device can determine the target rendering order as the rendering order of image a is before the rendering order of image b, the rendering order of image b is before the rendering order of image d, and the rendering order of image d is before the rendering order of image c. For another example, when the third sorting strategy is used to indicate that the lower the absolute priority of the layer to be rendered, the earlier the rendering order, if the absolute priority of image d is lower than the absolute priority of image b, the absolute priority of image b is lower than the absolute priority of image a, and the absolute priority of image a is equal to the absolute priority of image c, or image c is not set with an absolute priority, then the near-eye display device can determine the target rendering order as the rendering order of image d before the rendering order of image b, the rendering order of image b before the rendering order of image a, and the rendering order of image a before the rendering order of image c. The third sorting strategy can be preset or set by the user, which is not limited here.

[0065] Based on the fact that the near-eye display device can adjust the second rendering order according to the absolute priority of the layer to be rendered to obtain the target rendering order, it is helpful to improve the convenience of adjusting the second rendering order and improving the convenience of determining the target rendering order.

[0066] In this way, when the near-eye display device obtains at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered, the near-eye display device can adopt different sorting strategies to flexibly determine the target rendering order corresponding to the layer to be rendered based on at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered, which is conducive to improving the convenience and flexibility of determining the target rendering order.

[0067] Exemplarily, based on considerations of the rendering performance of the layers to be rendered, the near-eye display device may determine a sorting strategy for the rendering order of the layers to be rendered, so that the rendering order of the layers to be rendered can be subsequently determined according to the corresponding sorting strategy, in combination with at least one of the distance of the layers to be rendered relative to the near-eye display device, the relative priority of the layers to be rendered, and the absolute priority of the layers to be rendered.

[0068] In some embodiments, a distance comparison result between each layer to be rendered relative to a near-eye display device is determined; based on the distance comparison result, a rendering order between each layer to be rendered is sorted to obtain a first rendering order; wherein, a layer to be rendered with a larger distance is sorted earlier in the first rendering order.

[0069] For example, when a user uses a near-eye display device to view a corresponding scene, he or she may first pay attention to the whole scene, and then gradually pay attention to the part of the scene. In order to adapt to the user's viewing rules of the scene, when the near-eye display device determines the rendering order of the to-be-rendered layer in the first rendering order according to the distance of the to-be-rendered layer relative to the near-eye display device, the rendering order between the layers to be rendered may be sorted according to the strategy that the greater the distance of the to-be-rendered layer relative to the near-eye display device, the earlier the rendering order. Based on this, in the process of determining the first rendering order according to the distance of the to-be-rendered layer relative to the near-eye display device, the near-eye display device may determine the distance size comparison result between the distances of each to-be-rendered layer relative to the near-eye display device according to the distances of each to-be-rendered layer relative to the near-eye display device. In the case of determining the distance size comparison result, the rendering order between the layers to be rendered may be sorted according to the distance size comparison result. For example, when it is determined that one of the layers to be rendered has the largest distance relative to the near-eye display device according to the distance size comparison result, it may be determined that the layer to be rendered has the first order in the first rendering order. For another example, when it is determined according to the distance comparison result that another layer to be rendered has the shortest distance relative to the near-eye display device, it can be determined that the layer to be rendered is ranked last in the first rendering sequence. Similarly, the near-eye display device can determine that the layer to be rendered with a larger distance relative to the near-eye display device is ranked earlier in the first rendering sequence.

[0070] In this way, when the near-eye display device determines the first rendering order based on the distance of each layer to be rendered relative to the near-eye display device, the first rendering order can be adapted to the user's viewing pattern of the scene, which is beneficial to improving the user's experience of using the near-eye display device.

[0071] In some embodiments, a relative priority comparison result between the layers to be rendered with the same distance is determined based on the relative priorities of each of the layers to be rendered with the same distance; based on the relative priority comparison result, the rendering order between the layers to be rendered with the same distance in the first rendering order is adjusted to obtain a second rendering order; wherein, among the layers to be rendered with the same distance, the layer to be rendered with a higher relative priority is ranked higher in the second rendering order.

[0072] For example, when a user uses a near-eye display device to view a corresponding scene, the user's viewing rules for the scene also include that the user will give priority to viewing the objects that he or she is concerned about in the scene. The objects in the scene may correspond to the layer to be rendered. For example, the near-eye display device may render the layer to be rendered, add corresponding virtual effects to the corresponding objects in the scene, or display the corresponding objects to display the scene, and so on, without limitation. Based on this, the user's attention to the corresponding objects in the scene may be associated with the relative priority of the layer to be rendered. The higher the relative priority of the layer to be rendered, the higher the user's attention to the object corresponding to the layer to be rendered in the scene.

[0073] In order to adapt to the user's viewing rules of the scene, when the near-eye display device determines the first rendering order based on the distance of the layer to be rendered relative to the near-eye display device, if there are layers to be rendered with the same distance among the layers to be rendered, the near-eye display device can adjust the first rendering order in combination with the relative priorities of the layers to be rendered with the same distance to obtain the second rendering order. For example, when the near-eye display device adjusts the order of each layer to be rendered with the same distance in the first rendering order to determine the second rendering order, the rendering order between the layers to be rendered with the same distance can be sorted according to the strategy that the higher the relative priority of the layer to be rendered, the earlier the rendering order. Based on this, the near-eye display device can determine the relative priority comparison result between the layers to be rendered with the same distance according to the relative priorities of the layers to be rendered with the same distance. When the relative priority comparison result between the layers to be rendered with the same distance is determined, the rendering order of the layers to be rendered with the same distance in the first rendering order can be adjusted according to the relative priority comparison result. For example, when it is determined according to the relative priority comparison result that the relative priority of one of the layers to be rendered is greater than the relative priority of another layer to be rendered, the first rendering order can be adjusted to adjust the rendering order of one of the layers to be rendered to be before the rendering order of the other layer to be rendered, so as to obtain a second rendering order.

[0074] In this way, the near-eye display device adjusts the first rendering order according to the relative priorities of the layers to be rendered at the same distance to obtain the second rendering order. The second rendering order can be adapted to the user's viewing rules of the scene, which is beneficial to improving the user's experience of the near-eye display device.

[0075] In some embodiments, an absolute priority comparison result between the layers to be rendered is determined based on the absolute priority of each layer to be rendered; based on the absolute priority comparison result, one of the first rendering order and the second rendering order is adjusted to obtain a target rendering order corresponding to the layers to be rendered; wherein, the higher the absolute priority of the layer to be rendered, the higher the ranking of the layer to be rendered in the target rendering order.

[0076] For example, when a user uses a near-eye display device to view a corresponding scene, since some objects in the scene may be closely related to the display completeness of the scene, the near-eye display device needs to give priority to displaying objects that are closely related to the display completeness of the scene so that the user can view the entire scene. Since the objects in the scene may correspond to the layers to be rendered, the degree of influence of the corresponding objects in the scene on the display completeness of the scene may be associated with the absolute priority of the layers to be rendered. The higher the absolute priority of the layers to be rendered, the greater the influence of the objects corresponding to the layers to be rendered in the scene on the display completeness of the scene.

[0077] In order to adapt to the user's viewing rules of the scene, such as the user needs to view the whole scene first, the near-eye display device determines the first rendering order based on the distance of the layer to be rendered relative to the near-eye display device, or determines the second rendering order in combination with the distance of the layer to be rendered relative to the near-eye display device and the relative priorities of the layers to be rendered at the same distance. The near-eye display device can adjust one of the first rendering order and the second rendering order in combination with the absolute priority of each layer to be rendered to obtain the target rendering order corresponding to the layer to be rendered. For example, in the process of adjusting one of the first rendering order and the second rendering order to determine the target rendering order, the near-eye display device can sort the rendering order between the layers to be rendered according to the strategy that the higher the absolute priority of the layer to be rendered, the earlier the rendering order. Based on this, the near-eye display device can determine the absolute priority comparison result between the layers to be rendered according to the absolute priority of each layer to be rendered. In the case of determining the absolute priority comparison result between the layers to be rendered, one of the first rendering order and the second rendering order can be adjusted according to the absolute priority comparison result. For example, when it is determined that one of the layers to be rendered has the highest absolute priority according to the absolute priority comparison result, it can be determined that the layer to be rendered is ranked first in the target rendering order. For another example, when it is determined that another layer to be rendered has the lowest absolute priority according to the absolute priority comparison result, it can be determined that the layer to be rendered is ranked last in the target rendering order. By analogy, the near-eye display device can determine that the layer to be rendered with a higher absolute priority is ranked first in the target rendering order.

[0078] In this way, the near-eye display device adjusts one of the first rendering order and the second rendering order according to the absolute priority of each layer to be rendered, and obtains the target rendering order corresponding to the layer to be rendered. The target rendering order can be adapted to the user's viewing rules of the scene, which is beneficial to improving the user experience of the near-eye display device.

[0079] S103: Render the layers to be rendered according to the target rendering order.

[0080] When the target rendering order is determined, the near-eye display device can render the layers to be rendered according to the target rendering order. For example, the near-eye display device can render the layers to be rendered in sequence according to the target rendering order. The near-eye display device can also render a preset number of layers to be rendered in parallel according to the target rendering order. The preset number can be pre-set or set by the user, which is not limited here.

[0081] In this way, when rendering the rendering layers according to the target rendering order, the rendering order of the rendering layers of the near-eye display device can be adapted to the user's viewing rules of the scene, which is beneficial to improving the display effect of the scene by the near-eye display device.

[0082] Exemplarily, when the near-eye display device determines the target rendering order corresponding to the layer to be rendered, the near-eye display device may also adjust the target rendering order according to the user's rendering order adjustment operation on the target rendering order. For example, when the near-eye display device determines the target rendering order, the target rendering order may be displayed. For example, the near-eye display device may display the target rendering order in response to the user's display instruction for the target rendering order. Accordingly, the user may adjust the target rendering order by performing corresponding rendering order adjustment operations on the currently displayed target rendering order. The rendering order adjustment operation may be determined based on at least one of the user's touch information, button information, user gesture information, voice information, and other operation information of the near-eye display device, and is not limited here.

[0083] In some implementations, in response to the detected rendering order adjustment operation, the target rendering order is adjusted to obtain an adjusted target rendering order.

[0084] When the near-eye display device detects a rendering order adjustment operation, it can adjust the target rendering order according to the instruction of the rendering order adjustment operation to obtain an adjusted target rendering order.

[0085] For example, the layers to be rendered include images a to d, and the target rendering order is that the rendering order of image d is before the rendering order of image b, the rendering order of image b is before the rendering order of image a, and the rendering order of image a is before the rendering order of image c. In the case where the rendering order adjustment operation indicates that the rendering order of image c is adjusted to be before the rendering order of image d, the near-eye display device can determine that the adjusted target rendering order is that the rendering order of image c is adjusted to be before the rendering order of image d, the rendering order of image d is before the rendering order of image b, and the rendering order of image b is before the rendering order of image a. Of course, it is not limited to this, and no limitation is made here.

[0086] For example, the layers to be rendered are rendered according to the adjusted target rendering order.

[0087] For example, when the adjusted target rendering order is that the rendering order of image c is adjusted to be before the rendering order of image d, the rendering order of image d is before the rendering order of image b, and the rendering order of image b is before the rendering order of image a, the near-eye display device may render image c, image d, image b, and image a in sequence. Of course, this is not limited to this and is not limited here.

[0088] In this way, the near-eye display device can adjust the target rendering order in response to the detected rendering order adjustment operation when the target rendering order is determined, which is conducive to improving the convenience of adjusting the target rendering order.

[0089] In an exemplary embodiment, Figure 2 As shown, the process involved in the rendering method of the near-eye display device may include steps S201 to S205.

[0090] S201, rendering initialization.

[0091] The near-eye display device can prepare for the subsequent rendering of the layer to be rendered by performing rendering initialization. For example, during the rendering initialization process, the near-eye display device can determine the rendering requirements and rendering parameters for the layer to be rendered, determine the renderer and / or application programming interface (Application Programming Interface, API) required to render the image to be rendered, initialize the renderer and related rendering resources, configure the rendering environment, etc., without limitation here. The rendering requirements may include determining the rendering type corresponding to the layer to be rendered. Rendering types include, for example, hierarchical rendering, dictionary rendering, dot density rendering, etc., without limitation here. Rendering parameters can be used to determine the visual effect after rendering the image to be rendered. Rendering parameters include, for example, color parameters, brightness parameters, contrast parameters, etc., without limitation here.

[0092] S202: Obtain a layer to be rendered.

[0093] In the process of acquiring the layer to be rendered, the near-eye display device can acquire image information of the layer to be rendered, such as the position information of the layer to be rendered, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered. The position information of the layer to be rendered can be used to determine the distance of the layer to be rendered relative to the near-eye display device in combination with the position information of the near-eye display device.

[0094] S203: Determine the target rendering order corresponding to the layers to be rendered.

[0095] For example, the near-eye display device can determine the target rendering order corresponding to the layers to be rendered by combining at least one of the distance of each layer to be rendered relative to the near-eye display device, the relative priority of each layer to be rendered, and the absolute priority of each layer to be rendered, while determining the distance of the layer to be rendered relative to the near-eye display device, the relative priority of each layer to be rendered, and the absolute priority of each layer to be rendered.

[0096] S204, rendering the layer to be rendered.

[0097] For example, the near-eye display device can render the layers to be rendered according to the target rendering order.

[0098] S205: Dynamically update the target rendering order corresponding to the layers to be rendered.

[0099] For example, during the rendering process of the layer to be rendered, such as before rendering the layer to be rendered, when rendering the layer to be rendered, and after rendering the layer to be rendered, the user can perform a corresponding rendering order adjustment operation on the near-eye display device according to their own needs, and the near-eye display device can adjust the target rendering order in response to the detected rendering order adjustment operation to obtain the adjusted target rendering order to dynamically update the target rendering order corresponding to the layer to be rendered. Accordingly, after dynamically updating the target rendering order, the layer to be rendered can be rendered according to the adjusted target rendering order.

[0100] The rendering method of the near-eye display device provided in the above embodiment includes: obtaining the to-be-rendered layer of the near-eye display device; determining the target rendering order corresponding to the to-be-rendered layer according to at least one of the distance of the to-be-rendered layer relative to the near-eye display device, the relative priority of the to-be-rendered layer, and the absolute priority of the to-be-rendered layer; and rendering the to-be-rendered layer according to the target rendering order.

[0101] When the layer to be rendered is obtained, the near-eye display device can determine the target rendering order corresponding to the layer to be rendered according to at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered. The target rendering order can be used to render the layer to be rendered. Since the computational complexity required for the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered are all low, it is beneficial to improve the convenience of the near-eye display device in determining the target rendering order corresponding to the layer to be rendered. Based on the improvement of the convenience of determining the target rendering order corresponding to the layer to be rendered, the near-eye display device does not need to spend more time to determine the target rendering order corresponding to the layer to be rendered, thereby improving the rendering efficiency of the layer to be rendered. Accordingly, the near-eye display device can adopt different strategies, combining at least one of the distance of the layer to be rendered relative to the near-eye display device, the relative priority of the layer to be rendered, and the absolute priority of the layer to be rendered, to determine the target rendering order corresponding to the layer to be rendered, which is beneficial to improve the flexibility of determining the target rendering order corresponding to the layer to be rendered. Based on the improvement of flexibility in determining the target rendering order corresponding to the rendering layer, the rendering process of the near-eye display device for the rendering layer can be more adapted to the user's viewing needs for the rendering layer, thereby improving the user's viewing experience of the near-eye display device.

[0102] See also Figure 3 , Figure 3 It is a schematic block diagram of a rendering device of a near-eye display device provided in an embodiment of the present application. The rendering device of the near-eye display device can be configured in a near-eye display device or a server to execute the aforementioned rendering method of the near-eye display device. The near-eye display device may include VR glasses, AR glasses, MR glasses, VR helmets, AR helmets, MR helmets, and the like, without limitation. The server may be a separate server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms.

[0103] like Figure 3 As shown, the rendering device of the near-eye display device includes a layer acquisition module 110 , an order determination module 120 and a rendering module 130 .

[0104] A layer acquisition module 110, used to acquire a layer to be rendered of a near-eye display device;

[0105] An order determination module 120, configured to determine a target rendering order corresponding to the layers to be rendered according to at least one of a distance of the layers to be rendered relative to the near-eye display device, a relative priority of the layers to be rendered, and an absolute priority of the layers to be rendered;

[0106] The rendering module 130 is used to render the to-be-rendered layers according to the target rendering order.

[0107] Exemplarily, the sequence determination module 120 includes a first sequence determination submodule, a second sequence determination submodule, and a third sequence determination submodule.

[0108] The first order determination submodule is used to sort the rendering order between the layers to be rendered according to the distance of each layer to be rendered relative to the near-eye display device to obtain a first rendering order.

[0109] The second order determination submodule is used to adjust the first rendering order according to the relative priority of each of the layers to be rendered with the same distance to obtain a second rendering order when there are at least two layers to be rendered among the layers to be rendered and their respective distances relative to the near-eye display device are the same.

[0110] The third order determination submodule is used to adjust one of the first rendering order and the second rendering order according to the absolute priority of each of the layers to be rendered, so as to obtain a target rendering order corresponding to the layers to be rendered.

[0111] Exemplarily, the first sequence determination submodule includes a first comparison submodule and a first sorting submodule.

[0112] The first comparison submodule is used to determine a distance comparison result between the distances of each of the to-be-rendered layers relative to the near-eye display device.

[0113] The first sorting submodule is used to sort the rendering order between the layers to be rendered according to the distance comparison result to obtain a first rendering order; wherein, the layer to be rendered with a larger distance relative to the near-eye display device is sorted higher in the first rendering order.

[0114] Exemplarily, the second sequence determination submodule includes a second comparison submodule and a second sorting submodule.

[0115] The second comparison submodule is used to determine a relative priority comparison result between the layers to be rendered at the same distance according to the relative priorities of the layers to be rendered at the same distance.

[0116] The second sorting submodule is used to adjust the rendering order between the layers to be rendered with the same distance in the first rendering order according to the relative priority comparison result, so as to obtain a second rendering order; wherein, among the layers to be rendered with the same distance, the layers to be rendered with higher relative priority are sorted earlier in the second rendering order.

[0117] Exemplarily, the third sequence determination submodule includes a third comparison submodule and a third sorting submodule.

[0118] The third comparison submodule is used to determine the absolute priority comparison result between the layers to be rendered according to the absolute priority of each layer to be rendered.

[0119] The third sorting submodule is used to adjust one of the first rendering order and the second rendering order according to the absolute priority comparison result to obtain a target rendering order corresponding to the layer to be rendered; wherein, the layer to be rendered with a higher absolute priority is sorted earlier in the target rendering order.

[0120] Exemplarily, the rendering device further includes a sequence adjustment submodule.

[0121] The sequence adjustment submodule is used to adjust the target rendering sequence in response to the detected rendering sequence adjustment operation to obtain an adjusted target rendering sequence.

[0122] The rendering module 130 includes a rendering submodule.

[0123] The rendering submodule is used to render the to-be-rendered layer according to the adjusted target rendering order.

[0124] Exemplarily, the layer acquisition module 110 includes a layer acquisition submodule and a layer screening submodule.

[0125] The layer acquisition submodule is used to acquire a preset layer of the near-eye display device.

[0126] The layer screening submodule is used to determine that the preset layer is a layer to be rendered by the near-eye display device when the position information of the preset layer is within a preset viewing angle range corresponding to the near-eye display device.

[0127] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0128] The method of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0129] Exemplarily, the above-mentioned method and apparatus may be implemented in the form of a computer program, which may be run on a near-eye display device or a server to control the near-eye display device. Exemplarily, the near-eye display device may include VR glasses, AR glasses, MR glasses, VR helmets, AR helmets, MR helmets, etc., without limitation. The server may be a separate server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms.

[0130] See also Figure 4 , Figure 4 It is a schematic block diagram of the structure of a near-eye display device provided in an embodiment of the present application.

[0131] like Figure 4 As shown, the near-eye display device includes a memory and a processor. The memory and the processor may be connected via a system bus, and the memory may include a storage medium and an internal memory.

[0132] The storage medium may store an operating system and a computer program. When the computer program is executed, the processor may execute any rendering method of a near-eye display device.

[0133] The processor is used to provide computing and control capabilities to support the operation of the entire near-eye display device.

[0134] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute any rendering method of the near-eye display device.

[0135] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0136] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0137] In one embodiment, the processor is used to execute a computer program and implement the following steps when executing the computer program:

[0138] Get the layer to be rendered of the near-eye display device;

[0139] Determining a target rendering order corresponding to the layers to be rendered according to at least one of a distance of the layers to be rendered relative to the near-eye display device, a relative priority of the layers to be rendered, and an absolute priority of the layers to be rendered;

[0140] Render the to-be-rendered layers according to the target rendering order.

[0141] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the rendering of the near-eye display device described above can refer to the corresponding process in the aforementioned rendering method embodiment of the near-eye display device, and will not be repeated here.

[0142] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The method implemented when the computer program is executed by a processor can refer to the various embodiments of the rendering method of the near-eye display device of the present application.

[0143] The computer-readable storage medium may be an internal storage unit of the near-eye display device described in the aforementioned embodiment, such as a hard disk or memory of the near-eye display device. The computer-readable storage medium may also be an external storage device of the near-eye display device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the near-eye display device.

[0144] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0145] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0146] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A rendering method for a near-eye display device, characterized in that: include: Get the layer to be rendered of the near-eye display device; Determining a target rendering order corresponding to the layers to be rendered according to at least one of a distance of the layers to be rendered relative to the near-eye display device, a relative priority of the layers to be rendered, and an absolute priority of the layers to be rendered; Render the to-be-rendered layers according to the target rendering order.

2. The rendering method according to claim 1, characterized in that: The determining, according to at least one of a distance of the layer to be rendered relative to the near-eye display device, a relative priority of the layer to be rendered, and an absolute priority of the layer to be rendered, a target rendering order corresponding to the layer to be rendered includes: Sorting the rendering order of the layers to be rendered according to the distances of the layers to be rendered relative to the near-eye display device to obtain a first rendering order; When at least two of the layers to be rendered have the same distance relative to the near-eye display device, the first rendering order is adjusted according to the relative priorities of the layers to be rendered with the same distance to obtain a second rendering order; According to the absolute priorities of the layers to be rendered, one of the first rendering order and the second rendering order is adjusted to obtain a target rendering order corresponding to the layers to be rendered.

3. The rendering method according to claim 2, characterized in that: The step of sorting the rendering order of the layers to be rendered according to the distances of the layers to be rendered relative to the near-eye display device to obtain a first rendering order includes: Determine a distance comparison result between the distances of each of the to-be-rendered layers relative to the near-eye display device; According to the distance comparison result, the rendering order between the layers to be rendered is sorted to obtain a first rendering order; wherein, the layer to be rendered with a larger distance relative to the near-eye display device is sorted earlier in the first rendering order.

4. The rendering method according to claim 2, characterized in that: According to the relative priorities of the to-be-rendered layers with the same distance, the first rendering order is adjusted to obtain a second rendering order, including: Determining a relative priority comparison result between the layers to be rendered at the same distance according to the relative priorities of the layers to be rendered at the same distance; According to the relative priority comparison result, the rendering order between the layers to be rendered with the same distance in the first rendering order is adjusted to obtain a second rendering order; wherein, among the layers to be rendered with the same distance, the layer to be rendered with a higher relative priority is ranked higher in the second rendering order.

5. The rendering method according to claim 2, characterized in that: The adjusting one of the first rendering order and the second rendering order according to the absolute priority of each of the layers to be rendered to obtain a target rendering order corresponding to the layers to be rendered includes: Determining a comparison result of absolute priorities among the layers to be rendered according to the absolute priorities of the layers to be rendered; According to the absolute priority comparison result, one of the first rendering order and the second rendering order is adjusted to obtain a target rendering order corresponding to the layer to be rendered; wherein, the layer to be rendered with a higher absolute priority is ranked higher in the target rendering order.

6. The rendering method according to any one of claims 1 to 5, characterized in that: After determining the target rendering order corresponding to the layers to be rendered, the rendering method further includes: In response to the detected rendering order adjustment operation, adjusting the target rendering order to obtain an adjusted target rendering order; Rendering the to-be-rendered layers according to the target rendering order includes: The to-be-rendered layers are rendered according to the adjusted target rendering order.

7. The rendering method according to any one of claims 1 to 5, characterized in that: The step of obtaining a layer to be rendered of a near-eye display device includes: Obtaining a preset layer of the near-eye display device; When the position information of the preset layer is within the preset viewing angle range corresponding to the near-eye display device, it is determined that the preset image is the layer to be rendered of the near-eye display device.

8. A rendering device for a near-eye display device, characterized in that: The rendering device comprises: A layer acquisition module, used to obtain the layer to be rendered of the near-eye display device; an order determination module, configured to determine a target rendering order corresponding to the layers to be rendered according to at least one of a distance of the layers to be rendered relative to the near-eye display device, a relative priority of the layers to be rendered, and an absolute priority of the layers to be rendered; The rendering module is used to render the to-be-rendered layers according to the target rendering order.

9. A near-eye display device, characterized in that: The near-eye display device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the rendering method of the near-eye display device according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the rendering method of the near-eye display device according to any one of claims 1 to 7 are implemented.