Model storage method and device, model rendering method and device and computer storage medium

By refining the original three -dimensional model on the server side, simplifying and generating a streamlined model file with different complexity solves the problem of client rendering delay, and improved the model rendering efficiency and user experience.

CN119359902APending Publication Date: 2025-01-24ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411299053.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the prior art, due to factors such as network fluctuations, chip computing power and model size, the client side can only render a streamlined version of the original three-dimensional model, resulting in slow loading of the model and delayed rendering, which seriously affects the user experience.

Method used

By obtaining the original three -dimensional model and simplified processing on the server side, the three -dimensional model files with different complexity are generated, and the corresponding three -dimensional model or the original three -dimensional model is rendered on the client side as required.

Benefits of technology

By storing the streamlined models of different complexity of the three -dimensional model on the server side, it is convenient for clients to provide adaptive models when rendering, improve model rendering efficiency, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359902A_ABST
    Figure CN119359902A_ABST
Patent Text Reader

Abstract

The invention provides a model storage method, a model rendering method, a model rendering device and a computer storage medium. The model storage method is applied to a server. The model storage method comprises the following steps: acquiring an original three-dimensional model; simplification processing is carried out on the basis of the original three-dimensional model, a plurality of simplified three-dimensional models with different complexities are obtained, and the complexity of the original three-dimensional model is higher than that of all the simplified three-dimensional models; and based on the vertexes of the simplified three-dimensional model, generating a model file of the simplified three-dimensional model, and storing the model file. Through the model storage method, the simplified three-dimensional models with different complexities of the three-dimensional model are stored on the server side, so that when the mobile terminal equipment needs to render the simplified three-dimensional models with different complexities or the original three-dimensional model, the adaptive model can be provided in time, the model rendering efficiency of the client side is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display rendering of three-dimensional models, and in particular to a model storage method, a model rendering method, a model rendering device and a computer storage medium. Background Art

[0002] With the rapid development of sensor technology, the depth perception ability of mobile terminal devices has been greatly improved. Most mobile terminal devices on the market have the ability of real-time positioning and mapping, namely SLAM (Simultaneous Localization and Mapping). Combined with AR (Augmented Reality) technology, when the camera collects video in real time, a virtual 3D (or 2D) model can be placed in the screen content, and it can be integrated and changed with the video content to achieve a very realistic augmented reality effect, which greatly improves the realism and immersion of the user experience.

[0003] However, currently the server only stores the original 3D model, but due to factors such as network fluctuations, chip computing power, and model size, the client can only render a simplified 3D model of the original 3D model. At this time, the server or client needs to simplify the 3D model, resulting in slow model loading and model rendering delays, which seriously affects the user experience. Summary of the invention

[0004] In order to solve the above technical problems, the present application proposes a model storage method, a model rendering method, a model rendering device and a computer storage medium.

[0005] In order to solve the above technical problems, the present application proposes a model storage method, which is applied to a server and includes:

[0006] Obtaining the original three-dimensional model;

[0007] Performing simplification processing based on the original three-dimensional model to obtain a plurality of simplified three-dimensional models of different complexity, wherein the complexity of the original three-dimensional model is higher than that of all simplified three-dimensional models;

[0008] Based on the vertices of the simplified three-dimensional model, a model file of the simplified three-dimensional model is generated for storage.

[0009] In order to solve the above technical problems, the present application further proposes a model rendering method, which is applied to a model rendering system, wherein the model rendering system includes a client and a server; the model rendering method includes:

[0010] The client obtains the target three-dimensional model selected in the model list by the user instruction;

[0011] The client obtains the application model number of the target three-dimensional model, and sends the application model number to the server;

[0012] The server extracts the corresponding simplified three-dimensional model or the original three-dimensional model based on the application model number of the target three-dimensional model and returns it to the client;

[0013] The client renders and displays the simplified three-dimensional model or the original three-dimensional model;

