A road rendering method, apparatus, device, and storage medium

By predefined road surface transparency transformation relationships and determining the texture rendering values ​​of road surface points based on the texture coordinates of road auxiliary points, the problem of needing to render multiple effects of virtual navigation roads separately in AR-HUD scenarios is solved, achieving efficient and personalized road rendering.

CN115790638BActive Publication Date: 2026-05-26NEUSOFT CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NEUSOFT CORP
Filing Date
2022-12-05
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing technologies, various road effects in AR-HUD scenarios require separate rendering processes, resulting in cumbersome rendering methods and impacting performance.

Method used

By predefined road surface transparency transformation relationships, and based on the texture coordinates of road auxiliary points in the navigation route, the texture rendering value of each road surface point is determined, enabling multiple effects of the virtual navigation road to be rendered at once.

Benefits of technology

It simplifies the tedious steps of road rendering, improves rendering efficiency and personalization, and reduces multiple rendering operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115790638B_ABST
    Figure CN115790638B_ABST
Patent Text Reader

Abstract

This application provides a road rendering method, apparatus, device, and storage medium. The method includes: acquiring road auxiliary points corresponding to each landmark point in a navigation route and the texture coordinates of the road auxiliary points; determining the texture rendering value of each road surface point based on the texture coordinates of the road auxiliary points and a predefined road surface transparency transformation relationship; and rendering the corresponding virtual navigation road based on the texture rendering value of each road surface point. The embodiments of this application can achieve single rendering of multiple effects within a virtual navigation road, eliminating the need for multiple rendering operations to overlay various road effects, simplifying the tedious steps of road rendering, and improving the efficiency and personalization of road rendering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to a road rendering method, apparatus, device, and storage medium. Background Technology

[0002] With the rapid development of Augmented Reality (AR) and Head-Up Display (HUD), developed AR-HUD products will be used in vehicles to generate corresponding virtual navigation roads according to the navigation route, and render the virtual navigation roads on the virtual screen in front of the driver, so that the driver can focus on driving.

[0003] Currently, to achieve diversity in virtual navigation roads within AR-HUD scenarios, the rendered virtual navigation roads typically require the display of various road effects, such as wide road surfaces, narrowing solid lines on both sides, and road surface glows or flowing light effects. Each road effect requires a separate rendering process, and multiple rendering operations are used to overlay these effects to achieve the diverse presentation of the virtual navigation road. However, this road rendering method is quite cumbersome and significantly impacts road rendering performance. Summary of the Invention

[0004] This application provides a road rendering method, apparatus, device, and storage medium. By using predefined road surface transparency transformation relationships, multiple effects within a virtual navigation road can be rendered in a single step, simplifying the tedious steps of road rendering and improving the efficiency and personalization of road rendering.

[0005] In a first aspect, embodiments of this application provide a road rendering method, the method comprising:

[0006] Obtain the road auxiliary point and the texture coordinates of the road auxiliary point corresponding to each waypoint in the navigation route;

[0007] The texture rendering value of each road surface point is determined based on the texture coordinates of the road auxiliary points and the predefined road surface transparency transformation relationship;

[0008] The corresponding virtual navigation road is rendered based on the texture rendering value of each road surface point.

[0009] Secondly, embodiments of this application provide a road rendering apparatus, the apparatus comprising:

[0010] The road point acquisition module is used to acquire the road auxiliary point corresponding to each waypoint in the navigation route and the texture coordinates of the road auxiliary point;

[0011] The texture determination module is used to determine the texture rendering value of each road surface point based on the texture coordinates of the road auxiliary points and the predefined road surface transparency transformation relationship;

[0012] The road rendering module is used to render the corresponding virtual navigation road based on the texture rendering value of each road surface point.

[0013] Thirdly, embodiments of this application provide an electronic device, which includes:

[0014] A processor and a memory, the memory being used to store a computer program, and the processor being used to invoke and run the computer program stored in the memory to execute the road rendering method provided in the first aspect of this application.

[0015] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to perform the road rendering method provided in the first aspect of this application.

[0016] Fifthly, embodiments of this application provide a computer program product, including a computer program / instructions that, when executed by a processor, implement the road rendering method provided in the first aspect of this application.

[0017] This application provides a road rendering method, apparatus, device, and storage medium. For each landmark in a navigation route, the method acquires the corresponding road auxiliary point and its texture coordinates. Then, based on the texture coordinates of each road auxiliary point and a predefined road surface transparency transformation relationship, the texture rendering value of each road surface point can be determined, thereby rendering the corresponding virtual navigation road. This achieves the simultaneous rendering of multiple effects within the virtual navigation road, eliminating the need for multiple rendering operations to overlay various road effects, simplifying the tedious steps of road rendering, and improving the efficiency and personalization of road rendering. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating a road rendering method according to an embodiment of this application;

