Model rendering method and device, electronic equipment and storage medium

By determining the target model area in the screen space in the electronic device and setting the detail level according to the mapping error, the problem of poor calculation pressure and poor results of electronic devices during rendering of three-dimensional models is solved, and efficient rendering effect is achieved.

CN118941691APending Publication Date: 2024-11-12NANJING OPPO SOFTWARE TECH CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310518086.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-09
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Existing electronic devices require a large amount of computing resources when rendering three-dimensional models, resulting in high processing pressures, and fixed-level detailed strategies may lead to poor rendering or inability to maximize optimization.

Method used

Rendering is performed by determining the target model area corresponding to each target sub-region in the screen space and determining the target detail level based on the mapping error, so that the position error after the model vertices are mapped to the screen space at the target detail level is less than the threshold.

Benefits of technology

While saving model rendering overhead, it ensures the effect and accuracy of model rendering, and maintains the geometric structure and color information of the object.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941691A_ABST
    Figure CN118941691A_ABST
Patent Text Reader

Abstract

The invention discloses a model rendering method and device, electronic equipment and a storage medium. The model rendering method comprises the following steps: determining that each target sub-region in a screen space corresponds to a target model region in a to-be-rendered target object model; a target detail level corresponding to each target model area is determined, a mapping error of a model vertex in the target model area under the target detail level is smaller than a first threshold value, and the mapping error is at least used for representing a position error of the model vertex after the model vertex is mapped to a screen space under the target detail level; the position error is the deviation between the position of the model vertex mapped to the screen space under the target detail level and the position of the model vertex mapped to the screen space under the minimum detail level; and rendering each target model region based on the target detail level corresponding to each target model region. According to the method, the model rendering effect can be ensured while the cost of model rendering is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a model rendering method, device, electronic device and storage medium. Background Art

[0002] With the rapid advancement of technology and living standards, electronic devices (such as smartphones, tablets, smart glasses, etc.) have become one of the commonly used electronic products in people's lives. In some scenarios, electronic devices need to render three-dimensional models, and the rendering of three-dimensional models often requires a lot of calculations and processing, which brings huge processing pressure to electronic devices. Summary of the invention

[0003] The present application proposes a model rendering method, device, electronic device and storage medium, which can save the cost of model rendering while ensuring the effect of model rendering.

[0004] In a first aspect, an embodiment of the present application provides a model rendering method, the method comprising: determining that each target sub-region in the screen space corresponds to a target model region in a target object model to be rendered; determining a target detail level corresponding to each of the target model regions, wherein a mapping error of model vertices in the target model region at the target detail level is less than a first threshold, and the mapping error is at least used to characterize a position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is a deviation between a position of the model vertex after being mapped to the screen space at the target detail level and a position of the model vertex after being mapped to the screen space at a minimum detail level; rendering each of the target model regions based on the target detail level corresponding to the target model region.

[0005] In a second aspect, an embodiment of the present application provides a model rendering device, comprising: an area determination module, a level determination module and an area rendering module, wherein the area determination module is used to determine that each target sub-area in the screen space corresponds to a target model area in the target object model to be rendered; the level determination module is used to determine the target detail level corresponding to each of the target model areas, wherein a mapping error of model vertices in the target model area at the target detail level is less than a first threshold, and the mapping error is at least used to characterize a position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is a deviation between the position of the model vertex after being mapped to the screen space at the target detail level and the position of the model vertex after being mapped to the screen space at the minimum detail level; the area rendering module is used to render each of the target model areas based on the target detail level corresponding to each of the target model areas.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the model rendering method provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the model rendering method provided in the first aspect above.

[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the model rendering method provided in the first aspect above.

[0009] The solution provided by the present application is to determine that each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered; determine the target detail level corresponding to each target model region, wherein the mapping error of the model vertices in the target model region at the target detail level is less than a first threshold value, and the mapping error is at least used to characterize the position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is the deviation between the position of the model vertex after being mapped to the screen space at the target detail level and the position of the model vertex after being mapped to the screen space at the minimum detail level; render each target model region based on the target detail level corresponding to each target model region. Therefore, since the determined detail level of the model region can satisfy that the mapping error of the model vertex in the model region after being mapped to the screen space is less than the first threshold value, when the model is rendered by the detail level technology, the accuracy of the detail level corresponding to different model regions can be guaranteed, and thus the effect of model rendering can be guaranteed while saving the cost of model rendering. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 A flow chart of a model rendering method according to an embodiment of the present application is shown.

[0012] Figure 2A flow chart of a model rendering method according to another embodiment of the present application is shown.

[0013] Figure 3 A schematic diagram showing region division for a target object model at different detail levels in an embodiment of the present application is shown.

[0014] Figure 4 A schematic diagram showing region division for a target object model at different detail levels in an embodiment of the present application is shown.

[0015] Figure 5 A schematic diagram showing region division for a target object model at different detail levels in an embodiment of the present application is shown.

[0016] Figure 6 A schematic diagram of a multi-level asymptotic texture corresponding to a mapping error provided in an embodiment of the present application is shown.

[0017] Figure 7 A flow chart of a model rendering method according to yet another embodiment of the present application is shown.

[0018] Figure 8 A flow chart of a model rendering method according to yet another embodiment of the present application is shown.

[0019] Fig. 9 A schematic diagram showing the principle of determining a target model area provided in an embodiment of the present application is shown.

[0020] Fig.10 A block diagram of a model rendering device according to an embodiment of the present application is shown.

[0021] Fig.11 It is a block diagram of an electronic device for executing the model rendering method according to an embodiment of the present application.

[0022] Fig.12 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the model rendering method according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] Electronic devices need to render 3D models in many display scenarios. For example, the concept of the currently popular metaverse, in which there may be rich terrain and a large number of complex mesh 3D objects, often requires a lot of computing resources to render 3D models of these contents, thus bringing huge processing pressure to electronic devices.