[0014] Wherein, the server stores the simplified three-dimensional model of each three-dimensional model through the above-mentioned model storage method.

[0015] To solve the above technical problems, the present application also proposes a model rendering device, which includes a memory and a processor coupled to the memory; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the model storage method and / or model rendering method as described above.

[0016] In order to solve the above technical problems, the present application also proposes a computer storage medium, which is used to store program data. When the program data is executed by a computer, it is used to implement the above model storage method and / or model rendering method.

[0017] Compared with the prior art, the beneficial effects of the present application are as follows: the model rendering device obtains the original three-dimensional model; performs simplification processing based on the original three-dimensional model to obtain several simplified three-dimensional models of different complexity, wherein the complexity of the original three-dimensional model is higher than that of all simplified three-dimensional models; based on the vertices of the simplified three-dimensional model, a model file of the simplified three-dimensional model is generated for storage. Through the above-mentioned model storage method, simplified three-dimensional models of different complexities of the three-dimensional model are stored on the server side, so that when the mobile terminal device needs to render simplified three-dimensional models or original three-dimensional models of different complexities, it can provide an adapted model in time, thereby improving the model rendering efficiency on the client side and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] in:

[0020] Figure 1 It is a flowchart of an embodiment of a model storage method provided by the present application;

[0021] Figure 2 yes Figure 1 The specific flow chart of step S13 of the model storage method shown;

[0022] Figure 3 It is a schematic diagram of the octree segmentation effect of the three-dimensional model provided by this application;

[0023] Figure 4 It is a simplified flow chart of the server-side model provided by this application;

[0024] Figure 5 It is a schematic diagram of the octree segmentation results of all vertices of the original three-dimensional model provided by this application;

[0025] Figure 6 It is a schematic diagram of the overall scheme of the model rendering system provided by this application;

[0026] Figure 7 It is a flowchart of an embodiment of a model rendering method provided by the present application;

[0027] Figure 8 yes Figure 7 The specific flow chart of step S22 of the model rendering method shown;

[0028] Fig. 9 It is a flowchart of the client-side model rendering optimization provided by this application;

[0029] Fig.10 It is a flowchart of another embodiment of the model rendering method provided by the present application;

[0030] Fig.11 It is a flowchart of another embodiment of the model rendering method provided by the present application;

[0031] Fig.12 It is a structural schematic diagram of an embodiment of a model rendering device provided by the present application;

[0032] Fig.13 It is a structural diagram of an embodiment of a computer storage medium provided by the present application. DETAILED DESCRIPTION

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

[0034] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] Please refer to Figure 1 , Figure 1 It is a flowchart of an embodiment of a model storage method provided by the present application.

[0036] The model storage method of the present application is applied to a server, wherein the server serves as a service side that provides a three-dimensional model to a client side, and assumes the storage function of the three-dimensional model in the model storage solution of the present application, so as to store a number of original three-dimensional models required by the client side, and simplified three-dimensional models of different complexities. Currently, GLTF (Graphics Language Transmission Forma) is a standard model format commonly used in the industry, and the present application adopts its binary format GLB (GL Transmission Format Binary file) to store the model. Among them, the GLB format is a binary file format representation of the GLTF model. The GLB format is a file format for displaying 3D models in virtual reality and augmented reality applications. It is based on the binary form of the GLTF standard and combines the geometric data, textures and other related information of the 3D model. It is suitable for virtual reality, game development, architectural visualization and other fields. It has the characteristics of integrated format, performance optimization and good compatibility, and can provide smoother rendering performance and faster loading speed.

[0037] like Figure 1 As shown, the specific steps are as follows:

[0038] Step S11: Obtain the original three-dimensional model.

[0039] In an embodiment of the present application, the initial model file is drawn by a designer and uploaded to the server backend by an administrator, and the model list of the server is updated at the same time, wherein the model list includes several original three-dimensional models.