[0020] Figure 2 This is a schematic diagram showing the road auxiliary points corresponding to each road sign point in the embodiments of this application;

[0021] Figure 3 A flowchart illustrating another road rendering method as shown in an embodiment of this application;

[0022] Figure 4 This is a schematic block diagram of a road rendering device shown in an embodiment of this application;

[0023] Figure 5 This is a schematic block diagram of an electronic device shown in an embodiment of this application. Detailed Implementation

[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0026] To address the cumbersome road rendering process in AR-HUD scenarios where multiple road effects exist within a virtual navigation road, each requiring a separate rendering process to overlay them, this application proposes a novel road rendering scheme. By predefining the corresponding road surface transparency transformation relationship at each time step, the unified transformation effect after merging multiple road effects is represented. Then, based on the texture coordinates of the road auxiliary points corresponding to each landmark in the navigation route and the road surface transparency transformation relationship, the texture rendering value of each road point is determined, thereby rendering the corresponding virtual navigation road. This achieves a single rendering of multiple effects within the virtual navigation road, simplifying the tedious road rendering process.

[0027] Figure 1 This is a flowchart illustrating a road rendering method according to an embodiment of this application. (Refer to...) Figure 1 The method may include the following steps:

[0028] S110, obtain the road auxiliary point and the texture coordinates of the road auxiliary point corresponding to each waypoint in the navigation route.

[0029] In AR-HUD scenarios, to ensure the driver's focus on driving, when navigating while the vehicle is in motion, a corresponding virtual navigation road is usually generated according to the navigation route and rendered into the virtual screen in front of the driver. This allows the driver to see the virtual navigation road while looking straight ahead without having to look down to check the navigation route, thus ensuring the safety of driving.

[0030] It should be understood that a navigation route typically consists of a series of continuously collected road markers with corresponding coordinate information. These road markers can be each road coordinate point stored within the navigation route. The virtual navigation road rendered for the user is a complete road surface represented by corresponding lanes. In other words, this application requires expanding the navigation route into a lane surface.

[0031] Therefore, for each landmark in the navigation route that records corresponding coordinate information, this application can set a road auxiliary point at the corresponding position on both sides of each landmark according to the road width of the virtual navigation road to be rendered, so as to represent the road boundary position of the virtual navigation road. Thus, this application can obtain the coordinate information of the road auxiliary point corresponding to each landmark.

[0032] For example, the road auxiliary points in this application can be the vertices obtained by road triangulation based on each road sign point.

[0033] As an optional solution in this application, for each road sign point, the road auxiliary point can be obtained by the following method: obtaining at least one first road auxiliary point located to the left of each road sign point and at least one second road auxiliary point located to the right of the road sign point.

[0034] In other words, for each landmark in the navigation route, that landmark can be used as the center point of the road. Then, a first road auxiliary point is set at at least one interval to the left of the landmark, representing the left boundary point of the virtual navigation road in the same horizontal direction as the landmark. Furthermore, a second road auxiliary point is set at at least one identical interval to the right of the landmark, representing the right boundary point of the virtual navigation road in the same horizontal direction as the landmark.

[0035] At this point, the first road auxiliary point and the second road auxiliary point under each road marker correspond one-to-one.

[0036] For example, such as Figure 2As shown, assuming the navigation route consists of five landmarks p1, p2, p3, p4, and p5, a first road auxiliary point can be set at a certain interval to the left of each landmark, and a second road auxiliary point can be set at the same interval to the right of the landmark, thus obtaining the road auxiliary point corresponding to each landmark.

[0037] To ensure the rendering quality of the virtual navigation road, it is necessary to analyze the texture information at each location point within the virtual navigation road to represent its texture effect. The landmark points along the navigation route do not carry corresponding texture information.

[0038] Therefore, after obtaining the road auxiliary point corresponding to each landmark, this application can set corresponding texture coordinates for each road auxiliary point to represent the texture information possessed by the road auxiliary point, so as to analyze the texture information of each road surface point in the rendered virtual navigation road. The texture coordinates of each road auxiliary point can be the texture coordinates of the road after triangulation.

[0039] S120 determines the texture rendering value of each road surface point based on the texture coordinates of the road auxiliary points and the predefined road surface transparency transformation relationship.

