Image display method, head-up display device, vehicle and storage medium
By disabling the writing function of the target layer in AR HUD and using depth buffers and depth testing, the image layer occlusion problem is solved, improving the display effect and driving safety of the target layer image.
Patent Information
- Application Number
- CN202411318561.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-01-07
AI Technical Summary
In augmented reality head-up display (AR HUD), the occlusion problem of the image layer leads to reduced driving safety and user experience. How to reduce the occlusion of the target layer image to improve the display effect.
By setting the write function when drawing the target layer, use depth buffers and depth tests to ensure that the target image is displayed without occlusion, and process it in the way of enabling and disabling the write function when drawing multiple layers.
It effectively reduces the occlusion of the target layer image, improves the user experience and driving safety of AR HUD.
Smart Images

Figure CN119271097A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to image display technology, and in particular to an image display method, a head-up display device, a vehicle, and a storage medium. Background Art
[0002] When augmented reality head up display (AR HUD) is applied to a vehicle, the front windshield is used as a projection medium to reflect the image, and the projected image and information are superimposed on the real road surface, forming a display effect that is both virtual and real and follows the vehicle like a shadow.
[0003] When displaying images based on AR HUD, each layer of images is displayed by drawing layers. At this time, the upper layer image will block the lower layer image when it is displayed. Assuming that the lower layer image is the target layer image that the user needs to see more in actual driving, blocking the lower layer image will cause certain interference to driving, which not only reduces the user experience of AR HUD, but also reduces driving safety.
[0004] How to make the image displayed by AR HUD more in line with actual needs, reduce the occlusion of the target layer image, improve the display effect of the target layer image, and improve the user experience and driving safety of AR HUD still needs to be considered. Summary of the invention
[0005] The embodiments of the present application provide an image display method, a head-up display device, a vehicle and a storage medium, so as to reduce the occlusion of the target layer image, thereby improving the display effect of the target layer image, and improving the user experience of AR HUD and the driving safety.
[0006] In a first aspect, an embodiment of the present application provides an image display method, comprising:
[0007] Get the target layer where the target image is located;
[0008] Setting the target layer to disable the writing function when drawing, so that the target image in the target layer is displayed without obstruction;
[0009] Based on the setting, multiple layers are drawn, wherein the multiple layers include the target layer.
[0010] In a possible implementation, the method further includes: drawing multiple layers at the current moment and at future moments based on the setting.
[0011] In a possible implementation manner, obtaining the target layer where the target image is located includes:
[0012] In response to the setting operation of the target image, the target image is obtained;
[0013] In response to the setting operation of the target layer, the target layer where the target image is located is obtained.
[0014] In a possible implementation, the drawing of multiple layers at the current moment based on the setting includes:
[0015] For the drawing of the target layer, draw it in a way that disables the writing function;
[0016] For drawing of non-target layers, drawing is performed in the same way as enabling the writing function.
[0017] In a possible implementation, the drawing in a manner of enabling the writing function includes:
[0018] Before drawing each layer to be drawn, enable the depth test in the write function to compare the depth value of the pixel in the layer to be drawn with the depth value written in the depth buffer;
[0019] If the depth value of the pixel in the layer to be drawn is less than the depth value written in the depth buffer, rewrite the depth value written in the depth buffer as the depth value of the pixel in the layer to be drawn;
[0020] Drawing is performed based on the rewritten depth value in the depth buffer.
[0021] In a possible implementation, the drawing of multiple layers based on the setting includes:
[0022] Based on the setting and the drawing order of the multiple layers at the current moment, the multiple layers at the current moment are drawn.
[0023] In a second aspect, an embodiment of the present application provides an image display device, including:
[0024] An acquisition module is used to acquire the target layer where the target image is located;
[0025] A processing module, used for setting the target layer to disable the writing function when drawing, so that the target image in the target layer is displayed without obstruction;
[0026] The processing module is further used to draw multiple layers based on the settings, wherein the multiple layers include the target layer.
[0027] In a third aspect, an embodiment of the present application provides a head-up display device, including: a memory, a processor;
[0028] The memory stores computer-executable instructions;
[0029] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0030] In a fourth aspect, the present application provides a vehicle comprising the head-up display device as described in the third aspect.
[0031] In a fifth aspect, the present application provides a vehicle, including a head-up display device and a controller;
[0032] The controller is used to execute the method according to the first aspect;
[0033] The head-up display device is used to display images in multiple layers.
[0034] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementation methods of the first aspect.
[0035] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0036] The image display method, head-up display device, vehicle and storage medium provided in the embodiments of the present application achieve the technical effect of reducing occlusion of the target layer image, improving the display effect of the target layer image, and improving the user experience of AR HUD and driving safety by disabling the write function when drawing the target layer so as to display the target image without obstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] Figure 1 A schematic diagram of a scene of the image display method provided in this application;
[0039] Figure 2 A schematic diagram of the process of the image display method provided in this application;
[0040] Figure 3 A schematic diagram of displaying an image in the image display method provided in this application;
[0041] Figure 4 A schematic diagram of the structure of the image display device provided in this application;
[0042] Figure 5This is a schematic diagram of the structure of the head-up display device provided in this application.
[0043] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0045] First, the terms involved in this application are explained:
[0046] Depth value: refers to the distance between the pixel and the user's position. The farther away from the user's position, the greater the depth value. The user can be understood as the driver.
[0047] Depth buffer: used to store the depth value corresponding to each pixel in the layer.
[0048] Depth test: Compare the depth value of the pixel with the depth value of the depth buffer. If the depth test passes, there is an opportunity to rewrite the corresponding value of the depth buffer, otherwise the pixel will be discarded. If the depth of the pixel value is less than or equal to the depth value of the depth buffer, the depth test is passed.
[0049] Depth write: When the depth value of a pixel passes the depth test, the depth value of the pixel is written to the depth buffer.
[0050] Figure 1 A schematic diagram of a scene of the image display method provided in this application, such as Figure 1 As shown, the specific application scenario of the present application is that when augmented reality head up display (AR HUD) is applied to a vehicle, the front windshield is used as a projection medium to reflect the image.
[0051] In the prior art, when displaying images based on AR HUD, each layer of images is displayed by drawing layers. At this time, the upper layer image will block the lower layer image when it is displayed, such as Figure 1The guide arrow fully displayed in area A is partially blocked, and the partial arrow image marked in area B is displayed. Assuming that the lower layer image is the target layer image that the user needs to see more in actual driving, blocking the lower layer image will cause certain interference to driving, which not only reduces the user experience of AR HUD, but also reduces driving safety.
[0052] The image display method provided by the present application achieves the technical effect of reducing occlusion of the target layer image, improving the display effect of the target layer image, and improving the user experience of AR HUD and driving safety by disabling the write function when drawing the target layer so as to display the target image without occlusion.
[0053] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0054] Figure 2 Schematic diagram of the image display method provided in this application Figure 1 .
[0055] The image display method is applied to an AR HUD or a controller of the HUD, such as a vehicle-mounted domain controller or a HUD body controller. The HUD body controller refers to a controller integrated in the HUD.
[0056] like Figure 2 As shown, the method includes:
[0057] S201, obtaining the target layer where the target image is located.
[0058] The target image refers to an image that is not desired to be blocked in the image displayed by the AR HUD.
[0059] The target image may be, for example, an arrow, a number, or a logo. The arrow may be used to indicate the direction of travel of the vehicle, the number may be used to indicate the current speed of the vehicle, the speed limit of the road section, etc., and the logo may be set beside the number to indicate the meaning of the number, such as a distance logo, a speed logo, etc. The target image may be a semi-transparent image or an opaque image.
[0060] The target image can be set according to actual needs, and the setting method is not limited. After the target image is set, it can be changed according to actual needs. The target image can include one image or multiple images, which is not limited in this embodiment.
[0061] S202, setting the target layer to disable the write function when drawing, so that the target image in the target layer is displayed without obstruction.
[0062] The writing function may include depth buffering, depth testing, and depth writing.
[0063] As described above, the depth buffer is used to store the depth value corresponding to each pixel in the layer. The depth test is used to compare the depth value of the pixel with the depth value of the depth buffer. If the depth test passes, there is an opportunity to rewrite the corresponding value of the depth buffer, otherwise the pixel will be discarded. If the depth of the pixel value is less than or equal to the depth value of the depth buffer, the depth test is passed. Depth write is used to write the depth value of the pixel to the depth buffer when the depth value of the pixel passes the depth test.
[0064] That is, when the write function is enabled, the pixels in the current layer are displayed according to the depth test result of the pixels, and the depth test result determines whether to display the occlusion or not.
[0065] If the write function is disabled, the pixels in the current layer are not displayed according to the depth test results of the pixels, and the depth values of the pixels in the current layer will not be rewritten, so there will be no problem of occlusion. Therefore, disabling the write function for the target layer can make the target image display without occlusion.
[0066] When setting the target layer to disable the write function when drawing, the setting can be made in the program. When setting based on the program, the write function can be directly set to disable the write function when drawing the target layer without user confirmation.
[0067] S203: Draw multiple layers based on the setting.
[0068] The plurality of layers include the target layer.
[0069] After setting the target layer to disable the write function when drawing, the image display based on the AR HUD begins. At this time, the multiple layers are drawn in the pre-set order, the non-target layers are drawn in a way that the write function is enabled, and the target layer is drawn in a way that the write function is disabled. At this time, the display of multiple non-target layers may block each other, but the display of the target layer is not blocked.
[0070] The method provided in this embodiment, after confirming the target image and the target layer where the target image is located, sets the write function to be disabled when drawing the target layer. After setting the write function to be disabled when drawing the target layer, the depth value of the pixel in the target layer will not be rewritten, and the target image will be displayed without obstruction. The user's driving safety will not be affected by the obstructed display of the target image. Therefore, the method provided in this embodiment achieves the technical effect of reducing the obstruction of the target layer image by disabling the write function, so as to improve the display effect of the target layer image, and enhance the user experience of AR HUD and driving safety.
[0071] In some embodiments, the image display method further includes: drawing multiple layers at the current moment and the future moment based on the setting.
[0072] The current moment may be the activation moment of the AR HUD. After drawing multiple layers at the current moment, if multiple layers are to be drawn at a future moment, the query may be made again or the drawing may be performed according to the setting. This embodiment is not limited.
[0073] In order to reduce repeated operations and improve driving safety, multiple layers will be drawn according to this setting at all times in the future.
[0074] The future moment may include each moment within a period of time after the current moment, and the period of time may be set according to actual needs and is not limited in this embodiment. Optionally, the period of time refers to a period of time from the current moment to the time when the AR HUD is deactivated, and the current moment may be the activation moment of the AR HUD, that is, during the activation of the AR HUD, the target image is always displayed without obstruction.
[0075] The method provided in this embodiment draws multiple layers at future moments based on the setting, which can reduce repeated operations and improve driving safety.
[0076] In some embodiments, step S201 includes:
[0077] Step 1: Respond to the setting operation of the target image and obtain the target image.
[0078] The target image setting operation may be to write the program code into the controller after setting the target image through the program code.
[0079] The target image is, for example, an indicating arrow, a number, a logo, etc. The target image may be a semi-transparent image or an opaque image. If the indicating arrow is not desired to be blocked, the indicating arrow is set as the target image.
[0080] Step 2: respond to the setting operation of the target layer and obtain the target layer where the target image is located.
[0081] The target layer setting operation may be to write the program code into the controller after setting the target layer through the program code.
[0082] After acquiring the target image, a layer may be assigned to the target image as the target layer, or after displaying multiple layers to the user, a layer selected by the user may be used as the target layer.
[0083] Preferably, after the target image is continuously displayed for a period of time, the user can re-operate to reselect the target image, and correspondingly, re-acquire the target layer where the target image is located.
[0084] The method provided in this embodiment can determine the target image according to the user's autonomous selection, and ensure that the target image is always displayed without obstruction, thereby improving driving safety.
[0085] In some embodiments, step S203 includes:
[0086] Step 1: Draw the target layer by disabling the write function.
[0087] The write function includes depth buffer, depth test and depth write.
[0088] As described above, the depth buffer is used to store the depth value corresponding to each pixel in the layer. The depth test is used to compare the depth value of the pixel with the depth value of the depth buffer. If the depth test passes, there is an opportunity to rewrite the corresponding value of the depth buffer, otherwise the pixel will be discarded. If the depth of the pixel value is less than or equal to the depth value of the depth buffer, the depth test is passed. Depth write is used to write the depth value of the pixel to the depth buffer when the depth value of the pixel passes the depth test.
[0089] That is, when the write function is enabled, the pixels in the current layer are displayed according to the depth test result of the pixels, and the depth test result determines whether to display the occlusion or not.
[0090] If the write function is disabled when drawing the target layer, the target layer will be drawn in the same way as the write function is disabled. At this time, when drawing other layers, the display of the target image in the target layer will not be blocked.
[0091] Step 2: For drawing of non-target layers, draw by enabling the write function.
[0092] The non-target layer refers to the remaining layer after removing the target layer from the multiple layers. When drawing, the non-target layer is drawn in a manner in which the write function is enabled and is normally occluded.
[0093] When drawing with the write function enabled, before drawing each layer to be drawn (not the target layer), a depth test is first performed based on the depth value in the depth buffer. Then, whether to draw the layer to be drawn is determined based on the result of the depth test.
[0094] In one embodiment, before drawing each layer to be drawn, the depth test in the write function is enabled to compare the depth value of the pixel in the layer to be drawn with the depth value written in the depth buffer. If the depth value of the pixel in the layer to be drawn is less than the depth value written in the depth buffer, the depth value written in the depth buffer is rewritten as the depth value of the pixel in the layer to be drawn. Drawing is then performed based on the rewritten depth value in the depth buffer to display the layer to be drawn.
[0095] The depth value written in the depth buffer refers to the non-target layer of the previous drawing display.
[0096] For ease of understanding, combined Figure 3 Describe it in detail. Figure 3 As shown, the image contained in layer 1 is a guide arrow. If layer 1 is the target layer, the guide arrow in layer 1 is displayed without obstruction, and other layers are displayed normally with obstruction.
[0097] The method provided in this embodiment, when drawing multiple layers, draws the target layer in a manner of disabling the write function according to the setting, and draws the non-target layer in a manner of enabling the write function. In this way, the target image in the target layer is maintained to be displayed without obstruction, the integrity of the target image display is guaranteed, and the display effect of the AR HUD and the driving safety of the vehicle are improved.
[0098] In some embodiments, step S203 includes:
[0099] Step 1: Based on the setting and the drawing order of the multiple layers at the current moment, the multiple layers at the current moment are drawn.
[0100] The drawing order may be a default order or an order set by the user according to actual needs, which is not limited in this embodiment.
[0101] Optionally, to reduce the amount of calculation, the drawing order will not change for a period of time.
[0102] Optionally, to improve usage flexibility, the drawing order can be changed in real time or at fixed intervals.
[0103] Figure 4 A schematic diagram of the structure of the image display device provided in this application, such as Figure 4 As shown, the image display device 40 provided in this embodiment includes:
[0104] An acquisition module 401 is used to acquire a target layer where a target image is located;
[0105] The processing module 402 is used to set the writing function to be disabled when drawing the target layer, so that the target image in the target layer is displayed without occlusion; wherein, when the writing function is enabled, the pixels in the current layer are displayed according to the depth test result of the pixels, and the depth test result determines whether to display or not display the occlusion;
[0106] The processing module 402 is further configured to draw multiple layers based on the setting, wherein the multiple layers include the target layer.
[0107] In a possible implementation, the processing module 402 is used to draw multiple layers at the current moment and the future moment based on the setting.
[0108] In a possible implementation, the acquisition module 401 is used to respond to a user operation, acquire a target image, and acquire the target layer where the target image is located.
[0109] In a possible implementation, the processing module 402 is used to render the target layer in a manner of disabling the write function, and render the non-target layer in a manner of enabling the write function.
[0110] In a possible implementation, the processing module 402 is used to enable the depth test in the write function before drawing each layer to be drawn, so as to compare the depth value of the pixel in the layer to be drawn with the depth value written in the depth buffer; if the depth value of the pixel in the layer to be drawn is less than the depth value written in the depth buffer, the depth value written in the depth buffer is rewritten as the depth value of the pixel in the layer to be drawn; and drawing is performed based on the rewritten depth value in the depth buffer.
[0111] In a possible implementation, the processing module 402 is used to draw the multiple layers at the current moment based on the setting and the drawing order of the multiple layers at the current moment.
[0112] The image display device 40 provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0113] Figure 5 This is a schematic diagram of the structure of the head-up display device provided in this application. Figure 5As shown, the head-up display device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the head-up display device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.
[0114] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.
[0115] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0116] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0117] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0118] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0119] One embodiment of the present application also provides a vehicle. The vehicle includes a head-up display device as provided above. The vehicle may also include other devices, such as radar, image sensor, positioning device, etc., which are not limited in this embodiment. The vehicle may also be configured to achieve autonomous cruising, automatic obstacle avoidance, etc., which are not limited in this embodiment.
[0120] One embodiment of the present application also provides a vehicle. The vehicle includes a head-up display device and a controller. The controller is used to execute the image display method provided in any of the above embodiments. The head-up display device is used to display images in multiple layers. The vehicle may also include other devices, such as radar, image sensor, positioning device, etc., which are not limited in this embodiment. The vehicle may also be configured to achieve autonomous cruising, automatic obstacle avoidance, etc., which are not limited in this embodiment.
[0121] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0122] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0123] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0124] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0125] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0126] The units described as segmentation components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0128] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0129] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0130] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. An image display method, characterized in that: The method comprises: Get the target layer where the target image is located; Setting the target layer to disable the writing function when drawing, so that the target image in the target layer is displayed without obstruction; Based on the setting, multiple layers are drawn, wherein the multiple layers include the target layer.
2. The method according to claim 1, characterized in that The method further comprises: Based on the settings, multiple layers are drawn at the current time and the future time.
3. The method according to claim 1, characterized in that The target layer where the target image is obtained includes: In response to the setting operation of the target image, the target image is obtained; In response to the setting operation of the target layer, the target layer where the target image is located is obtained.
4. The method according to any one of claims 1 to 3, characterized in that: The drawing of multiple layers at the current moment based on the setting includes: For the drawing of the target layer, draw it in a way that disables the writing function; For drawing of non-target layers, drawing is performed in the same way as enabling the writing function.
5. The method according to claim 4, characterized in that The drawing in a manner of enabling the writing function includes: Before drawing each layer to be drawn, enable the depth test in the write function to compare the depth value of the pixel in the layer to be drawn with the depth value written in the depth buffer; If the depth value of the pixel in the layer to be drawn is less than the depth value written in the depth buffer, rewrite the depth value written in the depth buffer as the depth value of the pixel in the layer to be drawn; Drawing is performed based on the rewritten depth value in the depth buffer.
6. The method according to any one of claims 1 to 3, characterized in that: The drawing of multiple layers based on the setting includes: Based on the setting and the drawing order of the multiple layers at the current moment, the multiple layers at the current moment are drawn.
7. A head-up display device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.
8. A means of transport, characterized in that: Comprising the head-up display device as claimed in claim 7.
9. A means of transport, characterized in that: Includes head-up display device and controller; The controller is used to execute the method according to any one of claims 1 to 6; The head-up display device is used to display images in multiple layers.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.