[0025] In related technologies, the technology of compressing model mesh is often used to optimize rendering. When rendering models in a scene, the Level of Detail (LOD) strategy is usually set for the objects in the scene. For example, the near end of the view frustum needs to use a lower LOD for high-resolution rendering, and the mesh uses a lower compression ratio for rendering; while the far end of the view frustum needs to use a higher LOD for low-resolution rendering, and the mesh uses a higher compression ratio for rendering. However, if a fixed strategy is used, the LOD level may be inaccurate, resulting in poor rendering effects in some areas, or failure to achieve maximum optimization.

[0026] In response to the above problems, the inventors have proposed a model rendering method, device, electronic device, and storage medium provided in the embodiments of the present application, which can ensure that the level of detail of the determined model area can satisfy the mapping error of the model vertices in the model area after being mapped to the screen space is less than the first threshold. Therefore, when the model is rendered using the level of detail technology, the accuracy of the level of detail corresponding to different model areas can be guaranteed, thereby saving the cost of model rendering while ensuring the effect of model rendering. The specific model rendering method is described in detail in the subsequent embodiments.

[0027] The model rendering method provided in the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.

[0028] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a model rendering method provided by an embodiment of the present application. In a specific embodiment, the model rendering method is applied to Fig.10 The model rendering device 400 and the electronic device 100 ( Fig.11 ), the electronic device 100 may be a smart phone, a head mounted display device, a tablet computer, a smart watch, an e-book, etc. Figure 1 The process shown is described in detail, and the model rendering method may specifically include the following steps:

[0029] Step S110: Determine whether each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered.

[0030] In the embodiment of the present application, the screen space can be understood as the coordinate system corresponding to the established screen. When the screen displays the content, it is necessary to map the content to be displayed to the screen space and then render it; the target object model can be the object model to be displayed by the electronic device, and the object model can be a three-dimensional model representing the object. The object can be a person, a building, an animal, etc., and the specific target object model can be not limited. When the electronic device displays the target object model, it can be determined that each target sub-area in the screen space corresponds to the target model area in the target object model to be displayed, so as to render the corresponding level of detail for each target model area.

[0031] In some embodiments, the target sub-region in the screen space may be the sub-region occupied by the target object model when it is mapped to the screen space, that is, these target sub-regions correspond to different regions of the target object model, so that the screen can display different regions of the target object model. Among them, the electronic device can project the target object model to the screen space (i.e., map it to the screen space) according to the conversion relationship between the model space corresponding to the target object model and the screen space, so that all the target sub-regions occupied by the target object model in the screen space can be determined, and then the model area corresponding to each target sub-region can be determined. For example, the target object model is a person, the upper body area of ​​the person is mapped to the target sub-region in the screen space as sub-region A, and the upper body area of ​​the person is mapped to the target sub-region in the screen space as sub-region B, then the target model area corresponding to sub-region A is the upper body area, and the target model area corresponding to sub-region B is the lower body area.

[0032] In a possible implementation, the screen space may be divided into multiple sub-regions according to target rules, whereby, based on all target sub-regions occupied by the target object model mapped to the multiple divided sub-regions of the screen space, the target model region corresponding to each target sub-region may be determined from these target sub-regions.

[0033] Step S120: Determine the target detail level corresponding to each target model area, wherein a mapping error of the model vertices in the target model area at the target detail level is less than a first threshold, and the mapping error is at least used to characterize a position error of the model vertices after being mapped to the screen space at the target detail level, and the position error is a deviation between the position of the model vertex after being mapped to the screen space at the target detail level and the position of the model vertex after being mapped to the screen space at the minimum detail level.

[0034] In an embodiment of the present application, after determining the above target model areas, the target detail level corresponding to each target model area can be determined for each target model area. When determining the target detail level corresponding to each target model area, it is necessary to ensure that the mapping error of the model vertices in the target model area at the determined target detail level is less than a first threshold, and the mapping error is at least used to characterize the deviation between the position of the model vertex after being mapped to the screen space at the target detail level and the position of the model vertex after being mapped to the screen space at the minimum detail level, so that the target detail level determined can ensure rendering accuracy, and thus ensure the rendering effect. Among them, the detail level is a level determined by using the detail level technology. The detail level technology refers to determining the resource allocation for object rendering according to the position and importance of the nodes of the object model in the display environment, reducing the number of faces and detail of non-important objects, thereby obtaining efficient rendering operations. At different detail levels, the compression ratio of the object model is different, and the higher the detail level, the greater the compression ratio of the object model, and the smaller the displayed details. At the minimum detail level, the object model is an uncompressed original model, which displays the most details. For example, the detail level includes LOD0, LOD1, LOD2 and LOD3 with increasing detail levels. The object model under LOD0 is an uncompressed model, and the details it displays are At most, the compression ratios corresponding to LOD1, LOD2, and LOD3 increase in turn, and the details presented decrease in turn; the position error is the deviation between the positions of the model vertices after being mapped to the screen space at the target detail level and the positions of the model vertices after being mapped to the screen space at the minimum detail level. It can be understood that the detail display effect of the target object model at the minimum detail level is the best, and the positions of the model vertices after being mapped to the screen space are also the most accurate. Therefore, the positions of the model vertices after being mapped to the screen space at the target detail level are compared with the positions of the model vertices after being mapped to the screen space at the minimum detail level. The position error determined can reflect the accuracy of the positions of the model vertices after being mapped to the screen space at the target detail level.