[0040] Since all the road auxiliary points corresponding to each landmark point can almost represent the boundary vertices of the rendered virtual navigation road, and the texture coordinates of each road auxiliary point can represent the boundary texture information of the rendered virtual navigation road, at least three road auxiliary points can form a road surface within the virtual navigation road, with the road auxiliary points being the corresponding road surface vertices. Then, based on the texture coordinates of each road surface vertex, a texture region can be formed. Furthermore, by analyzing the coordinates of each point within this texture region, the texture coordinates of any point within the road surface can be determined.

[0041] In this application, road surface points refer to various location points within the rendered virtual navigation road, which may include, but are not limited to, road sign points and road auxiliary points. The texture coordinates of each road surface point can be determined using the above method.

[0042] For example, for a road surface formed by at least three road auxiliary points within a virtual navigation road, this application can perform rasterization rendering on the road surface to obtain multiple pixels within the road surface, and each pixel can be represented as a road surface point.

[0043] Then, considering that a road surface point is brighter when its transparency is higher and darker when its transparency is lower, the road surface point can achieve effects such as wide road surfaces and narrowing solid lines on both sides within the rendered virtual navigation road by setting different transparency levels for different road surface points.

[0044] Therefore, at each moment, this application can set corresponding transparency in different texture intervals according to the overall road effect within the rendered virtual navigation road, thereby representing the transparency matched by the road surface points in different texture intervals, which serves as the predefined road surface transparency transformation relationship in this application. This road surface transparency transformation relationship can represent the mapping relationship between texture intervals and transparency.

[0045] Specifically, based on the overall road effect the user wants to render at each moment, we can first divide the road into multiple texture zones with significantly different and irregular road effects. For example, the middle area of ​​the road usually presents a normal road surface style, while the areas on both sides of the road usually present a green belt style. Therefore, the middle area and the areas on both sides of the road can be divided into different texture zones. At this time, the road effect within each texture zone may be the same or may have certain patterns of change. For example, the road color in the middle area may appear to gradually fade from the center point to both sides, while the road color in the areas on both sides of the road may all appear to be the same color similar to that of the green belt.

[0046] Then, based on the desired road effect to be rendered for each texture interval, a corresponding transparency configuration can be set for each texture interval, thereby obtaining the road surface transparency transformation relationship in this application.

[0047] For example, the road surface transparency transformation relationship in this application can be represented by the following table:

[0048] Texture range 1 Transparency Configuration Information 1 Texture range 2 Transparency Configuration Information 2 … … Texture range n Transparency configuration information n

[0049] Furthermore, based on the texture coordinates of each road surface point, the texture interval in which that point is located can be determined. Then, the transparency configuration information corresponding to the texture interval in which the road surface point is located is determined from the predefined road surface transparency transformation relationship. Then, based on the transparency configuration information corresponding to the texture interval in which the road surface point is located, the initial texture information of the road surface point is processed accordingly to determine the actual texture coordinate value of the road surface point, which is then used as the texture rendering value of the road surface point.

[0050] Using the same method described above, the texture rendering value for each road surface point can be calculated.

[0051] S130 renders the corresponding virtual navigation road based on the texture rendering value of each road surface point.

[0052] Based on the texture rendering value of each road surface point, a corresponding texture can be rendered for each road surface point, thereby rendering the corresponding virtual navigation road. This virtual navigation route can have an overall effect after combining multiple road effects.

[0053] The technical solution provided in this application obtains the corresponding road auxiliary point and its texture coordinates for each landmark in the navigation route. Then, based on the texture coordinates of each road auxiliary point and a predefined road surface transparency transformation relationship, the texture rendering value of each road surface point can be determined, thereby rendering the corresponding virtual navigation road. This achieves the rendering of multiple effects within the virtual navigation road in a single step, eliminating the need for multiple rendering operations to overlay various road effects, simplifying the tedious steps of road rendering, and improving the efficiency and personalization of road rendering.

[0054] As an optional implementation scheme in this application, this application can provide a detailed description of the specific process for determining the texture rendering value of each road surface point.

[0055] Figure 3 A flowchart illustrating another road rendering method shown in an embodiment of this application is as follows: Figure 3 As shown, the method may include the following steps:

[0056] S310, obtain the road auxiliary point and texture coordinates of the road auxiliary point corresponding to each waypoint in the navigation route.

[0057] S320 uses the texture coordinates of the road auxiliary points to interpolate and obtain the corresponding road surface points, and determines the texture coordinates of each road surface point.

