Three-dimensional model graphics rendering method, electronic device and readable storage medium thereof
A technology of three-dimensional models and electronic equipment, applied in the direction of program control design, image data processing, 3D image processing, etc., can solve problems such as the inability to achieve smooth output, reduce computing performance requirements, ensure original accuracy, and ensure quality and accuracy Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] In this example, the scene object geometry is first weighted and sorted. Please refer to Figure 4 As shown, the steps of the object geometry weight calculation sorting algorithm include:
[0048] Get the first parameter A: Get the size value of the bounding box of the sub-model in the object geometry, including length, width and height; A=diagonal length of the bounding box=length 2 + wide 2 +high 2 ;
[0049] Assign the second parameter B: check whether the object geometry is within the viewing frustum, if so, assign the value 1, otherwise assign the value -1;
[0050] The above two steps are in no particular order;
[0051] Calculate the third parameter C: Calculate the distance from the center point of the above bounding box of the object geometry to the camera or the camera;
[0052] Calculate the object weight value D: D = B * C 3 / A;
[0053] Comparison: If the weight values of the two objects have the same sign, the square operation is performed on ea...
Embodiment 2
[0061] The main difference from Embodiment 1 is that in this example, the model data is stored on the server. When the user terminal renders the model data, it needs to transmit the model data to the user terminal first. Due to the large amount of data transmission, the transmission time The cost will also increase exponentially, and the waiting time for loading scene data is too long, which will seriously affect the user experience in this case.
[0062] Please refer to Figure 6 As shown, when the user terminal is initialized, the user terminal receives the parameters required for weight calculation and transmitted from the server; according to the object geometry weight calculation and sorting method in Embodiment 1, the user terminal performs weight calculation and sorting of model data, and To call data from the server side, the first part of the model data is called first, and the model data sorted at the end is not transmitted or postponed for the time being. In this w...
Embodiment 3
[0068] Generally speaking, the hard disk capacity of electronic equipment will greatly exceed the memory capacity, but the read and write performance of the hard disk is not as good as that of the memory. In order to solve the problem of memory capacity limitation and break the limitation of system operating hardware to meet the requirements of low-configuration terminals, when the video memory data cannot be exchanged with the memory as in the method of embodiment 1, according to the object geometry weight calculation and sorting method of embodiment 1, please refer to Figure 7 As shown, this example first sorts the model data to be rendered, selects the number of offloads based on the current hardware performance, unloads the geometry of the objects at the end of the sort from the video memory, and saves them to the hard disk of the electronic device; at the same time, according to the current hardware performance Select the number of loads to load the object geometry of the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com