[0035] In some embodiments, the electronic device can determine the mapping error of the target model region at different detail levels from multiple detail levels for each target model region, until the detail level with a mapping error less than the first threshold is determined, and the mapping error is used as the target detail level corresponding to the target model region. It can be understood that the compression ratio of the target object model at different detail levels is different. The larger the detail level, the larger the compression ratio, and the fewer details are presented; and when the compression ratio is larger, the fewer meshes on the surface of the target object model, that is, after the object model is compressed compared to the object model at the minimum detail level (the object model is not compressed at this time), multiple meshes originally at the minimum detail level may be compressed into the same mesh, and when the compression ratio is larger, more meshes are compressed into the same mesh, so there will be a situation where multiple model vertices originally at the minimum detail level correspond to the same model vertex when the compression ratio is larger, so the model vertex will have different position deviations at different detail levels compared to the minimum detail level, and will also have different position deviations after being mapped to the screen space, so the above method can be used to determine the detail level with a mapping error less than the first threshold for each target model region, thereby ensuring the effect of model rendering.

[0036] In a possible implementation, when determining the above mapping error, the position error of the model vertex in the target model area at different detail levels can be determined, and then the above mapping error can be determined based on the position error. Optionally, the position error can be used as the above mapping error, or the position error can be further quantified (e.g., normalized) to obtain the above mapping error, and other errors existing when the model vertex is mapped to the screen space at different detail levels can be obtained, and the above mapping error can be determined in combination with the position error and other errors, so that the mapping error can not only characterize the above position error, but also characterize other errors.

[0037] Step S130: Rendering each of the target model regions based on the target detail level corresponding to each of the target model regions.

[0038] In the embodiment of the present application, after determining the target detail level corresponding to each target model area, each target model area can be rendered based on the target detail level corresponding to each target model area, thereby completing the rendering when the target object model is displayed on the screen. It can be understood that after completing the rendering of each target model area, the rendering of the content displayed in each target sub-area occupied by the target object model after being mapped to the screen space is completed, thereby completing the rendering when the target object model is displayed on the screen.

[0039] In some embodiments, when rendering each target model area based on the target detail level corresponding to each target model area, the model data (such as vertex data, color data, etc.) of each target model area at the target detail level can be obtained, and then rendering is performed according to the model data of each target model area at the target detail level, thereby completing the rendering of the target object model.

[0040] In addition, after rendering each target model area, the rendered image data can be displayed on the screen to complete the display of the target object model. Among them, each target model area can be rendered and displayed on the screen through SurfaceFlinger. SurfaceFlinger is an independent Service, which receives the Surface of all Windows as input, calculates the position of each Surface in the final composite image according to parameters such as ZOrder, transparency, size, and position, and then hands it over to the hardware synthesizer to generate the final display Buffer, which is then displayed on the screen.

[0041] The model rendering method provided in the embodiment of the present application can ensure that the mapping error of the model vertices in the model area after being mapped to the screen space is less than a first threshold value by determining the detail level of each model area. Therefore, when the model is rendered using the detail level technology, the accuracy of the detail levels corresponding to different model areas can be guaranteed, and the geometric structure and color information of the object can be maintained, thereby saving the cost of model rendering while ensuring the effect of model rendering.

[0042] See also Figure 2 , Figure 2 A schematic diagram of a model rendering method provided by another embodiment of the present application is shown. The model rendering method is applied to the above electronic device. Figure 2 The process shown is described in detail, and the model rendering method may specifically include the following steps:

[0043] Step S210: Determine whether each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered.

[0044] In the embodiment of the present application, step S210 can refer to the contents of other embodiments and will not be repeated here.

[0045] Step S220: for each of the target model regions, obtaining mapping errors of model vertices in the target model region at a first detail level, where the first detail level is any detail level except the minimum detail level.

[0046] In an embodiment of the present application, the electronic device can determine the mapping error of each target model area at a first detail level for each target model area, where the first detail level is any detail level other than a minimum detail level. When determining the mapping error of each target model area at the first detail level, the position error of the model vertices in the target model area after being mapped to the screen space at the first detail level can be obtained, that is, the deviation between the position of the model vertices after being mapped to the screen space at the target detail level and the position of the model vertices after being mapped to the screen space at the minimum detail level, and then the mapping error is determined based on the position error.

[0047] In some embodiments, when obtaining the position error of the model vertices in the target model area after being mapped to the screen space at the first detail level for each target model area, the vertex error of the model vertices in the target model area at the first detail level can be obtained for each target model area, and the vertex error is the deviation between the vertex position corresponding to the model vertex at the first detail level and the vertex position corresponding to the model vertex at the minimum detail level; based on the conversion relationship between the model space corresponding to the target model and the screen space, the vertex error of the model vertex in the target model area at the first detail level is converted into a position error, and the position error of the model vertex in the target model area after being mapped to the screen space at the first detail level is obtained. Wherein, the above conversion relationship can be a predetermined projection matrix between the model space and the screen space; the above position error can be understood as a two-dimensional error after the model vertex is mapped to the screen space.

[0048] In some implementations, for each target model region, the position error of the model vertices in the target model region after being mapped to the screen space at the first detail level may be obtained as the mapping error of the model vertices in the target model region at the first detail level. Of course, the position error may also be further quantified (e.g., normalized), and the value obtained after quantization may be used as the above mapping error.