[0040] The model file uploaded in the administrator's backend is a refined model drawn by the designer. It is the model with the highest complexity and the best quality, that is, the original three-dimensional model of this application.

[0041] Step S12: performing simplification processing based on the original three-dimensional model to obtain a number of simplified three-dimensional models with different complexities, wherein the complexity of the original three-dimensional model is higher than that of all simplified three-dimensional models.

[0042] In an embodiment of the present application, the server simplifies any original 3D model on the model list, or an original 3D model specified by the user, to obtain simplified 3D models of different complexity. The simplified 3D model has fewer feature points, vertices or detail points than the original 3D model, resulting in the simplified 3D model being less complex than the original 3D model. The present application pre-stores simplified 3D models to adapt to different client sides or different network transmission environments. The simplified 3D model abandons some model details to obtain lower hardware requirements or network requirements.

[0043] Step S13: Based on the vertices of the simplified three-dimensional model, a model file of the simplified three-dimensional model is generated for storage.

[0044] In the embodiment of the present application, after the server performs simplification processing according to the original three-dimensional model, the number of vertices of the simplified three-dimensional model obtained is less than the number of vertices of the original three-dimensional model. Therefore, the server can use the vertices of the simplified three-dimensional model to mark three-dimensional models of different complexity, such as the fewer the number of vertices, the higher the degree of simplification. In this regard, the server can convert each vertex of the simplified three-dimensional model into a corresponding GLB model file and store it in the server. At this point, the model simplification and storage are completed.

[0045] In the present application, a model rendering device obtains an original three-dimensional model; performs simplification processing based on the original three-dimensional model to obtain a number of simplified three-dimensional models of different complexity, wherein the complexity of the original three-dimensional model is higher than that of all simplified three-dimensional models; and generates a model file of the simplified three-dimensional model based on the vertices of the simplified three-dimensional model for storage. Through the above-mentioned model storage method, simplified three-dimensional models of different complexities of the three-dimensional model are stored on the server side, so that when the mobile terminal device needs to render simplified three-dimensional models or original three-dimensional models of different complexities, it can provide an adapted model in time, thereby improving the model rendering efficiency on the client side and improving the user experience.

[0046] The technical solution for simplifying the original three-dimensional model in the present application may include but is not limited to the following three-dimensional model lightweight technologies: geometric simplification, texture simplification, compression processing, detail level technology, etc.

[0047] Generally speaking, when designing a 3D model, the more details there are, the more triangles there are. Therefore, the overall solution for simplification is to use octree segmentation. For specific methods, please refer to Figure 2 , Figure 3 and Figure 4 , Figure 2 yes Figure 1 The specific flow chart of step S13 of the model storage method is shown in FIG. Figure 3 is a schematic diagram of the octree segmentation effect of the three-dimensional model provided by this application, Figure 4 It is a simplified flow chart of the server-side model provided by this application.

[0048] like Figure 2 and Figure 4 As shown, the specific steps are as follows:

[0049] Step S131: performing octree segmentation based on the original three-dimensional model to establish an octree structure, wherein each node in the octree structure is a vertex of the original three-dimensional model or the simplified three-dimensional model.

[0050] In the embodiments of the present application, Figure 3 As shown in the figure, the server performs an octree segmentation on each layer of the original 3D model, calculates the distance between the vertex currently in the bounding box and the center of the bounding box, and selects the index of the point with the smallest distance as the representative of the tree node. The representative indexes of nodes at different levels are different, and the indexes of nodes at the same level are also different. The octree result obtained by octree segmentation is as follows Figure 5 As shown, Figure 5 It is a schematic diagram of the octree segmentation results of all vertices of the original three-dimensional model provided by this application.

[0051] Furthermore, in the process of octree segmentation, in order to further improve the efficiency of simplification of the three-dimensional model, the present application also provides a parallel recursive calculation solution.