[0058] After determining the road auxiliary point corresponding to each landmark, since each road auxiliary point can represent the boundary vertex within the rendered virtual navigation road, it indicates that other road surface points are located between each road auxiliary point. Therefore, this application can interpolate multiple road surface points between each pair of road auxiliary points according to their texture coordinates, and determine the texture coordinates of each interpolated road surface point.

[0059] For example, if the texture coordinates of two road auxiliary points on either side of a road sign are (-1,0) and (1,0) respectively, then multiple road surface points (-0.9,0), (-0.8,0), ..., (0.8,0) and (0.9,0) can be interpolated.

[0060] S330 determines the texture transparency of each road surface point based on its texture coordinates, according to a predefined road surface transparency transformation relationship.

[0061] The road surface transparency transformation relationship in this application can represent the mapping relationship between different texture intervals and various transparency values. Therefore, based on the texture coordinates of each road surface point, the texture interval in which the road surface point is located can be determined. Then, the transparency mapped under that texture interval as set in the road surface transparency transformation relationship is used as the texture transparency of that road surface point.

[0062] Using the same method described above, the texture transparency of each surface point can be determined.

[0063] As an optional implementation scheme in this application, considering that virtual navigation roads may have different road effects in the horizontal and vertical directions, such as wide lines on the left and right sides of the road that gradually darken from the middle section towards the front and back, the road surface transparency transformation relationship in this application can include both horizontal transparency transformation relationship and vertical transparency transformation relationship.

[0064] Among them, the horizontal transparency transformation relationship can represent the transparency transformation rules matched in different horizontal texture intervals, and the vertical transparency transformation relationship can represent the transparency transformation rules matched in different vertical texture intervals.

[0065] In other words, based on the horizontal and vertical texture changes in the overall road effect that the user wants to render at each moment, we can first divide the landscape into multiple horizontal texture intervals with significantly different and irregular horizontal texture changes, and multiple vertical texture intervals with significantly different and irregular vertical texture changes. Then, we set corresponding horizontal transparency configuration information for each horizontal texture interval and corresponding vertical transparency configuration information for each vertical texture interval, thus obtaining the horizontal transparency transformation relationship and the vertical transparency transformation relationship in this application.

[0066] Furthermore, the texture transparency of each surface point can be determined using the following steps:

[0067] The first step is to determine the horizontal and vertical texture transparency of each road surface point based on the predefined horizontal and vertical transparency transformation relationships and the texture coordinates of each point.

[0068] After obtaining the texture coordinates of each road surface point, the horizontal texture interval of that point can be determined based on its horizontal texture coordinates. Furthermore, the vertical texture interval of that point can be determined using its vertical texture coordinates.

[0069] Then, from the horizontal transparency transformation relationship, the transparency transformation pattern matching the horizontal texture interval where the road surface point is located can be found, thereby determining the horizontal texture transparency of the road surface point. Furthermore, from the vertical transparency transformation relationship, the transparency transformation pattern matching the vertical texture interval where the road surface point is located can be found, thereby determining the vertical texture transparency of the road surface point.

[0070] Using the same method described above, the horizontal and vertical texture transparency of each road surface point can be determined.

[0071] The second step is to calculate the product of the horizontal texture transparency, the vertical texture transparency, and the predefined road transparency for each road surface point, and use this product as the texture transparency of that road surface point.

[0072] After obtaining the horizontal and vertical texture transparency of each road surface point, considering not only the different rendering effects of the virtual navigation road at each road surface point, but also the potential for an overall effect, this application uses road transparency to represent the original overall effect of all road surface points within the virtual navigation road. For example, when initially rendering the virtual navigation road, a fade-in effect can be set. Therefore, at the beginning of rendering the virtual navigation road, the road transparency can be set to continuously increase from zero according to the rendering time. For example, at the first rendering time, the road transparency can be 0.1, at the second rendering time, the road transparency can be 0.3, at the third rendering time, the road transparency can be 0.5, and so on, until the road transparency increases to 1.

[0073] Furthermore, after obtaining the horizontal and vertical texture transparency of each road surface point, the product of the horizontal and vertical texture transparency of each road surface point and the predefined road transparency at the current rendering time can be calculated as the texture transparency of that road surface point.

[0074] S340, determine the type of road assist effects under the navigation route.

[0075] In this application, for regular roads initially rendered according to predefined road surface transparency transformation parameters, additional road-assistance effects, such as glow or flowing light effects, can typically be added to enhance the diversity of road rendering. Different road-assistance effects have different rendering requirements for different road surface points. Therefore, after initially determining the texture transparency of each road surface point, it is also determined whether there are road-assistance effects under the navigation route to further enhance the road rendering effect. If corresponding road-assistance effects exist under the navigation route, the effect type is first determined so that different effect rendering parameters can be determined based on different effect types.