[0049] In some embodiments, for each target model region, according to the error mapping relationship corresponding to the target object model, the vertex error of the model vertex in the target model region at the first detail level can be obtained, and the error mapping relationship includes the vertex error of different model regions of the target object model at each detail level except the minimum detail level. Thus, by constructing the above error mapping relationship for the target object model in advance, when rendering the target object model in different scenes, the vertex error of different target model regions at the corresponding detail level can be quickly determined, and then the mapping error can be quickly determined. Among them, the vertex error of the model vertex in the above target model region at the first detail level can be the sum of the vertex errors of all model vertices in the target model region at the first detail level, that is, for each model vertex in the target model region, the deviation between the vertex position corresponding to the model vertex at the first detail level and the vertex position corresponding to the model vertex at the minimum detail level is determined in the model space, and then the deviation of each model vertex in the target model region is summed to obtain the vertex error of the model vertex in the target model region at the first detail level.

[0050] In a possible implementation, when determining the above error mapping relationship, the target object model at each detail level can be divided into the same grid area; for each detail level except the minimum detail level, the vertex error in each grid area of ​​the target object model is obtained to obtain the error mapping relationship. For example, please also refer to Figure 3 , Figure 4 and Figure 5 , all detail levels include detail level 1, detail level 2 and detail level 3 with increasing detail levels, wherein detail level 1 is the minimum detail level, and the larger the detail level is, the fewer details the object model presents; mesh division of the same specification (i.e., the same mesh shape and size) can be performed for the target object models at detail levels 1, detail levels 2 and detail levels 3, and in the model space, the number of mesh vertices contained in mesh areas at different detail levels is different; after mesh area division, the vertex error in each mesh area can be determined for the target object models at detail levels 2 and detail levels 3, and the vertex error in each mesh area can be the sum of the errors between the position of each vertex in the mesh area and the position of the corresponding vertex in detail level 1 (minimum detail level).

[0051] Optionally, when calculating the error between the position of any vertex in the mesh area at any detail level and the position of the corresponding vertex at the minimum detail level, the error can be calculated based on the position coordinates of the vertex position. For example, assuming that any vertex P (x0, y0, z0) at the minimum detail level corresponds to a vertex Q (xi, yi, zi) at the second detail level (any detail level except the minimum detail level), the position error of the vertex Q can be defined as in, and are three vectors that are perpendicular to each other in the model space. Thus, the vertex error E of each vertex in the mesh area at any detail level can be obtained, and then each E is superimposed, that is, ∑E is calculated, so that the vertex error corresponding to the mesh area at any detail level can be obtained. After the vertex error is determined for the mesh area at each detail level except the minimum detail level, the vertex error of different model areas (i.e. corresponding to different mesh areas) of the target object model at each detail level except the minimum detail level can be constructed.

[0052] Optionally, to increase the speed of determining the above mapping relationship, the vertex error of each mesh area at a secondary detail level just higher than the minimum detail level may be calculated, and then the vertex error of each mesh area at the next detail level may be determined in order from small to large detail levels. When calculating the vertex error of each mesh area at the next detail level, the maximum value of the vertex errors in the corresponding four mesh areas at the previous detail level may be taken, thereby quickly determining the vertex errors in different mesh areas at each detail level.

[0053] In one embodiment, the above mapping relationship can be constructed in the form of a multi-level mipmap, where the multi-level mipmap corresponds to multiple detail levels. Figure 6As shown, for multiple levels of detail, a multi-level Mipmap can be constructed. The level of detail corresponding to the Mipmap in the multi-level Mipmap increases from bottom to top, and the vertex error corresponding to the mesh area can be recorded in each level of Mipmap. In this way, the established multi-level Mipmap can accurately represent the vertex error of different model areas of the target object model at each level of detail except the minimum level of detail. Among them, in order to speed up the rendering speed and reduce image aliasing, the map is processed into a file composed of a series of pre-calculated and optimized pictures. Such a map is called Mipmap. Each level of the small picture in the Mipmap is a replica of a specific scale of the main picture with reduced details. For example, if the basic size of the map is 256x256 pixels, the Mipmap will have 8 levels, each level is one-fourth the size of the previous level, and the level sizes are: 128*128, 64*64, 32*32, 16*16, 8*8, 4*4, 2*2, 1*1 (one pixel).

[0054] The following is an example to illustrate the principle of using the above Mipmap to determine the position error of each target model area after being mapped to the screen space at the first detail level. Exemplarily, for a vertex Pi(xi,yi,zi) in the target object model at the first detail level, the corresponding vertex of Pi in the target object model at the minimum detail level is P0(x0,y0,z0). Assuming that the projection matrix projected to the screen is MVP, the screen error of the two points projected to the screen is MVP*Pi-MVP*P0. According to the matrix distribution law, MVP*Pi-MVP*P0=MVP*(Pi-P0), where (Pi-P0) is the vertex error. For a target model area S, the vertex set in the corresponding target model area S at the first detail level is {Pi_1,Pi_2,Pi_3,Pi_4,...}. The vertex set corresponding to the target model area S at the minimum detail level is {P0_1, P0_2, P0_3, P0_4, ...}, which can be calculated by: MVP*∑{Pi_1, Pi_2, Pi_3, Pi_4, ...}-MVP*∑{P0_1, P0_2, P0_3, P0_4, ...}=MVP*(∑{Pi_1, Pi_2, Pi_3, Pi_4, ...}-∑{P0_1, P0_2, P0_3, P0_4, ...}). This formula represents the two-dimensional error generated in the screen space by the target model area S at the first detail level, so it can be used as the position error of the target model area S at the first detail level. The vertex error of the target model area S represented by (∑{Pi_1,Pi_2,Pi_3,Pi_4,...}-∑{P0_1,P0_2,P0_3,P0_4,...}) can be quickly obtained by the MipMap established above, because the corresponding positions of the vertices in the target model area S can be determined in the MipMap, so the recorded vertex errors can be queried.

