3D model rendering speed optimization method and device, equipment and storage medium
By optimizing the rendering area through test rendering and view grouping of 3D models, the problem of slow rendering speed of high-precision models was solved, resulting in faster rendering speed and smoother user interaction.
Patent Information
- Application Number
- CN202511342571.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-19
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2045-09-19
AI Technical Summary
Traditional rendering engines face enormous computational pressure when processing high-precision 3D models, resulting in decreased rendering frame rates, sluggish interface response, and impact on user smoothness and operational efficiency.
By obtaining the 3D model data to be rendered, performing test rendering and view grouping, the rendering area division is optimized, invalid rendering tasks are reduced, and rendering speed is improved.
It significantly improves the rendering speed of 3D models and the user experience, reduces rendering lag, and enhances interactive smoothness and operational efficiency.
Smart Images

Figure CN120833429A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of 3D model rendering, and in particular to a 3D model rendering speed optimization method, device, equipment and storage medium. BACKGROUND
[0002] Currently, in the digital process of the 3D printing industry, the rendering display of a three-dimensional model is a crucial basic technology. However, with the vigorous development of high-precision 3D scanning technology and complex modeling software, the data volume of a three-dimensional model is showing a trend of rapid growth. In the face of a high-precision model with a large number of vertices and facets, a traditional rendering engine often faces huge computing pressure when rendering in real time. When a graphics system needs to process a large amount of geometric data at one time, it will cause the rendering frame rate to drop, the interface response to be slow, and even obvious stuttering. This performance bottleneck seriously damages the smoothness of interaction, making basic operations such as model rotation, scaling and translation difficult, and ultimately leading to a significant decrease in user experience.
[0003] To overcome the above limitations, it is urgent to obtain a 3D model rendering speed optimization method that can quickly identify the current rendering requirements of the user and realize model rendering data filtering processing, so as to improve the speed of 3D model rendering and improve user experience. SUMMARY
[0004] The embodiments of the present application provide a 3D model rendering speed optimization method, device, equipment and storage medium to solve the above technical problems.
[0005] The first aspect of the present application provides a 3D model rendering speed optimization method, comprising: obtaining 3D model data to be rendered; performing test rendering according to the 3D model data to be rendered to obtain a test rendering result; performing view group division on the test rendering result to obtain a test rendering result of a current view; performing model rendering on the 3D model to be rendered according to the test rendering result of the current view to obtain a rendered 3D model.
[0006] In some embodiments, performing test rendering according to the 3D model data to be rendered to obtain a test rendering result comprises: performing analysis on the 3D model data to be rendered to obtain a data analysis result; performing data grouping according to the data analysis result to obtain grouped 3D model data to be rendered; performing test rendering on the grouped 3D model data to be rendered to obtain a test rendering result.
[0007] In some embodiments, the 3D model data to be rendered is parsed to obtain a data parsing result, including: The 3D model data to be rendered is subjected to position information extraction to obtain a first data parsing result; The 3D model data to be rendered is subjected to normal vector information extraction to obtain a second data parsing result; The 3D model data to be rendered is subjected to field of view information extraction to obtain a third data parsing result; The first data parsing result, the second data parsing result and the third data parsing result are integrated to obtain the data parsing result.
[0008] In some embodiments, the data is grouped according to the data parsing result to obtain grouped 3D model data to be rendered, including: A preset grouping rule is obtained; The first data parsing result and the second data parsing result are read; The data is grouped according to the preset grouping rule and the first data parsing result to obtain initially grouped 3D model data to be rendered; The initially grouped 3D model data to be rendered is subjected to data grouping according to the preset grouping rule and the second data parsing result to obtain grouped 3D model data to be rendered.
[0009] In some embodiments, the test rendering result is subjected to field of view grouping to obtain a current field of view test rendering result, including: The third data parsing result is read; The test rendering result is subjected to field of view grouping according to the third data parsing result to obtain a current field of view test rendering result.
[0010] In some embodiments, after obtaining the rendered 3D model, the method further includes: Obtaining the perspective information of the rendered 3D model; Comparing the perspective information with the third data parsing result to obtain a perspective comparison result; When the perspective comparison result is different, the 3D model after perspective transformation is re-rendered to obtain a re-rendered 3D model.
[0011] In some embodiments, when the perspective comparison result is different, the 3D model after perspective transformation is re-rendered to obtain a re-rendered 3D model, including: When the perspective comparison result is different, a delay report is generated according to the perspective information; The test rendering result is subjected to field of view grouping again according to the delay report to obtain a field of view transformed test rendering result; According to the test rendering result after the view transformation, the 3D model after the view transformation is re-rendered to obtain a re-rendered 3D model.
[0012] The second aspect of the present application provides a 3D model rendering speed optimization device, comprising a data acquisition module, a test rendering module, a view grouping module and a model rendering module, wherein, The data acquisition module is configured to acquire 3D model data to be rendered. The test rendering module is configured to perform test rendering according to the 3D model data to be rendered to obtain a test rendering result. The view grouping module is configured to group the test rendering result according to a view to obtain a test rendering result of a current view. The model rendering module is configured to perform model rendering on the 3D model to be rendered according to the test rendering result of the current view to obtain a rendered 3D model.
[0013] The third aspect of the present application provides an electronic device, comprising a memory, a processor, one or more computer programs stored in the memory, the one or more computer programs comprising instructions which, when executed by the processor, can implement the 3D model rendering speed optimization method as described above.
[0014] The fourth aspect of the present application provides a computer readable storage medium storing a computer program, the storage medium storing a 3D model rendering speed optimization program, the 3D model rendering speed optimization program being executed by a processor to implement the steps of the 3D model rendering speed optimization method as described above.
[0015] The 3D model rendering speed optimization method, device, equipment and storage medium provided by the present application first acquire 3D model data to be rendered, then perform test rendering according to the 3D model data to be rendered to obtain a test rendering result, group the test rendering result according to a view to obtain a test rendering result of a current view, and finally perform model rendering on the 3D model to be rendered according to the test rendering result of the current view to obtain a rendered 3D model. The present application divides the rendering area of the 3D model to be rendered by the view grouping method, thereby reducing the invalid rendering task, optimizing the 3D model rendering speed, and further improving the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 FIG. 1 is a structural schematic diagram of a 3D model rendering speed optimization device provided by an embodiment of the present application.
[0017] Figure 2 FIG. 2 is a flowchart of a 3D model rendering speed optimization method provided by an embodiment of the present application.
[0018] Figure 3 is Figure 2 A subflow schematic diagram of step S20 in
[0019] Figure 4 is Figure 3 A subflow schematic diagram of step S21 in
[0020] Figure 5 is Figure 3 A subflow schematic diagram of step S22 in
[0021] Figure 6 is Figure 2 A subflow schematic diagram of step S30 in
[0022] Figure 7 is a structural block diagram of a 3D model rendering speed optimization device provided by an embodiment of the present application.
[0023] Figure 8 is a structural block diagram of a 3D model rendering speed optimization device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0024] It should be understood that the specific embodiments described herein are merely exemplary and not intended to limit the present application.
[0025] In the current digital workflow of the 3D printing industry, real-time rendering and visual display of three-dimensional models have become a key basic technology to support the entire manufacturing process. It not only enables users to comprehensively and intuitively examine the structural features, morphological details and spatial composition of the model before printing, but also provides crucial visual interactive support in model positioning, support addition, size adjustment and slice preview, etc. in the pre-processing stage, significantly improving the accuracy of operation and user experience. However, with the popularization of high-precision three-dimensional scanning equipment and the widespread use of complex modeling software, the amount of geometric data contained in three-dimensional models is growing exponentially. Models used in modern engineering and medical fields often contain millions or even tens of millions of vertices and triangular facets, forming high-density grid models. In the face of such large-scale geometric data, the traditional rendering architecture based on general-purpose graphics interfaces (such as OpenGL, DirectX) faces serious challenges in real-time rendering. The core bottleneck is that the graphics processing unit (GPU) and graphics driver need to process extremely large vertex buffers, index buffers and state switching overheads per frame, and the traditional rendering process usually needs to submit the entire model or most of the model data to the GPU pipeline, lacking depth optimization of visibility and rendering batches. Especially when the system needs to process a large number of graphics primitives at once, not only will it consume a large number of vertex shaders and fragment shaders resources of the GPU, but also will increase the Draw Call burden on the CPU side, causing load imbalance between CPU and GPU. Its direct performance is a sharp decline in rendering frame rate (FPS), visual interface response delay, view transformation operation blocking, and even continuous stuttering during interaction. This performance bottleneck seriously restricts the smooth manipulation of high-precision models by users, especially in high-frequency interactive scenarios such as rotation, scaling and translation, the operation lag is obvious, thereby significantly reducing the work efficiency and overall satisfaction of professional users in the pre-processing stage.
[0026] Therefore, the present application provides a 3D model rendering speed optimization method, device, equipment and storage medium, obtaining 3D model data to be rendered; performing test rendering according to the 3D model data to be rendered, obtaining test rendering result; grouping the test rendering result according to the field of view, obtaining the test rendering result of the current field of view; performing model rendering on the 3D model to be rendered according to the test rendering result of the current field of view, obtaining the rendered 3D model. The present application divides the rendering area of the 3D model to be rendered by the field of view grouping method, thereby reducing the invalid rendering task, optimizing the 3D model rendering speed, and further improving the user experience.
[0027] Reference Figure 1 , Figure 1 is a schematic diagram of the electronic device structure of the embodiment of the present application. As shown in Figure 1As shown, the electronic device 1000 can include a processor 1001, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The processor 1001 can be, for example, a central processing unit (CPU). The communication bus 1002 is configured to realize the connection and communication among the components. The user interface 1003 can include a display and an input unit such as a keyboard. The optional user interface 1003 can further include a standard wired interface and a wireless interface. The network interface 1004 can optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 can be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM) such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.
[0028] Those skilled in the art can understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device 1000, and can include more or fewer components than those shown, or combine certain components, or different component arrangements.
[0029] It can be understood that, in Figure 1 In the electronic device 1000 shown, the network interface 1004 is mainly used for data communication with a network server. The user interface 1003 is mainly used for data interaction with a user. In this application, the electronic device 1000 invokes a control program stored in the memory 1005 by the processor 1001 to execute the 3D model rendering speed optimization method provided by the embodiments of the present application.
[0030] Please refer to Figure 2 , Figure 2 The flowchart of the 3D model rendering speed optimization method provided by the embodiments of the present application is shown. In some embodiments, the 3D model rendering speed optimization method can be executed by the electronic device 1000 in Figure 1 . Specifically, as shown in Figure 2 , the 3D model rendering speed optimization method includes the following steps: Step S10: Obtain 3D model data to be rendered.
[0031] It can be understood that, in some embodiments, the 3D model data to be rendered refers to a set of original information required for drawing a 3D model required by a user. It can include vertex positions, normal vectors, texture coordinates for describing the shape of the 3D model, index data for defining the composition of a face sheet, and material parameters and texture maps for determining the appearance.
[0032] It should be noted that, in some embodiments, the process of obtaining the 3D model data to be rendered includes but is not limited to obtaining the polygon mesh data of the 3D model to be rendered.
[0033] Step S20: Test rendering is performed according to the 3D model data to be rendered, and a test rendering result is obtained.
[0034] It can be understood that, in some embodiments, due to the large amount of 3D model data to be rendered, if all the data is directly rendered, the rendering speed will be slow, which will affect the user experience. Therefore, test rendering can be performed according to the 3D model data to be rendered, so as to collect key information without full resource consumption, guide subsequent formal rendering, and achieve extreme performance optimization.
[0035] It should be further noted that, in some embodiments, the test rendering result is an intermediate metadata, which can be used to quickly identify occluded objects and optimize rendering batches, greatly reduce unnecessary calculations, and significantly improve rendering efficiency and real-time performance, that is, to provide an intelligent decision basis for subsequent formal rendering.
[0036] Please refer to Figure 3 , Figure 3 is Figure 2 a sub-process diagram of step S20. In some embodiments, the test rendering result can be obtained based on the following steps S21 to S23.
[0037] Step S21: The 3D model data to be rendered is parsed to obtain a data parsing result.
[0038] It can be understood that, in some embodiments, the process of parsing the 3D model data to be rendered includes but is not limited to reading, calculating, optimizing and reorganizing the 3D model data to be rendered, and finally converting it into a format that can be efficiently processed by a graphics rendering pipeline, such as a vertex buffer, an index buffer, and a texture object, and pre-processing for subsequent rendering optimization. Among them, the 3D model data to be rendered includes vertex, index, material information and other model parameters.
[0039] Please refer to Figure 4 , Figure 4 is Figure 3A sub-flowchart of step S21 is shown in FIG. 6. In some embodiments, the data analysis result can be obtained based on the following steps S211-S214.
[0040] Step S211: position information extraction is performed on the 3D model data to be rendered to obtain a first data analysis result.
[0041] It can be understood that, in some embodiments, the process of position information extraction on the 3D model data to be rendered includes but is not limited to reading vertex coordinates from the 3D model data to be rendered, then calculating patch center points and constructing a hierarchical bounding volume, and finally obtaining the first data analysis result. The first data analysis result can be used as the data basis for position grouping in the subsequent data grouping process.
[0042] Step S212: normal vector information extraction is performed on the 3D model data to be rendered to obtain a second data analysis result.
[0043] It can be understood that, in some embodiments, the process of normal vector information extraction on the 3D model data to be rendered includes but is not limited to reading pre-computed data or dynamically generating patch normal vectors and vertex normal vectors based on the geometry of the patch from the 3D model data to be rendered, and then performing normalization and world space transformation to obtain the corresponding surface direction information, i.e., the second data analysis result.
[0044] Step S213: view information extraction is performed on the 3D model data to be rendered to obtain a third data analysis result.
[0045] It should be noted that, in some embodiments, since the view of the 3D model at the same time by the user is fixed, in order to reduce the data amount of model rendering processing and improve the model rendering speed, the rendering task corresponding to the part of the model that the user cannot see at this moment can be regarded as an invalid task and not processed.
[0046] It can be understood that, in some embodiments, the view information extraction on the 3D model data to be rendered refers to the extraction of the current model viewing angle information data of the user, and the third data analysis result obtained is the viewing angle information data corresponding to the part of the model currently viewed by the user.
[0047] Step S214: the first data analysis result, the second data analysis result, and the third data analysis result are integrated to obtain a data analysis result.
[0048] It can be understood that, in some embodiments, the data analysis result contains various types of information of the 3D model to be rendered, including but not limited to the position information of each sub-plane of the 3D model to be rendered, the normal vector information of each sub-plane of the 3D model to be rendered, and the view information corresponding to the 3D model to be rendered in the current state, etc.
[0049] Step S22: grouping the data according to the data analysis result to obtain the grouped 3D model data to be rendered.
[0050] It can be understood that, in some embodiments, the process of grouping the data according to the data analysis result includes, but is not limited to, classifying the 3D model data to be rendered into different subsets according to the specific rules contained in the data analysis result. The role is to improve data locality, reduce redundant calculation and optimize resource access, so as to finally realize the significant improvement of rendering efficiency and system performance.
[0051] Reference Figure 5 , Figure 5 is Figure 3 a sub-process diagram of step S22 in FIG. 22. In some embodiments, the grouped 3D model data to be rendered can be obtained based on the following steps S221 to S224.
[0052] Step S221: obtaining a preset grouping rule.
[0053] It can be understood that, in some embodiments, in order to improve the subsequent rendering speed, the 3D model data to be rendered can be grouped and processed in the form of data grouping. The preset grouping rule adopted in the data grouping process includes, but is not limited to, reasonably combining the 3D model data to be rendered according to the normal vector, position and other data information of the surface, so as to realize data grouping.
[0054] It should be noted that, in some embodiments, the preset grouping rule is a data grouping basis preset by the user or the system, which includes, but is not limited to, determining the accuracy of space division, such as defining the size of space grid, defining an angle threshold (such as 15 degrees), considering the surfaces with normal vectors with an included angle less than the threshold as "oriented similarly", and defining the number of surface patches that at least one group should contain, so as to avoid generating too many meaningless small groups.
[0055] Step S222: reading the first data analysis result and the second data analysis result.
[0056] It can be understood that, in some embodiments, the process of reading the first data analysis result and the second data analysis result is to obtain the normal vector, position and other data information of the surface, so as to prepare for the subsequent data grouping.
[0057] Step S223: grouping the data according to the preset grouping rule and the first data analysis result to obtain the initial grouped 3D model data to be rendered.
[0058] It can be understood that, in some embodiments, the process of grouping data according to the preset grouping rule and the first data analysis result includes but is not limited to: according to the data space rule in the preset grouping rule and the position information of the face in the first data analysis result, each data in the 3D model data to be rendered is allocated to the corresponding spatial unit. The data space rule in the preset grouping rule can be a set of spatial coordinate range restrictions, which is used to divide the 3D model space into a plurality of spatial grids. The position information of the face contained in the first data analysis result can be the center point coordinate data of each face.
[0059] Step S224: Grouping the initial grouped 3D model data to be rendered according to the preset grouping rule and the second data analysis result, to obtain the grouped 3D model data to be rendered.
[0060] It should be noted that, in some embodiments, the process according to the preset grouping rule and the second data analysis result includes but is not limited to: according to the face orientation rule in the preset grouping rule and the normal vector information of the face in the second data analysis result, each data in the initial grouped 3D model data to be rendered is allocated to each data group again. The face orientation rule in the preset grouping rule can be set to that the faces with an included angle of the normal vectors less than fifteen degrees are considered to be "oriented similarly", that is, classified into the same group of data.
[0061] Step S23: Test rendering the grouped 3D model data to be rendered, to obtain a test rendering result.
[0062] It can be understood that, in some embodiments, the test rendering of the grouped 3D model data to be rendered is a lightweight pre-computation process based on pre-classified visibility, that is, a rendering rehearsal of the grouped 3D model data to be rendered. The process includes but is not limited to: first, using the grouped 3D model data to be rendered, intermediate data buffers such as depth and identifier are quickly generated, that is, the test rendering result.
[0063] It can be understood that, in some embodiments, the purpose of the test rendering of the grouped 3D model data to be rendered is to accurately eliminate the occluded group before formal rendering, optimize the drawing call merging strategy, and guide the detail level and resource allocation, so as to finally greatly reduce the actual rendering load and improve the overall frame rate and interaction fluency.
[0064] Step S30: View grouping the test rendering result, to obtain the test rendering result of the current view.
[0065] It can be understood that, in some embodiments, the view grouping of the test rendering result is to distinguish the 3D model region needed by the user at the present stage from the 3D model region not used by the user at the present stage, and then obtain the test rendering result corresponding to the 3D model region needed by the user at the present stage.
[0066] For reference Figure 6 , Figure 6 is Figure 2 subflow schematic diagram of step S30 in FIG. 3. In some embodiments, the test rendering result of the current view can be obtained based on the following steps S31 to S32.
[0067] Step S31: reading the third data analysis result; It can be understood that, in some embodiments, the reading of the third data analysis result is to obtain the view angle information corresponding to the 3D model currently viewed by the user.
[0068] Step S32: view grouping of the test rendering result according to the third data analysis result, to obtain the test rendering result of the current view.
[0069] It can be understood that, in some embodiments, the process of view grouping of the test rendering result according to the third data analysis result includes but is not limited to distinguishing each grouping data in the test rendering result according to the view angle information in the third data analysis result, wherein the grouping data meeting the view angle information requirement is classified into the same class of grouping data, that is, the test rendering result of the current view.
[0070] Step S40: model rendering of the 3D model to be rendered according to the test rendering result of the current view, to obtain the rendered 3D model.
[0071] It can be understood that, in some embodiments, the process of model rendering of the 3D model to be rendered according to the test rendering result of the current view includes but is not limited to: first, realizing accurate visibility and occlusion culling through the depth and identification buffer information in the test rendering result of the current view; second, rendering state optimization and batch based on the grouping information in the test rendering result of the current view; third, dynamically scheduling detail levels and resources; and finally, executing drawing commands and light calculation in the optimized order, so as to obtain the rendered 3D model.
[0072] The embodiment obtains 3D model data to be rendered; performs test rendering according to the 3D model data to be rendered, to obtain a test rendering result; performs view group division on the test rendering result, to obtain a test rendering result of a current view; and performs model rendering on the 3D model to be rendered according to the test rendering result of the current view, to obtain a rendered 3D model. The embodiment divides the rendering area of the 3D model to be rendered by view group division, thereby reducing invalid rendering tasks, optimizing the 3D model rendering speed, and further improving the user experience.
[0073] Further, after obtaining the rendered 3D model, the method further includes: obtaining view angle information of the rendered 3D model; comparing the view angle information with the third data analysis result, to obtain a view angle comparison result; and when the view angle comparison result is different, re-rendering the 3D model after view angle transformation, to obtain a re-rendered 3D model.
[0074] It can be understood that in some embodiments, when the view angle of the user viewing the 3D model changes, the corresponding view angle information will also change, thereby causing a new 3D model region that has not been rendered. At this time, in order to meet the user demand, the 3D model after view angle transformation needs to be re-rendered.
[0075] Further, when the view angle comparison result is different, re-rendering the 3D model after view angle transformation, to obtain a re-rendered 3D model, includes: when the view angle comparison result is different, generating a delay report according to the view angle information; re-performing view group division on the test rendering result according to the delay report, to obtain a test rendering result after view group transformation; and re-rendering the 3D model after view angle transformation according to the test rendering result after view group transformation, to obtain a re-rendered 3D model.
[0076] It can be understood that in some embodiments, the delay report is a special analysis document for performance delay problems of a rendering scene in a view angle change process. The report can locate performance bottlenecks exposed by view angle switching, such as suddenly increased occlusion calculation, material switching or LOD scheduling overhead, by recording time consumption data of key rendering stages before and after view angle transformation, such as CPU preprocessing time, GPU drawing time, frame generation interval, combining context information such as scene complexity after transformation, number of visible objects and drawing call times, and finally providing data basis for optimizing view point related rendering logic and resource scheduling strategy, to ensure smoothness of interaction.
[0077] Reference Figure 7 , Figure 7 is a structural block diagram of a 3D model rendering speed optimization device provided by the embodiment of the application. As shown in Figure 7As shown, the 3D model rendering speed optimization device includes a data acquisition module 10, a test rendering module 20, a view grouping module 30 and a model rendering module 40, wherein: The data acquisition module 10 is used to acquire 3D model data to be rendered.
[0078] The test rendering module 20 is used to perform test rendering according to the 3D model data to be rendered to obtain a test rendering result.
[0079] The view grouping module 30 is used to group the test rendering results by view to obtain the test rendering results of the current view.
[0080] The model rendering module 40 is used to perform model rendering on the 3D model to be rendered according to the test rendering result of the current field of view to obtain a rendered 3D model.
[0081] This embodiment first obtains the 3D model data to be rendered; then performs test rendering based on the 3D model data to be rendered to obtain the test rendering results; and then groups the test rendering results by view to obtain the test rendering results of the current view; finally, performs model rendering on the 3D model to be rendered based on the test rendering results of the current view to obtain the rendered 3D model. This embodiment, through the strategy of combining view grouping with test rendering, achieves the rational scheduling of rendering tasks and the optimal allocation of computing resources while maintaining rendering accuracy and model integrity. This not only significantly improves the rendering speed of the 3D model, but also provides users with a more efficient and smoother visual interactive experience, and has good practical value and promotion prospects.
[0082] In addition, reference Figure 8 , Figure 8 2 is another structural block diagram of a 3D model rendering speed optimization device provided in an embodiment of the present application. The device 2000 includes a processor 2001 and a memory 2002. The memory 2002 is used to store programs, instructions or codes for executing the aforementioned 3D model rendering speed optimization method. The processor 2001 is used to execute the programs, instructions or codes stored in the memory 2002. The programs, instructions or codes stored in the memory 2002 can be executed. Figures 2 to 6 Part or all of the steps of the 3D model rendering speed optimization method in the embodiment shown in .
[0083] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be described one by one here.
[0084] In addition, the embodiment of the present application further provides a computer readable storage medium storing a computer program, and the storage medium stores a 3D model rendering speed optimization program. The 3D model rendering speed optimization program is executed by a processor to implement the steps of the 3D model rendering speed optimization method.
[0085] It should be understood that the above is only illustrative, and does not constitute any limitation on the technical solutions of the present application. In specific applications, those skilled in the art can set up according to the needs, and the present application does not limit this.
[0086] It should be noted that the above-described workflow is only illustrative and does not limit the scope of protection of the present application. In actual applications, those skilled in the art can select part or all of them to achieve the purpose of the embodiment of the present application according to the actual needs, which is not limited here.
[0087] In addition, technical details not described in detail in the embodiment can be referred to the 3D model rendering speed optimization method provided by any embodiment of the present application, which will not be repeated here.
[0088] In addition, it should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or system. Without more limitations, the element defined by the statement "includes a" does not exclude the presence of another identical element in the process, method, article or system including the element.
[0089] The above embodiment numbers of the present application are only for description, not representing the advantages and disadvantages of the embodiments.
[0090] From the above description of the embodiments, those skilled in the art can clearly understand that the above embodiment methods can be realized by means of software and necessary general hardware platform, of course, also can be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of software product, which is stored in a storage medium (such as read only memory (Read Only Memory, ROM) / RAM, magnetic disk, optical disc), including a plurality of instructions to make a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the method described in each embodiment of the present application.
[0091] The above merely preferred embodiments of the present application and are not intended to limit the patent scope of the present application, any equivalent structure or equivalent process transformation using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for optimizing rendering speed of a 3D model, the method comprising: The method comprises: acquiring 3D model data to be rendered; performing test rendering according to the 3D model data to be rendered to obtain a test rendering result; performing view group division on the test rendering result to obtain a test rendering result of a current view; performing model rendering on the 3D model to be rendered according to the test rendering result of the current view to obtain a rendered 3D model.
2. The method of claim 1, wherein, The test rendering according to the 3D model data to be rendered to obtain a test rendering result comprises: performing analysis on the 3D model data to be rendered to obtain a data analysis result; performing data group division according to the data analysis result to obtain grouped 3D model data to be rendered; performing test rendering on the grouped 3D model data to be rendered to obtain a test rendering result.
3. The method of claim 2, wherein, The analysis on the 3D model data to be rendered to obtain a data analysis result comprises: performing position information extraction on the 3D model data to be rendered to obtain a first data analysis result; performing normal vector information extraction on the 3D model data to be rendered to obtain a second data analysis result; performing view information extraction on the 3D model data to be rendered to obtain a third data analysis result; integrating the first data analysis result, the second data analysis result and the third data analysis result to obtain the data analysis result.
4. The method of claim 3, wherein, The data group division according to the data analysis result to obtain grouped 3D model data to be rendered comprises: acquiring a preset group division rule; reading the first data analysis result and the second data analysis result; performing data group division according to the preset group division rule and the first data analysis result to obtain initially grouped 3D model data to be rendered; performing data group division on the initially grouped 3D model data to be rendered according to the preset group division rule and the second data analysis result to obtain the grouped 3D model data to be rendered.
5. The method of claim 4, wherein, The view group division on the test rendering result to obtain a test rendering result of a current view comprises: reading the third data analysis result; performing view group division on the test rendering result according to the third data analysis result to obtain the test rendering result of the current view.
6. The 3D model rendering speed optimization method of any one of claims 3-5, wherein, After the rendered 3D model is obtained, the method further comprises: acquiring view angle information of the rendered 3D model; comparing the view angle information with the third data analysis result to obtain a view angle comparison result; when the view angle comparison result is different, re-rendering a 3D model after view angle transformation to obtain a re-rendered 3D model.
7. The method of claim 6, wherein, When the view angle comparison result is different, the re-rendering of the 3D model after view angle transformation to obtain a re-rendered 3D model comprises: when the view angle comparison result is different, generating a delay report according to the view angle information; performing view group division on the test rendering result again according to the delay report to obtain a test rendering result after view group transformation; performing re-rendering on the 3D model after view angle transformation according to the test rendering result after view group transformation to obtain a re-rendered 3D model.
8. A 3D model rendering speed optimization apparatus, characterized by, The device comprises: a data acquisition module, configured to acquire 3D model data to be rendered; a test rendering module, configured to perform test rendering according to the 3D model data to be rendered, to obtain a test rendering result; a view group module, configured to perform view group on the test rendering result, to obtain a test rendering result of a current view; a model rendering module, configured to perform model rendering on the 3D model to be rendered according to the test rendering result of the current view, to obtain a rendered 3D model.
9. An electronic device, comprising: The electronic device comprises: a memory; a processor; one or more computer programs stored in the memory, the one or more computer programs comprising instructions that, when executed by the processor, enable the 3D model rendering speed optimization method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer storage medium comprises instructions that, when executed by a processor, enable the 3D model rendering speed optimization method of any one of claims 1 to 7.
Citation Information
Patent Citations
Lightning simulation method and device in virtual scene, terminal and readable storage medium
CN111784804A
Three-dimensional terrain gradient rendering method and device, electronic equipment and storage medium
CN115457180A
Rendering method and device, equipment and storage medium
CN116433817A
Data rendering method, device and equipment and computer readable storage medium
CN117541703A