[0052] Specifically, for the octree segmentation technology and the subsequent distance calculation, the server can use the GPU (graphics processing unit) to undertake the task of segmenting nodes at each layer and execute them simultaneously. Figure 5As shown, the server initializes the root node of the octree structure based on the original three-dimensional model, and then performs the first octree segmentation to derive the first-layer nodes. At this time, the first-layer nodes include several nodes, and each first-layer node needs to be further segmented. Therefore, the server can perform octree segmentation on each first-layer node in parallel through multiple image processors to derive the second-layer nodes. The server repeats the above process until the last leaf layer is derived. At this time, each node of the leaf layer stores each vertex of the original three-dimensional model.

[0053] Step S132: based on the total number of layers of the octree structure, the number of basic layers and the model number of the simplified 3D model, the number of model layers of the simplified 3D model is obtained.

[0054] In the embodiment of the present application, the server uses 5000 nodes as a base point (generally, a model with 5000 vertices reaches a basic experience value when displayed), and assumes that the number of nodes closest to 5000 points is at the nth layer of the octree. In other embodiments, the server may also use other numbers of nodes as base points to determine the base layer of the octree.

[0055] Assuming the total depth of the tree is N, the total number of vertices is V, and the number of simplified models is M, the number of simplified models can be determined by the following formula:

[0056] M=ceil(log2(N / n))+1

[0057] The function of the ceil function is to calculate the nearest integer greater than the floating point number.

[0058] Step S133: Determine the vertices of the simplified three-dimensional model based on the nodes where the model layers are located.

[0059] In an embodiment of the present application, the server can calculate the vertices of the simplified three-dimensional model based on the serial number of each simplified three-dimensional model: for any x-th model of a certain model, its vertex is the vertex at the (n+x(Nn) / M)th layer in the octree.

[0060] It should be noted that when x=0, the model is the most simplified model, and when x=M, the model is the original most complex model. The server can quickly search for each vertex of the simplified 3D model according to the vertex index selected in the octree segmentation process of step S131.

[0061] Finally, the server converts each simplified model's vertex into a corresponding GLB model file and stores it in the server. At this point, the model simplification is complete.

[0062] Due to factors such as network fluctuations, chip computing power, and model size, direct remote loading of models lacks adaptation to the network and client devices, and often results in slow model loading, delayed model rendering, and other phenomena, which seriously affect the user experience. Therefore, the present application also provides an end-to-end three-dimensional model optimization rendering method, which is used to solve the problems of stuttering and delays when large-scale three-dimensional models are applied to mobile terminal rendering. The model rendering method of the present application can be applied to scenarios such as mobile AR (Augmented Reality) display, digital asset display, and game rendering. The present application creates a multi-level three-dimensional model sequence in sequence according to a certain method on the server side, and asynchronously loads the model from the server side on the terminal side to implement the three-dimensional model optimization rendering method described in this application.

[0063] Please refer to Figure 6 , Figure 6 Schematic diagram of the overall scheme of the model rendering system provided by this application. Figure 6 As shown in the figure, the initial model file is drawn by the designer and uploaded to the server background by the administrator. At the same time, the model list on the server side will be updated, and the client side will synchronously update the available model list information. When the user selects a model during browsing, the client side sends the model simplicity and model ID given by the model scoring system to the server side through the network. The server side selects the model with the corresponding simplicity from the model library according to the user's request and sends it to the client side, finally completing the 3D display of the model.

[0064] Please combine the specific Figure 7 The model rendering method shown continues to introduce Figure 6 The model rendering system shown, Figure 7 It is a flowchart of an embodiment of a model rendering method provided by the present application.

[0065] like Figure 7 As shown, the specific steps are as follows:

[0066] Step S21: The client obtains the target three-dimensional model selected in the model list by the user instruction.

[0067] In the embodiment of the present application, regarding the server side, that is, Figure 1 The model simplification and model storage performed by the server shown are not described in detail here.