[0055] In some embodiments, the above error mapping relationship can be established for target object models at different viewing angles, so that when target object models at different viewing angles are displayed in different scenes, the mapping error can be quickly determined.

[0056] Step S230: If the mapping error of the model vertex at the first detail level is less than a first threshold, the first detail level is determined as the target detail level corresponding to the target model area.

[0057] In an embodiment of the present application, after determining the mapping error of the model vertices in the target model area at the first detail level, the mapping error can be compared with the first threshold; according to the comparison result, if the mapping error is less than the first threshold, it means that after the target model area is rendered at the first detail level, its geometric structure information is accurate, so the target model area can be accurately rendered, so the first detail level can be determined as the target detail level corresponding to the target model area; conversely, if the mapping error is greater than or equal to the first threshold, it means that the accuracy of rendering the target model area at the first detail level is insufficient, so it is necessary to update the first detail level to other detail levels, and then return to step S220 until the detail level whose mapping error is less than the first threshold is determined, that is, the electronic device can traverse each detail level except the minimum detail level, and execute step S220 until the detail level whose mapping error is less than the first threshold is determined. Among them, the specific value of the first threshold may not be limited, and it can be determined according to the required rendering accuracy.

[0058] In some implementations, the electronic device traverses each detail level except the minimum detail level in descending order of detail levels, and executes step S220 until a detail level whose mapping error is less than a first threshold is determined. Thus, the determined detail level can satisfy the maximum compression of the target model area, thereby minimizing the rendering overhead.

[0059] In a possible implementation, for each target model area, in order of detail levels from large to small, each detail level except the minimum detail level is traversed, and step S220 is executed until a detail level whose mapping error is less than a first threshold is determined. In this process, the initially adopted first detail level can be determined by: determining whether, at any detail level, the target model area is located within any compressed unit area (e.g., a grid) of the target object model at that detail level; if, at one of the detail levels, the target model area is located within any compressed unit area of ​​the target object model at that detail level, it can be determined as the initially adopted first detail level, thereby ensuring that the initially selected first detail level can ensure the compression ratio.

[0060] In some embodiments, when determining the target detail level corresponding to any target model area, if it is determined that the mapping errors of the model vertices in the target model area at each detail level except the minimum detail level are greater than or equal to a first threshold, the minimum detail level can be determined as the target detail level corresponding to the target model area.

[0061] Step S240: Rendering each of the target model regions based on the target detail level corresponding to each of the target model regions.

[0062] In the embodiment of the present application, step S240 can refer to the contents of other embodiments and will not be repeated here.

[0063] The model rendering method provided in the embodiment of the present application determines, for each target sub-area in the screen space, a target model area in the target object model to be rendered, and determines a target detail level corresponding to each model area. The determined detail level of each model area can satisfy that a mapping error after the model vertices in the model area are mapped to the screen space is less than a first threshold. Therefore, when the model is rendered using the detail level technology, the accuracy of the detail levels corresponding to different model areas can be guaranteed, and the geometric structure and color information of the object can be maintained, thereby saving the overhead of model rendering while ensuring the effect of model rendering.

[0064] See also Figure 7 , Figure 7 A schematic diagram of a model rendering method provided by another embodiment of the present application is shown. The model rendering method is applied to the above electronic device. Figure 7 The process shown is described in detail, and the model rendering method may specifically include the following steps:

[0065] Step S310: Determine whether each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered.

[0066] Step S320: for each of the target model regions, obtaining position errors of model vertices in the target model region after being mapped to the screen space at a first detail level, where the first detail level is any detail level except the minimum detail level.

[0067] In the embodiment of the present application, step S310 and step S320 may refer to the contents of other embodiments and will not be described in detail here.

[0068] Step S330: For each of the target model areas, obtain the color error of the model vertices in the target model area at the first detail level, where the color error is the error between the color of the model vertices in the target model area at the first detail level and the color of the model vertices in the target model area at the minimum detail level.

[0069] In the embodiment of the present application, when determining the mapping error of the model vertices in the target model area at the first detail level, in addition to determining the position error of the model vertices in the target model area after being mapped to the screen space at the first detail level, the color error of the model vertices in the target model area at the first detail level may also be determined, so as to more accurately determine the mapping error. The above color error may be determined by comparing the difference between the colors at the first detail level and the minimum detail level.

[0070] Step S340: Determine the mapping error of the model vertices in the target model area at the first detail level based on the position error of the model vertices in the target model area after being mapped to the screen space at the first detail level and the color error of the model vertices in the target model area at the first detail level.

[0071] In an embodiment of the present application, after obtaining the position error of the model vertices in the target model area after being mapped to the screen space at the first detail level, and the color error of the model vertices in the target model area at the first detail level, the above mapping error can be determined based on the obtained position error and color error, so that the determined mapping error can not only characterize the position error of the model vertices after being mapped to the screen space at the first detail level, but also characterize the color error, thereby improving the accuracy of the target detail level determined according to the mapping error.

[0072] In some embodiments, the position error of the model vertices in the target model area after being mapped to the screen space at the first detail level and the color error of the model vertices in the target model area at the first detail level may be weighted and summed according to the predetermined first weight and second weight to obtain the above mapping error. The first weight corresponds to the above position error, the second weight corresponds to the above color error, and the values ​​of the first weight and the second weight may not be limited, for example, the first weight may be 0.5, the second weight may be 0.5, or the first weight may be 0.7, and the second weight may be 0.3.

[0073] Step S350: If the mapping error of the model vertex at the first detail level is less than a first threshold, the first detail level is determined as the target detail level corresponding to the target model area.