[0076] S350 updates the texture transparency of each surface point according to the special effect rendering parameters corresponding to the special effect type.

[0077] Based on the rendering requirements of different road assist effects at different road surface points, a key-value pair approach can be adopted. The effect type of different road assist effects can be used as a key name. Under each key name, various parameters that correspond to the specific rendering effect of the road assist effect represented by that key name for each road surface point can be pre-set, thereby obtaining the effect rendering parameters corresponding to different effect types.

[0078] After determining the type of road assist effects for the navigation route, the corresponding effect rendering parameters for that type can be found. Then, using the specific parameters set for each road surface point in the corresponding effect rendering parameters for that type, the texture transparency of that road surface point is updated, so that the road surface point can further possess the rendering style of the road assist effect.

[0079] As an optional implementation scheme in this application, the road assistance effects may include two types: glow effect and flowing light effect. The following sections describe the specific update process of the texture transparency of each road surface point under the glow effect and flowing light effect, respectively:

[0080] 1) If the road assist effect is a glow effect, then determine the glow transparency of each road surface point based on the predefined glow radius, lateral expansion ratio, and glow preset transparency; update the texture transparency of each road surface point based on its glow transparency.

[0081] The glow effect in the rendered virtual navigation road can be a dynamically changing breathing effect that radiates outwards from each center point in the horizontal direction of the road. For the glow effect, a glow radius can be predefined in the horizontal direction. The glow transparency of each road surface point within this radius is the highest and remains unchanged. This application can predefine a glow preset transparency to represent the maximum glow transparency within this radius. Furthermore, to represent the horizontal breathing effect of the glow, different horizontal expansion ratios can be set at different rendering times. This horizontal expansion ratio can represent the proportion of the horizontal texture area that expands along the glow radius, allowing for controllable gradual darkening of the glow.

[0082] Based on the glow radius, a first horizontal texture interval with a fixed glow can be determined. Based on the glow radius and the horizontal expansion ratio, a second horizontal texture interval can be determined where the glow transparency gradually changes from the maximum preset glow transparency within the glow radius to 0. Furthermore, it can be determined that the glow transparency matched by the remaining third horizontal texture interval, excluding the first and second horizontal texture intervals, is 0.

[0083] Therefore, based on the texture coordinates of each road surface point, it can be determined which specific interval among the first, second, and third horizontal texture intervals the point falls within. Then, based on the specific glow transparency within that interval, the glow transparency of the road surface point is determined.

[0084] For example, suppose the glow radius at a certain rendering moment is 0.3, the horizontal expansion ratio is 0.2, and the preset glow opacity is 0.5. Then, based on the glow radius and the horizontal expansion ratio, the expanded gradient radius can be determined to be 0.5. This allows us to divide the virtual navigation road horizontally into five texture intervals: (-1, -0.5), (-0.5, -0.3), (-0.3, 0.3), (0.3, 0.5), and (0.5, 1). Among these, (-0.3, 0.3) belongs to the first horizontal texture interval with a fixed glow radius, and its matched glow opacity is the preset glow opacity of 0.5. (-0.5, -0.3) and (0.3, 0.5) belong to the second horizontal texture interval with a gradient glow expansion, and their matched glow opacity gradually decreases from the preset glow opacity of 0.5 towards both sides to 0. (-1,-0.5) and (0.5,1) belong to the third horizontal texture interval, and the corresponding glow transparency is 0.

[0085] Therefore, based on the horizontal coordinate value in the texture coordinates of each road surface point, it is determined which of the three horizontal texture intervals the road surface point belongs to, and the glow transparency of the road surface point is determined based on the glow transparency matched in that interval.

[0086] Once the glow transparency of each road surface point is determined, the glow transparency of each road surface point can be added to the already determined texture transparency of that road surface point to comprehensively analyze the texture effect of that road surface point, thereby obtaining the updated texture transparency of that road surface point.

[0087] 2) If the road assist effect is a glow effect, then determine the glow transparency transformation ratio of each road surface point according to the predefined glow radius and glow longitudinal position ratio; update the texture transparency of each road surface point according to the glow transparency transformation ratio of each road surface point.

