Display method and device of three-dimensional model, server and storage medium
Patent Information
- Application Number
- CN202111144051.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2041-09-28
AI Technical Summary
[0004]本申请实施例提供了一种三维模型的显示方法、装置、服务器及存储介质,能够解决相关技术中终端无法根据自身的显示条件显示三维模型的问题
Smart Images

Figure CN115880416B_ABST
Abstract
Claims
1. A display method of a three-dimensional model, characterized by, The method includes: Parse the original model file to obtain the original attribute data, which includes the original texture data, original node data, original mesh data and original animation data of the 3D model. The texture data contains the image used to generate the 3D model, the node data and mesh data are used to generate the number of facets of the 3D model, and the animation data is used to render the model's actions. Based on the compression ratio corresponding to at least two levels of model accuracy, the original attribute data is compressed to obtain at least two compressed attribute data. The compression ratio is negatively correlated with the model accuracy, and different compression methods are used for different data types. At least two candidate model files are generated based on at least two compressed attribute data. The candidate model files are GLTF files, and different candidate model files correspond to different scoring ranges. The model accuracy of the original model file corresponding to the 3D model is greater than the model accuracy of the 3D model corresponding to each candidate model file. In response to a model acquisition request from a terminal, the model display conditions of the terminal are determined. The model display conditions characterize the terminal's ability to display a 3D model. The model display conditions include hardware conditions and network conditions. The hardware conditions include at least one of memory parameters, processor parameters, and resolution. The network conditions include at least one of network type, network signal strength, network latency, and network speed. Calculate a hardware score based on the hardware conditions and hardware weights, and calculate a network score based on the network conditions and network weights. The terminal score is determined based on the hardware score, the first weighting coefficient corresponding to the hardware score, the network score, and the second weighting coefficient corresponding to the network score. The terminal score is positively correlated with the terminal's ability to display 3D models. Based on the terminal score and the model selection mapping table, a target model file is determined from at least two candidate model files. The model selection mapping table stores the association between the terminal score and the candidate model files. Different candidate model files are used to render 3D models with different model accuracies, and the model accuracies of the 3D model corresponding to the target model file meet the model display conditions. The target model file is sent to the terminal so that the terminal can render the 3D model based on the target model file.
2. The method of claim 1, wherein, The original attribute data is compressed based on the compression ratio corresponding to at least two levels of model accuracy to obtain at least two compressed attribute data, including: Based on the compression ratio, the original texture data is subjected to image compression processing to obtain compressed texture data, the amount of data in the compressed texture data is less than the amount of data in the original texture data.
3. The method of claim 1, wherein, The original attribute data is compressed based on the compression ratio corresponding to at least two levels of model accuracy to obtain at least two compressed attribute data, including: The number of original nodes is determined based on the original node data, and the number of original grids is determined based on the original grid data; The number of nodes after compression is determined based on the compression ratio and the original number of nodes, and the number of grids after compression is determined based on the compression ratio and the original number of grids; Based on the number of nodes after compression, the original node data is simplified to obtain compressed node data; and based on the number of grids after compression, the original grid data is simplified to obtain compressed grid data.
4. The method according to claim 1, characterized in that, The original attribute data is compressed based on the compression ratio corresponding to at least two levels of model accuracy to obtain at least two compressed attribute data, including: The original animation frame rate is determined based on the original animation data; The compressed animation frame rate is determined based on the compression ratio and the original animation frame rate, wherein the compressed animation frame rate is less than the original animation frame rate; The original animation data is compressed based on the compressed animation frame rate to obtain compressed animation data.
5. A display device for a three-dimensional model, characterized in that, The device includes: The model file generation module is used to parse the original model file to obtain the original attribute data. The original attribute data includes the original texture data, original node data, original mesh data and original animation data of the 3D model. The texture data contains the image used to generate the 3D model, the node data and mesh data are used to generate the number of facets of the 3D model, and the animation data is used to render the model actions of the 3D model. Based on the compression ratio corresponding to at least two levels of model accuracy, the original attribute data is compressed to obtain at least two compressed attribute data. The compression ratio is negatively correlated with the model accuracy, and different compression methods are used for different data types. At least two candidate model files are generated based on at least two compressed attribute data. The candidate model files are GLTF files, and different candidate model files correspond to different scoring ranges. The model accuracy of the original model file corresponding to the 3D model is greater than the model accuracy of the 3D model corresponding to each candidate model file. The condition determination module is used to determine the model display conditions of the terminal in response to the model acquisition request of the terminal. The model display conditions are used to characterize the terminal's ability to display a 3D model. The model display conditions include hardware conditions and network conditions. The hardware conditions include at least one of memory parameters, processor parameters, and resolution. The network conditions include at least one of network type, network signal strength, network latency, and network speed. The model file determination module is used to calculate a hardware score based on the hardware conditions and hardware weights, and to calculate a network score based on the network conditions and network weights. The terminal score is determined based on the hardware score, the first weighting coefficient corresponding to the hardware score, the network score, and the second weighting coefficient corresponding to the network score. The terminal score is positively correlated with the terminal's ability to display 3D models. Based on the terminal score and the model selection mapping table, a target model file is determined from at least two candidate model files. The model selection mapping table stores the association between the terminal score and the candidate model files. Different candidate model files are used to render 3D models with different model accuracies, and the model accuracies of the 3D model corresponding to the target model file meet the model display conditions. The sending module is used to send the target model file to the terminal so that the terminal can render the 3D model based on the target model file.
6. A server, characterized in that, The server includes a processor and a memory, the memory storing at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the method for displaying a three-dimensional model as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The readable storage medium stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method for displaying a three-dimensional model as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system for realizing browse of 3D (three-dimensional) model as well as server
CN102420839A