[0074] Step S360: Rendering each of the target model regions based on the target detail level corresponding to each of the target model regions.

[0075] In the embodiment of the present application, step S350 and step S360 can refer to the contents of other embodiments and will not be repeated here.

[0076] The model rendering method provided in the embodiment of the present application determines the target detail level for each target sub-area in the screen space by determining the position error and color error of the target sub-area at the corresponding detail level, and further determines the mapping error. When the mapping error is less than a first threshold, it is determined as the target detail level. Therefore, when the model is rendered by the detail level technology, not only the position error after mapping to the screen space is considered, but also the color error is considered, thereby improving the accuracy of the detail levels corresponding to different model areas, maintaining the geometric structure and color information of the object, and thereby saving the cost of model rendering while ensuring the effect of model rendering.

[0077] See also Figure 8 , Figure 8 A schematic diagram of a model rendering method provided by another embodiment of the present application is shown. The model rendering method is applied to the above electronic device. Figure 8 The process shown is described in detail, and the model rendering method may specifically include the following steps:

[0078] Step S410: Determine a target screen area corresponding to the target object model in the screen space.

[0079] In an embodiment of the present application, when rendering a target object model, the electronic device can determine the target screen area corresponding to the target object model in the screen space. The electronic device can map the target object model to the screen space according to a predetermined conversion relationship between the model space and the screen space, thereby determining the target screen area corresponding to the target object model in the screen space.

[0080] Step S420: acquiring a screen sub-region corresponding to the target screen region from the plurality of screen sub-regions divided into the screen space, to obtain a target sub-region.

[0081] In the embodiment of the present application, after determining the above target screen area, the screen sub-area corresponding to the target screen area can be obtained from the multiple screen sub-areas divided into the screen space to obtain the target sub-area. The screen space is divided into multiple screen sub-areas according to the target division rule, and the corresponding screen sub-area can be determined according to the target screen area occupied by the target object model and used as the target sub-area.

[0082] In some embodiments, the multiple screen sub-regions divided into the screen space may be sub-regions of the same size. Optionally, the specific size of each screen sub-region may be smaller than the target size. It is understandable that the smaller the size of the screen sub-region, the higher the accuracy of the subsequent rendering of the target sub-region for the target detail level corresponding to the determined target sub-region.

[0083] Step S430: Determine whether each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered.

[0084] In the embodiment of the present application, after all the above target sub-regions are determined, it can be determined that each target sub-region corresponds to a target model region in the target object model to be rendered. Fig. 9 , the screen space can be divided into multiple grid areas of the same specification, that is, the above target sub-area is one of the grid areas. For the grid area, the corresponding target model area S in the target object model can be determined.

[0085] Step S440: Determine the target detail level corresponding to each target model area.

[0086] The mapping error of the model vertices in the target model area at the target detail level is less than a first threshold, and the mapping error is at least used to characterize the position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is the deviation between the position of the model vertex after being mapped to the screen space at the target detail level and the position of the model vertex after being mapped to the screen space at the minimum detail level.

[0087] In the embodiment of the present application, step S440 can refer to the contents of the aforementioned embodiment and will not be repeated here.

[0088] Step S450: for each of the target model regions, based on the target detail level corresponding to the target model region, acquiring the model data of the target model region at the corresponding target detail level, thereby obtaining the model data corresponding to the target model region.

[0089] In an embodiment of the present application, when rendering each target model area for the target detail level corresponding to each target model area, the model data of the target model area at the corresponding target detail level can be obtained to obtain the model data corresponding to the target model area, so as to achieve rendering of the target model area at the target detail level based on the acquired model data.

[0090] In some embodiments, the electronic device may determine, for each target model area, the model data corresponding to the target model area from the model data of the target object model at the target detail level based on the target detail level corresponding to the target model area. The electronic device may pre-store model data of the target object model at different detail levels, that is, model data obtained by compressing the target object model at the minimum detail level at other different detail levels with different compression ratios. Thus, according to the target detail level determined above, the model data corresponding to the target model area may be determined from the model data at the target detail level. It can be understood that when the detail level is different, the model data corresponding to the same model area is also different. It is for this reason that model rendering at different detail levels can be achieved based on the model data at different detail levels.

[0091] In a possible implementation, the model data of the above target object model at different detail levels can be obtained in the following manner:

[0092] The model data of the target object model at the minimum detail level is obtained; based on the model data of the target object model at the minimum detail level, the model data of the target object model at each detail level other than the minimum detail level is generated, wherein the model compression ratio of the target object model at different detail levels is different. It can be understood that the target object model at the minimum detail level can be compressed with different compression ratios, wherein the larger the detail level, the larger the compression ratio, thereby obtaining the model data at each detail level other than the minimum detail level, wherein the smaller the detail level, the higher the compression ratio of the target object model.

[0093] Optionally, the target object model at the minimum detail level can be compressed with different compression ratios by using Draco compression, so as to obtain model data at each detail level except the minimum detail level. Draco is a solution responsible for compressing and decompressing 3D mesh and 3D point cloud, which can effectively optimize 3D graphics storage and transmission, and is widely used in the currently commonly used 3D GLTF model.

[0094] Step S460: Rendering each of the target model regions based on the model data corresponding to each of the target model regions.

[0095] In an embodiment of the present application, after obtaining the model data corresponding to each of the target model areas, each target model area can be rendered based on the model data corresponding to each target model area. Since the model data corresponding to the target model area corresponds to the above target detail level, the rendering of the target model area at the target detail level can be achieved.