[0088] The flowing light effect in the rendered virtual navigation road highlights a horizontal flowing light line moving dynamically along the road's longitudinal direction. This flowing light effect can be represented by a single horizontal flowing light line. Furthermore, a flowing light radius can be predefined in the longitudinal direction to represent the vertical width of this horizontal flowing light line. Additionally, a vertical position percentage can be set for this horizontal flowing light line, indicating its relative vertical position at the current rendering moment.

[0089] Then, the additional light transparency is greatest at the vertical relative position represented by the proportion of the vertical position of the light stream, and the light stream radius will gradually decrease from the vertical relative position to the front and back.

[0090] Furthermore, based on the vertical coordinate value in the texture coordinates of each road surface point, the vertical relative distance between that point and the location of the flowing light effect is determined. Then, according to the rate of increase in flowing light transparency at that distance, the flowing light transparency transformation ratio of that road surface point is determined. Subsequently, the product between the flowing light transparency transformation ratio of each road surface point and the already determined texture transparency of that road surface point is calculated to update the texture transparency of that road surface point, resulting in the updated texture transparency of that road surface point.

[0091] It should be understood that, in order to avoid the mutual interference between glow effects and flowing light effects within the virtual navigation road, either glow effect or flowing light effect is usually added within the virtual navigation road. Therefore, S340 and S350 in this application will be executed one at a time, rather than simultaneously.

[0092] S360 determines the texture rendering value of each road surface point based on the initial texture value specified by the texture coordinates of that point and the texture transparency of that point.

[0093] After determining the texture transparency of each road surface point, in order to accurately set the texture information of the virtual navigation road, this application can specify an initial texture value for the texture coordinates of each road surface point. For example, a color value can be uniformly set for each landmark in the navigation route as the initial texture value for each road surface point. Then, the initial texture value and the texture transparency of each road surface point are fused to obtain the texture rendering value of that road surface point.

[0094] It should be noted that at the very first rendering moment when the virtual navigation road needs to be rendered, the road auxiliary points corresponding to each landmark in the navigation route and the texture coordinates of each road auxiliary point are set. The landmark points are uniformly set with predefined horizontal and vertical transparency transformation relationships. When there are glow or flowing light effects, the glow radius, horizontal expansion ratio and glow preset transparency, or the flowing light radius and flowing light vertical position ratio are also set. The above information is input into the OpenGL interface, so that a virtual navigation road can be rendered for the first time.

[0095] Then, at each subsequent rendering time, you only need to input the predefined horizontal and vertical transparency transformation relationships, the horizontal expansion ratio of the glow effect, or the vertical position ratio of the flowing light into the OpenGL interface to continuously render virtual navigation roads with various road effects.

[0096] S370 renders the corresponding virtual navigation road based on the texture rendering value of each road surface point.

[0097] The technical solution provided in this application obtains the corresponding road auxiliary point and its texture coordinates for each landmark in the navigation route. Then, based on the texture coordinates of each road auxiliary point and a predefined road surface transparency transformation relationship, the texture rendering value of each road surface point can be determined, thereby rendering the corresponding virtual navigation road. This achieves the rendering of multiple effects within the virtual navigation road in a single step, eliminating the need for multiple rendering operations to overlay various road effects, simplifying the tedious steps of road rendering, and improving the efficiency and personalization of road rendering.

[0098] Figure 4 This is a schematic block diagram illustrating a road rendering device according to an embodiment of this application. Figure 4 As shown, the device 400 may include:

[0099] The road point acquisition module 410 is used to acquire the road auxiliary point corresponding to each waypoint in the navigation route and the texture coordinates of the road auxiliary point;

[0100] The texture determination module 420 is used to determine the texture rendering value of each road surface point based on the texture coordinates of the road auxiliary points and the predefined road surface transparency transformation relationship;

[0101] The road rendering module 430 is used to render the corresponding virtual navigation road based on the texture rendering value of each road surface point.

[0102] Furthermore, the texture determination module 420 may include:

[0103] An interpolation unit is used to interpolate the corresponding road surface points based on the texture coordinates of the road auxiliary points, and to determine the texture coordinates of each road surface point.

[0104] The texture transparency determination unit is used to determine the texture transparency of each road surface point based on the texture coordinates of each road surface point according to a predefined road surface transparency transformation relationship.

[0105] The texture rendering value determination unit is used to determine the texture rendering value of each road surface point based on the initial texture value specified by the texture coordinates of each road surface point and the texture transparency of that road surface point.

[0106] Furthermore, the texture transparency determination unit can be specifically used for:

[0107] Based on predefined horizontal and vertical transparency transformation relationships, the horizontal and vertical texture transparency of each road surface point are determined according to its texture coordinates.