[0068] The client side obtains the user instruction through the human-computer interaction module, and selects the target three-dimensional model selected in the model list according to the user instruction. The target three-dimensional model can be an original three-dimensional model or a simplified three-dimensional model.

[0069] Step S22: The client obtains the application model number of the target three-dimensional model, and sends the application model number to the server.

[0070] In an embodiment of the present application, the most core model on the client side for improving the rendering effect of the three-dimensional model is the request model scoring module. The client side obtains the three-dimensional model with the highest score through the request model scoring module, and sends its number as the application model number to the server to request the server to return the three-dimensional model for rendering on the client side.

[0071] Please refer to Figure 8 and Fig. 9 , Figure 8 yes Figure 7 The specific flow chart of step S22 of the model rendering method is shown in FIG. Fig. 9 It is a flowchart of the client-side model rendering optimization provided by this application.

[0072] like Figure 8 As shown, the specific steps are as follows:

[0073] Step S221: The client obtains the current terminal performance, the current network bandwidth, and the model size of the target three-dimensional model.

[0074] Step S222: The client obtains a weighted sum of current terminal performance, current network bandwidth, and model size.

[0075] Step S223: The client determines the application model number based on the weighted sum and the number of simplified 3D models of the target 3D model.

[0076] In the embodiment of the present application, the request model scoring module is based on the terminal performance (P device ), network bandwidth (P net ), model size (P model ) are used to calculate the model score. The scoring formula of the model is:

[0077] I=M*(0.3P device +0.4P net +0.3P model ) / 10

[0078] Among them, I is the number of the model finally applied for, M is the number of simplified models of a certain model, and the three performance indicators are weighted averaged to obtain the final model number. It should be noted that the model weight of the network set by the request model scoring module is higher because the network is more important for model rendering. The value range of the three performance indicators is [1,10]. The higher the value, the better the performance.

[0079] The above three performance indicators are automatically calculated by the system based on the current monitoring data, without user settings. device, the system will automatically calculate the computing power of the current device between [1,10] according to the current device model. net According to the current network status score, P model The model is automatically calculated when the administrator uploads it, and there is no need to calculate it when the user uses it.

[0080] Step S23: the server extracts the corresponding simplified 3D model or the original 3D model based on the application model number of the target 3D model and returns it to the client.

[0081] Step S24: the client renders and displays the simplified 3D model or the original 3D model.

[0082] Furthermore, to improve the fast display of 3D models, the client side also adds a first-level cache. Fig. 9 Continue reading Fig.10 , Fig.10 It is a flowchart of another embodiment of the model rendering method provided by the present application.

[0083] like Fig.10 As shown, the specific steps are as follows:

[0084] Step S31: The client obtains the previous model number of the applied model number and sends the previous model number to the server.

[0085] In an embodiment of the present application, in case the terminal performance or the network environment may deteriorate, the first-level cache added on the client side will asynchronously store a model numbered I-1, where the smaller I is, the simpler the model, and I=M is ​​the original three-dimensional model.

[0086] Step S32: the server extracts the corresponding simplified 3D model based on the previous model number of the target 3D model and returns it to the client, so that the client puts the simplified 3D model corresponding to the previous model number into the cache.

[0087] Step S33: In response to a model reduction instruction, reduced terminal performance, or reduced network bandwidth, the client loads the cached simplified 3D model and renders it.

[0088] In the embodiment of the present application, when any of the following scenarios occurs: the user inputs a model reduction instruction, the terminal performance decreases, or the network bandwidth decreases, the client can directly load the simplified 3D model numbered I-1 from the cache for rendering. This does not affect the user's current viewing of the model, nor does it affect the experience loss caused by model loading.

[0089] Furthermore, to improve the fast display of 3D models, the client side also adds a first-level cache. Fig. 9 Continue reading Fig.11 , Fig.11 It is a flowchart of another embodiment of the model rendering method provided by the present application.