[0096] The model rendering method provided in the embodiment of the present application determines the target screen area corresponding to the target object model in the screen space, and then obtains the target sub-area corresponding to the target screen area from the multiple screen sub-areas divided into the screen space, and then determines the detail level corresponding to each model area, and the determined detail level of each model area can satisfy that the mapping error after the model vertices in the model area are mapped to the screen space is less than a first threshold. Therefore, when the model is rendered by the detail level technology, the model data of the target model area at the target detail level can be used to complete the rendering of the target model area, thereby ensuring the rendering accuracy of different model areas, maintaining the geometric structure and color information of the object, and thus saving the overhead of model rendering while ensuring the effect of model rendering.

[0097] See also Fig.10 , which shows a structural block diagram of a model rendering device 500 provided in an embodiment of the present application. The model rendering device 500 applies the above-mentioned electronic device, and the model rendering device 500 includes: a region determination module 510, a level determination module 520 and a region rendering module 530. The region determination module 510 is used to determine that each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered; the level determination module 520 is used to determine the target detail level corresponding to each of the target model regions, wherein the mapping error of the model vertices in the target model region at the target detail level is less than a first threshold, and the mapping error is at least used to characterize the position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is the deviation between the position of the model vertex after being mapped to the screen space at the target detail level and the position of the model vertex after being mapped to the screen space at the minimum detail level; the region rendering module 530 is used to render each of the target model regions based on the target detail level corresponding to each of the target model regions.

[0098] In some embodiments, the level determination module 520 can be specifically used to: for each target model area, obtain the mapping error of the model vertices in the target model area at a first detail level, where the first detail level is any detail level except the minimum detail level; if the mapping error is less than a first threshold, determine the first detail level as the target detail level corresponding to the target model area.

[0099] In a possible implementation, the level determination module 520 can also be used to obtain, for each target model area, a position error of the model vertices in the target model area after being mapped to the screen space at the first detail level, as a mapping error of the model vertices in the target model area at the first detail level.

[0100] In a possible implementation, the level determination module 520 may also be used to obtain, for each target model area, a position error of the model vertices in the target model area after being mapped to the screen space at the first detail level; for each target model area, obtain a color error of the model vertices in the target model area at the first detail level, the color error being the error between the color of the model vertices in the target model area at the first detail level and the color of the model vertices in the target model area at the minimum detail level; based on the position error of the model vertices in the target model area after being mapped to the screen space at the first detail level, and the color error of the model vertices in the target model area at the first detail level, determine the mapping error of the model vertices in the target model area at the first detail level.

[0101] Optionally, the level determination module 520 can also be used to obtain, for each target model area, vertex errors of model vertices in the target model area at the first detail level, the vertex error being the deviation between the vertex positions corresponding to the model vertices at the first detail level and the vertex positions corresponding to the model vertices at the minimum detail level; based on the conversion relationship between the model space corresponding to the target model and the screen space, the vertex errors of the model vertices in the target model area at the first detail level are converted into position errors, so as to obtain the position errors of the model vertices in the target model area after being mapped to the screen space at the first detail level.

[0102] Optionally, the level determination module 520 can also be used to obtain, for each target model area, vertex errors of model vertices in the target model area at the first detail level according to an error mapping relationship corresponding to the target object model, wherein the error mapping relationship includes vertex errors of different model areas of the target object model at each detail level except the minimum detail level.

[0103] Optionally, the model rendering device 500 may further include a mesh division module and a relationship determination module. The mesh division module is used to perform the same mesh region division on the target object model at each detail level before obtaining the vertex errors of the model vertices in the target model region at the first detail level according to the error mapping relationship corresponding to the target object model for each target model region; the relationship determination module is used to obtain the vertex errors in each mesh region of the target object model for each detail level except the minimum detail level to obtain the error mapping relationship.

[0104] In some embodiments, the area determination module 510 can also be used to determine the target screen area corresponding to the target object model in the screen space before determining that each target sub-area in the screen space corresponds to the target model area in the target object model to be rendered; obtain the screen sub-area corresponding to the target screen area from the multiple screen sub-areas divided into the screen space to obtain the target sub-area.

[0105] In some embodiments, the area rendering module 530 can be specifically used to obtain the model data of the target model area at the corresponding target detail level for each target model area based on the target detail level corresponding to the target model area, and obtain the model data corresponding to the target model area; based on the model data corresponding to each target model area, render each target model area.

[0106] In a possible implementation, the area rendering module 530 may also be used to determine, for each of the target model areas, model data corresponding to the target model area from the model data of the target object model at the target detail level based on the target detail level corresponding to the target model area.

[0107] Optionally, the model rendering device 500 may further include a data acquisition module and a data generation module. The data acquisition module is used to acquire the model data of the target object model at the minimum detail level; based on the model data of the target object model at the minimum detail level, generate the model data of the target object model at each detail level except the minimum detail level, wherein the model compression ratio of the target object model at different detail levels is different.

[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0109] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0110] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0111] In summary, the solution provided by the present application is to determine that each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered; determine the target detail level corresponding to each target model region, wherein the mapping error of the model vertices in the target model region at the target detail level is less than a first threshold value, and the mapping error is at least used to characterize the position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is the deviation between the position of the model vertex after being mapped to the screen space at the target detail level and the position of the model vertex after being mapped to the screen space at the minimum detail level; render each target model region based on the target detail level corresponding to each target model region. Therefore, since the determined detail level of the model region can satisfy that the mapping error of the model vertex in the model region after being mapped to the screen space is less than the first threshold value, when the model is rendered by the detail level technology, the accuracy of the detail level corresponding to different model regions can be guaranteed, and thus the effect of model rendering can be guaranteed while saving the overhead of model rendering.