[0108] Calculate the product of the horizontal texture transparency, vertical texture transparency, and predefined road transparency for each road surface point, and use it as the texture transparency of that road surface point.

[0109] Furthermore, the road rendering device 400 may also include a texture transparency update module. This texture transparency update module can be used for:

[0110] Determine the type of road assistance effects for the navigation route;

[0111] Update the texture transparency of each surface point according to the effect rendering parameters corresponding to the effect type.

[0112] Furthermore, this texture transparency update module can be specifically used for:

[0113] If the effect type is a glow effect, then the glow transparency of each road surface point is determined according to the predefined glow radius, horizontal expansion ratio and glow preset transparency.

[0114] Update the texture transparency of each road surface point based on its glow transparency.

[0115] Furthermore, this texture transparency update module can also be specifically used for:

[0116] If the special effect type is a flowing light effect, then the transparency transformation ratio of each road surface point is determined according to the predefined flowing light radius and the proportion of the flowing light's longitudinal position.

[0117] Update the texture transparency of each road surface point based on the change ratio of its light transparency.

[0118] Furthermore, the road point acquisition module 410 can be specifically used for:

[0119] Obtain at least one first road auxiliary point located to the left of each road sign and at least one second road auxiliary point located to the right of that road sign;

[0120] The first road auxiliary point and the second road auxiliary point are in one-to-one correspondence.

[0121] In this embodiment, for each landmark in the navigation route, the corresponding road auxiliary point and its texture coordinates are obtained. Then, based on the texture coordinates of each road auxiliary point and the predefined road surface transparency transformation relationship, the texture rendering value of each road surface point can be determined, thereby rendering the corresponding virtual navigation road. This achieves the rendering of multiple effects within the virtual navigation road in a single step, eliminating the need for multiple rendering operations to overlay various road effects, simplifying the tedious steps of road rendering, and improving the efficiency and personalization of road rendering.

[0122] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, further details will not be provided here. Specifically, Figure 4 The apparatus 400 shown can execute any of the method embodiments in this application, and the foregoing and other operations and / or functions of each module in the apparatus 400 are respectively for implementing the corresponding processes in the various methods in the embodiments of this application. For the sake of brevity, they will not be described in detail here.

[0123] The apparatus 400 of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.

[0124] Figure 5 This is a schematic block diagram of an electronic device shown in an embodiment of this application.

[0125] like Figure 5 As shown, the electronic device 500 may include:

[0126] The system includes a memory 510 and a processor 520. The memory 510 stores computer programs and transfers the program code to the processor 520. In other words, the processor 520 can retrieve and run the computer program from the memory 510 to implement the methods described in the embodiments of this application.

[0127] For example, the processor 520 can be used to execute the above-described method embodiments according to instructions in the computer program.

[0128] In some embodiments of this application, the processor 520 may include, but is not limited to:

[0129] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0130] In some embodiments of this application, the memory 510 includes, but is not limited to:

[0131] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).

[0132] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 510 and executed by the processor 520 to perform the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.

[0133] like Figure 5 As shown, the electronic device may also include:

[0134] Transceiver 530, which can be connected to processor 520 or memory 510.

[0135] The processor 520 can control the transceiver 530 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 530 may include a transmitter and a receiver. The transceiver 530 may further include antennas, and the number of antennas may be one or more.

[0136] It should be understood that the various components in the electronic device are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.

[0137] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, embodiments of this application also provide a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.

[0138] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0139] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0140] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0141] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0142] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of rendering a road, characterized by, include: Obtain the road auxiliary point and texture coordinates of each landmark in the navigation route. The road auxiliary point is a location point set on both sides of the landmark according to the road width of the virtual navigation road to indicate the road boundary of the virtual navigation road. Based on the texture coordinates of the road auxiliary points and the predefined road surface transparency transformation relationship, the texture rendering value of each road surface point is determined. The road surface transparency transformation relationship is the mapping relationship between different texture intervals and transparency in the virtual navigation road, which is set according to the overall road effect in the virtual navigation road. Render the corresponding virtual navigation road based on the texture rendering value of each road surface point; The step of determining the texture rendering value of each road surface point based on the texture coordinates of the road auxiliary points and a predefined road surface transparency transformation relationship includes: Based on the texture coordinates of the road auxiliary points, interpolation is performed to obtain the corresponding road surface points, and the texture coordinates of each road surface point are determined. Based on a predefined road surface transparency transformation relationship, the texture transparency of each road surface point is determined according to its texture coordinates. The texture rendering value of each road surface point is determined based on the initial texture value specified by the texture coordinates of that road surface point and the texture transparency of that road surface point. The method of determining the texture transparency of each road surface point based on its texture coordinates, according to a predefined road surface transparency transformation relationship, includes: Based on predefined horizontal and vertical transparency transformation relationships, the horizontal and vertical texture transparency of each road surface point are determined according to its texture coordinates. The horizontal transparency transformation relationship represents the transparency transformation rules matched in different horizontal texture intervals, and the vertical transparency transformation relationship represents the transparency transformation rules matched in different vertical texture intervals. Calculate the product of the horizontal texture transparency, vertical texture transparency, and predefined road transparency for each road surface point, and use it as the texture transparency of that road surface point.