[0090] Step S41: The client obtains the next model number of the applied model number and sends the next model number to the server.

[0091] In an embodiment of the present application, in view of the situation that the terminal performance may improve or the network environment may improve, the first-level cache added on the client side will asynchronously store a model numbered I+1, where the larger the I, the more complex the model, and I=M is ​​the original three-dimensional model.

[0092] Step S42: the server extracts the corresponding simplified 3D model or the original 3D model based on the next model number of the target 3D model and returns it to the client, so that the client puts the 3D model corresponding to the next model number into the cache.

[0093] Step S43: In response to a model zoom-in instruction, improved terminal performance, or increased network bandwidth, the client loads the cached three-dimensional model and renders it.

[0094] In the embodiment of the present application, when any of the following scenarios occurs: the user inputs a model enlargement instruction, the terminal performance is improved, and the network bandwidth is improved, the client can directly load the simplified 3D model or the original 3D model numbered I+1 from the cache for rendering. This does not affect the user's current viewing of the model, nor does it affect the experience loss caused by model loading.

[0095] The three-dimensional model optimization rendering method proposed in this application has the advantages of fast algorithm and simple structure, and effectively solves the problems of the prior art in that the model is simple but the algorithm is complex, the server computing pressure is high, and the control method is too simple and rough.

[0096] The 3D model optimization rendering method proposed in this application can effectively improve the speed of model refinement through the GPU parallel optimization method of the octree on the server side. This method is much faster than the method proposed in the existing patent.

[0097] The 3D model optimization rendering method proposed in this application is an optimization method on the client side. It proposes a quantifiable scoring mechanism to obtain the best model and configures asynchronous caches of two model sizes. It optimizes the model loading and overall rendering time on the client side, and utilizes terminal capabilities to achieve the best model rendering method.

[0098] In summary, the above methods enable end-to-end optimization of 3D model rendering.

[0099] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0100] In order to implement the above-mentioned model storage method and / or model rendering method, the present application also proposes a model rendering device, for details, please refer to Fig.12 , Fig.12 It is a structural diagram of an embodiment of a model rendering device provided in the present application.

[0101] The model rendering device 500 of this embodiment includes a processor 51 , a memory 52 , an input / output device 53 , and a bus 54 .

[0102] The processor 51, memory 52, and input / output device 53 are respectively connected to a bus 54. The memory 52 stores program data. The processor 51 is used to execute the program data to implement the model storage method and / or model rendering method described in the above embodiments.

[0103] In the embodiment of the present application, the processor 51 may also be referred to as a CPU (Central Processing Unit). The processor 51 may be an integrated circuit chip having the ability to process signals. The processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or the processor 51 may also be any conventional processor, etc.

[0104] This application also provides a computer storage medium, please continue to refer to Fig.13 , Fig.13 It is a structural diagram of an embodiment of a computer storage medium provided in the present application. The computer storage medium 600 stores a computer program 61. When the computer program 61 is executed by a processor, it is used to implement the model storage method and / or model rendering method of the above-mentioned embodiment.

[0105] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0106] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A model storage method, characterized in that: The model storage method is applied to a server, and the model storage method includes: Obtaining the original three-dimensional model; Performing simplification processing based on the original three-dimensional model to obtain a plurality of simplified three-dimensional models of different complexity, wherein the complexity of the original three-dimensional model is higher than that of all simplified three-dimensional models; Based on the vertices of the simplified three-dimensional model, a model file of the simplified three-dimensional model is generated for storage.

2. The model storage method according to claim 1, characterized in that: The simplification process is performed based on the original three-dimensional model to obtain a plurality of simplified three-dimensional models of different complexity, including: Performing octree segmentation based on the original three-dimensional model to establish an octree structure, wherein each node in the octree structure is a vertex of the original three-dimensional model or the simplified three-dimensional model; Based on the total number of layers of the octree structure, the number of basic layers, and the model number of the simplified three-dimensional model, obtaining the number of model layers of the simplified three-dimensional model; Based on the nodes where the model layers are located, the vertices of the simplified three-dimensional model are determined.