[0112] Please refer to Fig.11 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a head-mounted display device, a tablet computer, a smart watch, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0113] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0114] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0115] Please refer to Fig.12 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0116] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0117] An embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the model rendering method provided in the aforementioned embodiment.

[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A model rendering method, characterized in that: The method comprises: Determine that each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered; Determine a target detail level corresponding to each target model region, wherein a mapping error of a model vertex in the target model region at the target detail level is less than a first threshold, and the mapping error is at least used to characterize a position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is a deviation between a position of the model vertex after being mapped to the screen space at the target detail level and a position of the model vertex after being mapped to the screen space at a minimum detail level; Rendering each of the target model regions based on the target detail level corresponding to each of the target model regions.

2. The method according to claim 1, characterized in that The determining the target detail level corresponding to each target model region to obtain the target detail level corresponding to each target model region includes: For each of the target model regions, obtaining a mapping error of a model vertex in the target model region at a first detail level, where the first detail level is any detail level except the minimum detail level; If the mapping error of the model vertex at the first detail level is less than a first threshold, the first detail level is determined as the target detail level corresponding to the target model area.

3. The method according to claim 2, characterized in that The step of obtaining, for each target model region, a mapping error of model vertices in the target model region at a first detail level comprises: For each of the target model regions, position errors of model vertices in the target model region after being mapped to the screen space at a first detail level are obtained as mapping errors of model vertices in the target model region at the first detail level.

4. The method according to claim 2, characterized in that: The step of obtaining, for each target model region, a mapping error of model vertices in the target model region at a first detail level comprises: For each of the target model regions, obtaining position errors of model vertices in the target model region after being mapped to the screen space at a first detail level; For each of the target model regions, obtaining a color error of the model vertices in the target model region at a first detail level, wherein the color error is an error between a color of the model vertices in the target model region at the first detail level and a color of the model vertices in the target model region at a minimum detail level; Based on the position errors of the model vertices in the target model area after being mapped to the screen space at the first detail level and the color errors of the model vertices in the target model area at the first detail level, a mapping error of the model vertices in the target model area at the first detail level is determined.

5. The method according to claim 3 or 4, characterized in that: The step of obtaining, for each target model region, position errors of model vertices in the target model region after being mapped to the screen space at the first detail level comprises: For each of the target model regions, obtaining vertex errors of model vertices in the target model region at a first detail level, wherein the vertex errors are deviations between vertex positions corresponding to the model vertices at the first detail level and vertex positions corresponding to the model vertices at a minimum detail level; Based on the conversion relationship between the model space corresponding to the target model and the screen space, the vertex errors of the model vertices in the target model area at the first detail level are converted into position errors, so as to obtain the position errors of the model vertices in the target model area after being mapped to the screen space at the first detail level.

6. The method according to claim 5, characterized in that The step of obtaining, for each target model region, vertex errors of model vertices in the target model region at a first detail level includes: For each of the target model areas, vertex errors of model vertices in the target model area at a first detail level are obtained according to an error mapping relationship corresponding to the target object model, wherein the error mapping relationship includes vertex errors of different model areas of the target object model at each detail level except the minimum detail level.

7. The method according to claim 6, characterized in that Before obtaining, for each target model region, vertex errors of model vertices in the target model region at the first detail level according to the error mapping relationship corresponding to the target object model, the method further includes: Performing the same grid area division on the target object model at each detail level; For each detail level except the minimum detail level, the vertex error in each mesh area of ​​the target object model is obtained to obtain the error mapping relationship.

8. The method according to claim 1, characterized in that Before determining that each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered, the method further includes: Determining a target screen area corresponding to the target object model in the screen space; The target sub-region is obtained by acquiring a screen sub-region corresponding to the target screen region from a plurality of screen sub-regions divided from the screen space.

9. The method according to claim 1, characterized in that: The rendering of each target model region based on the target detail level corresponding to each target model region includes: For each of the target model regions, based on the target detail level corresponding to the target model region, the model data of the target model region at the corresponding target detail level is acquired to obtain the model data corresponding to the target model region; Render each of the target model regions based on the model data corresponding to each of the target model regions.

10. The method according to claim 9, characterized in that The step of acquiring, for each target model region, model data of the target model region at a corresponding target detail level based on a target detail level corresponding to the target model region, and obtaining model data corresponding to the target model region includes: For each of the target model regions, based on the target detail level corresponding to the target model region, the model data corresponding to the target model region is determined from the model data of the target object model at the target detail level.

11. The method according to claim 10, characterized in that Before determining, for each of the target model regions, model data corresponding to the target model region from model data of the target object model at the target detail level based on the target detail level corresponding to the target model region, the method further includes: Acquire model data of the target object model at a minimum detail level; Based on the model data of the target object model at the minimum detail level, the model data of the target object model at each detail level except the minimum detail level is generated, wherein the model compression ratio of the target object model at different detail levels is different.

12. A model rendering device, characterized in that: The device comprises: a region determination module, a level determination module and a region rendering module, wherein: The region determination module is used to determine that each target sub-region in the screen space corresponds to a target model region in the target object model to be rendered; The level determination module is used to determine the target detail level corresponding to each target model area, wherein a mapping error of the model vertices in the target model area at the target detail level is less than a first threshold, and the mapping error is at least used to characterize a position error of the model vertex after being mapped to the screen space at the target detail level, and the position error is a deviation between a position of the model vertex after being mapped to the screen space at the target detail level and a position of the model vertex after being mapped to the screen space at the minimum detail level; The region rendering module is used to render each of the target model regions based on the target detail level corresponding to each of the target model regions.

13. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 11.