2. The method according to claim 1, characterized in that, After determining the texture transparency of each road surface point based on its texture coordinates according to a predefined road surface transparency transformation relationship, the process also includes: Determine the type of road assistance effects for the navigation route; Update the texture transparency of each surface point according to the effect rendering parameters corresponding to the effect type.

3. The method according to claim 2, characterized in that, The step of updating the texture transparency of each surface point according to the special effect rendering parameters corresponding to the special effect type includes: If the effect type is a glow effect, the glow transparency of each pavement point is determined according to the predefined glow radius, horizontal expansion ratio and glow preset transparency. The horizontal expansion ratio represents the proportion of the horizontal texture range that controls the gradual darkening of the glow by expanding on the glow radius. Update the texture transparency of each road surface point based on its glow transparency.

4. The method according to claim 2, characterized in that, The step of updating the texture transparency of each surface point according to the special effect rendering parameters corresponding to the special effect type includes: If the effect type is a flowing light effect, then the transparency transformation ratio of the flowing light at each road surface point is determined according to the predefined flowing light radius and the proportion of the flowing light's longitudinal position. The flowing light effect is to highlight the dynamic movement of a horizontal flowing light line in the longitudinal direction of the road. The proportion of the flowing light's longitudinal position indicates the relative longitudinal position of the flowing light effect represented by the horizontal flowing light line at the current rendering moment. Update the texture transparency of each road surface point based on the change ratio of its light transparency.

5. The method according to any one of claims 1 to 4, characterized in that, The process of obtaining the road auxiliary points corresponding to each landmark in the navigation route includes: Obtain at least one first road auxiliary point located to the left of each road sign and at least one second road auxiliary point located to the right of that road sign; The first road auxiliary point and the second road auxiliary point are in one-to-one correspondence.

6. A road rendering device, characterized in that, include: The road point acquisition module is used to acquire the road auxiliary point and the texture coordinates of the road auxiliary point corresponding to each road marker in the navigation route. The road auxiliary point is a position point set on both sides of the road marker according to the road width of the virtual navigation road to indicate the road boundary position of the virtual navigation road. The texture determination module is used to determine the texture rendering value of each road surface point based on the texture coordinates of the road auxiliary points and the predefined road surface transparency transformation relationship. The road surface transparency transformation relationship is the mapping relationship between different texture intervals and transparency in the virtual navigation road, which is set according to the overall road effect in the virtual navigation road. The road rendering module is used to render the corresponding virtual navigation road based on the texture rendering value of each road surface point. The texture determination module includes: An interpolation unit is used to interpolate the corresponding road surface points based on the texture coordinates of the road auxiliary points, and to determine the texture coordinates of each road surface point. The texture transparency determination unit is used to determine the texture transparency of each road surface point based on the texture coordinates of each road surface point according to a predefined road surface transparency transformation relationship. The texture rendering value determination unit is used to determine the texture rendering value of each road surface point based on the initial texture value specified by the texture coordinates of each road surface point and the texture transparency of that road surface point. The texture transparency determination unit is specifically used for: Based on predefined horizontal and vertical transparency transformation relationships, the horizontal and vertical texture transparency of each road surface point are determined according to its texture coordinates. The horizontal transparency transformation relationship represents the transparency transformation rules matched in different horizontal texture intervals, and the vertical transparency transformation relationship represents the transparency transformation rules matched in different vertical texture intervals. Calculate the product of the horizontal texture transparency, vertical texture transparency, and predefined road transparency for each road surface point, and use it as the texture transparency of that road surface point.

7. An electronic device, characterized in that, include: A processor and a memory, the memory being used to store a computer program, the processor being used to invoke and run the computer program stored in the memory to perform the road rendering method according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the road rendering method as described in any one of claims 1-5.

9. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the road rendering method as described in any one of claims 1-5.