3. The model storage method according to claim 2, characterized in that: The model storage method further includes: Obtain the total number of layers and the number of base layers of the octree structure; The number of the simplified three-dimensional models is determined based on the total number of layers and the number of basic layers.

4. The model storage method according to claim 2, characterized in that: The octree segmentation is performed based on the original three-dimensional model to establish an octree structure, including: Initialize the root node of the octree structure based on the original three-dimensional model; Performing a first octree segmentation on the original three-dimensional model based on the root node to obtain a first layer of nodes of the octree; Recursively and in parallel using an image processor, perform octree segmentation on each first-layer node to obtain a second-layer node of the octree; The image processor performs octree segmentation on each second-layer node in parallel until the leaf-layer nodes obtained by segmentation correspond to the vertices storing the original three-dimensional model.

5. A model rendering method, characterized in that: The model rendering method is applied to a model rendering system, wherein the model rendering system includes a client and a server; the model rendering method includes: The client obtains the target three-dimensional model selected in the model list by the user instruction; The client obtains the application model number of the target three-dimensional model, and sends the application model number to the server; The server extracts the corresponding simplified three-dimensional model or the original three-dimensional model based on the application model number of the target three-dimensional model and returns it to the client; The client renders and displays the simplified three-dimensional model or the original three-dimensional model; Wherein, the server stores the simplified three-dimensional model of each three-dimensional model by using the model storage method described in any one of claims 1 to 4.

6. The model rendering method according to claim 5, characterized in that: The client obtains the application model number of the target three-dimensional model, including: The client obtains current terminal performance, current network bandwidth, and model size of the target three-dimensional model; The client obtains a weighted sum of the current terminal performance, the current network bandwidth, and the model size; The client determines the application model number based on the weighted sum and the number of simplified three-dimensional models of the target three-dimensional model.

7. The model rendering method according to claim 5, characterized in that: After the client obtains the application model number of the target three-dimensional model, the model rendering method further includes: The client obtains the previous model number of the applied model number, and sends the previous model number to the server; The server extracts the corresponding simplified three-dimensional model based on the previous model number of the target three-dimensional model and returns it to the client, so that the client puts the simplified three-dimensional model corresponding to the previous model number into the cache; In response to a model reduction instruction, reduced terminal performance, or reduced network bandwidth, the client loads the cached simplified three-dimensional model and renders it; Among them, the complexity of the three-dimensional model corresponding to the application model number is higher than the complexity of the three-dimensional model corresponding to the previous model number.

8. The model rendering method according to claim 5 or 7, characterized in that: After the client obtains the application model number of the target three-dimensional model, the model rendering method further includes: The client obtains the next model number of the applied model number, and sends the next model number to the server; The server extracts the corresponding simplified three-dimensional model or the original three-dimensional model based on the next model number of the target three-dimensional model and returns it to the client, so that the client puts the three-dimensional model corresponding to the next model number into the cache; In response to a model zoom-in instruction, improved terminal performance, or improved network bandwidth, the client loads the cached three-dimensional model and renders it; Among them, the complexity of the three-dimensional model corresponding to the application model number is lower than the complexity of the three-dimensional model corresponding to the next model number.

9. A model rendering device, characterized in that: The model rendering device includes a memory and a processor coupled to the memory; The memory is used to store program data, and the processor is used to execute the program data to implement the model storage method according to any one of claims 1 to 4, and / or the model rendering method according to any one of claims 5 to 8.

10. A computer storage medium, characterized in that: The computer storage medium is used to store program data, and when the program data is executed by a computer, it is used to implement the model storage method according to any one of claims 1 to 4, and / or the model rendering method according to any one of claims 5 to 8.