CN112529994B - Three-dimensional model graph rendering method, electronic device and readable storage medium thereof - Google Patents

Three-dimensional model graph rendering method, electronic device and readable storage medium thereof Download PDF

Info

Publication number
CN112529994B
CN112529994B CN202011589673.7A CN202011589673A CN112529994B CN 112529994 B CN112529994 B CN 112529994B CN 202011589673 A CN202011589673 A CN 202011589673A CN 112529994 B CN112529994 B CN 112529994B
Authority
CN
China
Prior art keywords
memory
objects
rendering
video memory
geometric
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011589673.7A
Other languages
Chinese (zh)
Other versions
CN112529994A (en
Inventor
卜友竹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tuwei Technology Co ltd
Original Assignee
Shenzhen Tuwei Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tuwei Technology Co ltd filed Critical Shenzhen Tuwei Technology Co ltd
Priority to CN202011589673.7A priority Critical patent/CN112529994B/en
Publication of CN112529994A publication Critical patent/CN112529994A/en
Application granted granted Critical
Publication of CN112529994B publication Critical patent/CN112529994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining

Abstract

The invention discloses a graph rendering method, electronic equipment and a readable storage medium thereof, wherein the graph rendering method comprises the following steps: calculating performance indexes required by rendering of the object geometry; if the required performance index exceeds the actual performance index of the system, carrying out weight calculation sequencing on the object geometric solid; loading the object geometric body at the front end of the sequencing into a video memory, and releasing the corresponding memory; and rendering the objects in the video memory. According to the graph rendering method, when the hardware performance of the electronic equipment is judged to reach the bottleneck, the model data with low weight value is preferentially stored into the memory from the video memory, the operation total amount and the memory/video memory usage amount of the CPU/GPU can be dynamically adjusted, and the video memory space is released to provide for the model rendering with high weight value, so that the operation resources are distributed to the scene object concerned by the user, and the scene roaming quality is not influenced; under the condition of fixed hardware configuration, the scene output of the graphic rendering is smoother.

Description

Three-dimensional model graph rendering method, electronic device and readable storage medium thereof
Technical Field
The invention relates to the field of data processing of electronic equipment, in particular to the field of graphic processing.
Background
In the process of rendering graphics, the hardware performance of electronic devices such as computers, mobile phone terminals, etc. plays a significant role in rendering. Take a commonly used computer as an example, wherein the GPU is a graphic operation processor and the brain directly reflects the rendering speed and quality. The video memory, as a data caching medium, like a highway to a destination (GPU), directly restricts the performance of the GPU. In order to experience the best performance, a client terminal needs to be equipped with a high-performance video card, and if a user uses a terminal device with common performance to run an industrial scene rendering program with ultra-million-level granularity, the following performance bottlenecks are usually encountered: the self-computing performance of hardware equipment such as a CPU/GPU is insufficient; 2. when the capacity of the video card is insufficient, the common memory needs to be dynamically divided to participate in calculation, and the data reading speed of the GPU is greatly influenced, because the speed of the GPU for reading the video memory is higher than the speed of reading the memory; 3. when the granularity of the model is too large, a large number of operation commands are generated and submitted to the CPU/GPU, and the CPU/GPU is possibly overloaded to influence the performance. The performance bottleneck of hardware can directly cause phenomena such as unsmooth scene, blocking and the like, and the user experience is greatly influenced.
If the three-dimensional model data and the rendering program are in the same operating environment, an LOD paging algorithm can be used, a set of model data is stored in scenes with different details respectively, and the model data is dynamically called according to the visual angle position. But this doubles the amount of model source data and requires additional preprocessing operations.
If the three-dimensional model data and the rendering program are not in the same operating environment, network transmission becomes a bottleneck. The multiplied transmission amount causes the transmission time cost to be multiplied, the waiting time for loading the scene data is too long, and the user experience is seriously influenced under the condition.
Disclosure of Invention
The invention mainly solves the technical problems that: in the three-dimensional model graphic processing of the electronic equipment, the scene smooth output with higher computational resource requirements cannot be realized due to hardware configuration.
Therefore, firstly, the invention provides a three-dimensional model graph rendering method which is applied to electronic equipment and comprises the following steps:
calculating a performance index: calculating performance indexes required by geometric rendering of an object to be rendered;
weight calculation ordering: if the required performance index exceeds the actual performance index of the equipment, carrying out weight calculation sequencing on the object geometry;
loading: loading the object geometric body at the front end of the sequencing into a video memory, and releasing the corresponding memory;
rendering: and rendering the objects in the video memory.
In the above three-dimensional model graphics rendering method, in an embodiment, before the step of calculating the performance index, the method further includes a working state determining process: it is determined that the operational state is in an idle frame after rendering a frame.
In an embodiment of the foregoing method for rendering a three-dimensional model graphic, before the loading step, the method further includes an unloading step: and unloading the geometric body video memory of the sequencing tail object and storing the geometric body video memory into the memory.
In the above three-dimensional model graphics rendering method, in an embodiment, the step of calculating and ordering the object geometry weights includes:
acquiring a first parameter A: obtaining dimensional values of a neutron model bounding box in the geometric object, including length, width and height, A = length2+ wide2+ high2
Assigning a second parameter B: checking whether the object geometry is in the view frustum, if so, assigning a positive value, and if not, assigning a negative value with an absolute value equal to the positive value;
calculating a third parameter C: calculating the distance from the center point of the surrounding box of the object geometry to the video camera or the camera;
calculating an object weight value D: d = B + C3 / A;
And (3) comparison: if the signs of the weight values of the two objects are the same, performing square operation on the weight values, comparing the square values of the weight values, and arranging the smaller value in front of the two objects; if the weighted values of the two objects are different in sign, the two objects are directly compared, and the larger object is arranged in front;
sorting: according to the comparison step, pairwise comparison is carried out on the weight values of the objects, and the sequence of the objects is determined.
Meanwhile, the invention provides electronic equipment which comprises a processor, a video memory and an internal memory, wherein the processor, the video memory and the internal memory are electrically connected; when the graph is rendered, the processor calculates performance indexes required by geometric rendering of the object; if the required performance index exceeds the actual performance index of the system, carrying out weight calculation sequencing on the object geometric solid; loading the object geometry at the front end of the sequencing into the video memory, and releasing the corresponding memory; and the processor renders the objects in the video memory.
Alternatively, an electronic device, comprising: a memory for storing program code; and the processor is used for executing the program codes stored in the memory by calling to realize the graphic rendering method.
Also, the present invention provides an electronic device readable storage medium including program code that can be called and executed by a processor to implement the above-described graphics rendering method.
According to the three-dimensional model graphic rendering method, the electronic device and the readable storage medium thereof provided by the invention, in the graphic rendering method of the embodiment, the object geometric objects are subjected to weight calculation and sequencing, when the hardware performance is judged to reach the bottleneck, the model data with low weight value is preferentially stored into the memory from the video memory, the total operation amount of the CPU/GPU and the memory/video memory usage amount can be dynamically adjusted, so that the video memory space is released to provide for the model rendering with high weight value, the operation resource is distributed to the scene object concerned by the user, and the scene roaming quality is not influenced.
For the three-dimensional information model with independent characteristics, according to the graph rendering method provided by the invention, the function of model object singleization is ensured, the material state can be independently selected, hidden, assigned, inquired and the like, and the logic structure can be maintained, the original precision of the model object is ensured, and the industrial requirements are met.
The method is applied to model objects with the number more than million, reduces the requirement on the operational performance of hardware when the model objects are completely added to scene rendering, and can be adapted to more low-configuration equipment terminals for browsing; meanwhile, the quality and the precision of the model are ensured because the lightweight processing of the model quality is not needed.
Drawings
FIG. 1 is a schematic view of a viewing cone of the present invention;
FIG. 2 is a schematic diagram of an object geometry model and bounding box according to the present invention;
FIG. 3 is a schematic view of the viewing frustum cutting principle of the present invention;
FIG. 4 is a flowchart illustrating an object geometry weight-ordering calculation according to a first embodiment of the present invention;
FIG. 5 is a flowchart illustrating memory swap control during graphics rendering according to a first embodiment of the present invention;
FIG. 6 is a flowchart of model data transmission during graphics rendering according to a second embodiment of the present invention;
fig. 7 is a flowchart of data exchange control during graphics rendering according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.
Furthermore, the features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.
The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" when used in this application, unless otherwise indicated, includes both direct and indirect connections (couplings).
In computer graphics processing, a view cone is usually used for limitation, and visible object objects in the view cone range are scene ranges and objects focused by a user. Referring to FIG. 1, a view frustum is a three-dimensional volume whose position is relative to the camera, and the shape of the view frustum determines how the model is projected from the camera space (camera space) onto the screen. The most common type of projection is perspective projection, with objects near the camera projected larger and objects farther from the camera projected smaller. The perspective projection uses a pyramid as a View Frustum, the camera is positioned at the top of the pyramid, the pyramid is cut off by a front plane and a rear plane to form a Frustum of a pyramid, which is called a View Frustum (View Frustum), and only a model positioned inside the Frustum of a pyramid is visible.
Referring to fig. 2, in the field of computer graphics and computational geometry, a closed space that completely encloses object combinations is defined as a bounding box, complex objects are encapsulated in a simple bounding box, and the shape of the complex geometric object is approximately replaced by the shape of the simple bounding box, so that the efficiency of geometric operations can be improved; and generally simple objects are easier to check for mutual overlap.
In the embodiment of the present invention, in the computer graphics rendering process, when a three-dimensional information model object (hereinafter referred to as an object) having an independent characteristic is rendered, different weights are given according to the relative positions of the object and a view cone:
objects within the view frustum range are given greater weight; meanwhile, objects in the cone range can be given different weights according to the distance degree, and the farther the object weight is, the lower the object weight is, the closer the object weight is, the greater the object weight is; in the current view cone range, different weights can be given according to the size of the resolution rendered by the object bounding box, and the smaller the resolution, the lower the weight of the object is, the later the model rendering sequence is adjusted.
Objects which intersect the view frustum are given smaller weight; meanwhile, different weights can be given according to the intersection degree of the two objects, the larger the proportion of the objects falling into the viewing cone during intersection is, the higher the weight is, and the lower the proportion of the objects falling into the viewing cone during intersection is, the lower the weight is.
Objects outside the cone range are given less weight; meanwhile, different weights can be given according to the degree of distance, and the farther the weight of the object is, the lower the weight of the object is, the closer the weight of the object is, the greater the weight of the object is.
Referring to fig. 3, the third object 3 is completely within the viewing cone (i.e. completely within the field of view), and the second object 2 and the fourth object 4 are both partially within the viewing cone, i.e. the two objects are partially within the field of view, or the objects are said to intersect the viewing cone. While four objects falling outside the viewing cone, a seventh object 7 behind the viewpoint, a sixth object 6 too far out of view, a first object 1 to the left outside the field of view, a fifth object 5 to the right outside the field of view, are all not inside the viewing cone. The third object 3 is an object that is rendered first, and the second object 2 and the fourth object 4 are objects that are rendered second best.
According to the principle, the object objects are subjected to weight calculation and sequencing, and when the hardware performance is judged to reach the bottleneck, a model with a high weight value is rendered preferentially; when the system has enough computing resources, the models are rendered in the order of the weights from high to low. And preferentially storing the model geometry body with low weight value from the video memory to the memory under the condition of insufficient video memory so as to release video memory space for providing the model rendering with high weight value.
Due to the fact that the operation total amount of the CPU/GPU and the use amount of the memory/video memory can be dynamically adjusted, some objects with lower weight are automatically ignored when the operation performance reaches the bottleneck period through the judgment of the rendering frame number, so that the operation resources are distributed to the scene objects concerned by the user, and the scene roaming quality is not influenced. The method has the advantages that the requirement on the operational performance of hardware is reduced when the model objects with the number more than million levels are completely added into scene rendering, and the method can be adapted to more low-configuration equipment terminals for browsing. And the quality and the precision of the model are ensured because the lightweight processing of the model quality is not needed.
When the model source data is stored in the server, the transmission of the objects with higher weight is preferentially ensured, and some objects with lower weight are ignored to strictly control the network transmission amount, so that the time cost spent on network transmission is saved, and the network transmission amount can be compressed under the condition of not sacrificing the model precision.
The first embodiment is as follows:
in this example, the scene object geometries are first ranked by weight calculation. Referring to fig. 4, the steps of the object geometry weight calculation sorting algorithm include:
acquiring a first parameter A: obtaining the size numerical values of a neutron model bounding box in the object geometry, including length, width and height; a = length of bounding box diagonal = length2+ wide2+ high2
Assigning a second parameter B: checking whether the object geometry is within the viewing frustum, if so, assigning a value of 1, and otherwise, assigning a value of-1;
the two steps are not divided into front and back order;
calculating a third parameter C: calculating the distance from the center point of the bounding box of the object geometric body to the camera or the camera;
calculating an object weight value D: d = B + C3 / A;
And (3) comparison: if the signs of the weight values of the two objects are the same, performing square operation on the weight values, comparing the square values of the weight values, and arranging the smaller value in front of the two objects; if the weighted values of the two objects are different in sign, the two objects are directly compared, and the large object is arranged in front.
Sorting: according to the comparison step, pairwise comparison is carried out on the weight values of the objects, and the sequence of the objects is determined. In particular, conventional sorting algorithms may be applied, such as bubble sorting, quick sorting, etc.
When the performance of the current equipment meets the bottleneck of calculation performance, namely the display memory capacity is insufficient, the operation speed of a GPU and a CPU is reduced, and the like, so that the rendering frame rate (the rendering times in one second) is reduced, memory exchange is carried out, namely, objects with part of weights sorted back are moved out of the display memory into the memory; uploading data in an independent thread until all data are completely uploaded, calculating a sequencing result according to the uploading sequence, and if the sequencing objects are not uploaded, continuously uploading and adding a video memory for rendering; and then uploaded to other media such as a memory or a hard disk in sequence.
Referring to fig. 5, the process of memory exchange includes: judging whether the current hardware performance is in an idle frame, if the equipment is in the idle frame after rendering one frame, calculating performance indexes required by rendering of all the object geometric objects, namely video memory capacity, GPU and CPU operation speed, and if the required performance indexes exceed actual performance indexes of a system, performing sequencing of the object geometric objects according to the object geometric object weight calculation sequencing method, selecting the unloading quantity by combining the current hardware performance, unloading the video memory of the object geometric objects at the tail part of the sequencing, and storing the video memory of the object geometric objects in a memory; and simultaneously, selecting the loading quantity according to the current hardware performance, loading the object geometric body at the front part of the sequencing into the video memory, and releasing the corresponding memory.
And the electronic equipment continues to render the next frame of the object in the video memory.
Correspondingly, the electronic equipment of the embodiment comprises a processor, a video memory and a memory, which are electrically connected; according to the embodiment, when the graph is rendered, the processor calculates the performance index required by the geometric rendering of the object; if the required performance index exceeds the actual performance index of the system, carrying out weight calculation sequencing on the object geometric solid; loading the object geometric body at the front end of the sequencing into a video memory, and releasing the corresponding memory; and the processor renders the objects in the video memory.
Correspondingly, the above embodiments are implemented by solidifying the program code in a memory of the electronic device, where the memory is a readable storage medium, such as a hard disk or a flash disk, and is called by a processor of the electronic device to execute the above embodiments to render the object geometry.
Example two:
the difference from the first embodiment is mainly that, in this example, the model data is stored in the server, and when the user terminal renders the model data, the user terminal needs to transmit the model data to the user terminal first, because the data transmission amount is large, the transmission time cost is also increased by times, the waiting time for loading the scene data is too long, and the user experience is seriously affected in this case.
Referring to fig. 6, when the ue initializes, the ue receives parameters transmitted from the server for weight calculation; according to the object geometry weight calculation sorting method of the first embodiment, the user terminal performs weight calculation sorting of model data, calls data from the server side as needed, preferentially calls a part of model data sorted in front, and transmits the model data sorted at the tail part temporarily or after the model data is sorted. Therefore, the real-time data transmission quantity of the network is reduced, and the data transmission quantity is not compressed under the condition of sacrificing the model precision.
In another embodiment, in this example, the server actively sequences the model data to be transmitted, preferentially transmits the part of the model data sequenced at the front, and transmits the model data sequenced at the tail temporarily or after escorting.
The user terminal electronic equipment downloads the model data in the independent thread until all the data are completely downloaded, the downloading sequence calculates the sequencing result according to the weight, if the sequencing object is not downloaded, the model data are continuously downloaded and added into the video memory for rendering and presenting; and then downloaded to other media such as a memory, a hard disk, or a flash memory in sequence.
Correspondingly, the electronic equipment of the embodiment comprises a processor, a video memory and a memory, which are electrically connected; according to the embodiment, when the graph is rendered, the processor calculates the performance index required by the geometric rendering of the object; if the required performance index exceeds the actual performance index of the system, carrying out weight calculation sequencing on the object geometric solid; loading the object geometric body at the front end of the sequencing into a video memory, and releasing the corresponding memory; and the processor renders the objects in the video memory.
Correspondingly, the above embodiments are implemented by solidifying the program code in a memory of the electronic device, where the memory is a readable storage medium, such as a hard disk or a flash disk, and is called by a processor of the electronic device to execute the above embodiments to render the object geometry.
Example three:
generally, the hard disk capacity of an electronic device greatly exceeds the memory capacity, but the read-write performance of the hard disk is inferior to that of the memory. In order to solve the problem of memory capacity limitation, the limitation of system operation hardware is broken to meet a low-configuration terminal, when data of the video memory cannot be exchanged with the memory as in the first embodiment, a sorting method is calculated according to the object geometry weight of the first embodiment, as shown in fig. 7, in this embodiment, model data to be rendered are sorted first, the unloading quantity is selected in combination with the current hardware performance, the object geometry at the tail part of the sorting is unloaded from the video memory and stored in a hard disk of the electronic device; and simultaneously, selecting the loading quantity according to the current hardware performance, and loading the object geometric body at the front part of the sequencing into the video memory. The electronic equipment preferentially renders the object geometric model data in the video memory according to the sequence.
Correspondingly, the electronic equipment comprises a processor, a video memory and a hard disk, which are electrically connected; according to the embodiment, when the graph is rendered, the processor calculates the performance index required by the geometric rendering of the object; if the required performance index exceeds the actual performance index of the system, carrying out weight calculation sequencing on the object geometric solid; loading the object geometric body at the front end of the sequencing into a video memory; and the processor renders the objects in the video memory.
Correspondingly, the above embodiments are implemented by solidifying the program code in a memory of the electronic device, where the memory is a readable storage medium, such as a hard disk or a flash disk, and is called by a processor of the electronic device to execute the above embodiments to render the object geometry.
Those skilled in the art will appreciate that all or part of the functions of the various methods in the above embodiments may be implemented by hardware, or may be implemented by computer programs. The electronic device in the present invention is a device capable of executing the aforementioned computer program, and the hardware thereof may be a conventional desktop computer, a notebook computer, a tablet computer, a mobile phone terminal, an electronic game terminal, a wearable device, and the like. When all or part of the functions of the above embodiments are implemented by a computer program, the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory, a random access memory, a magnetic disk, an optical disk, a hard disk, etc., and the program is called and executed by the electronic device to realize the above functions. For example, the program may be stored in a memory of the device, and when the program in the memory is executed by the processor, all or part of the functions described above may be implemented. In addition, when all or part of the functions in the above embodiments are implemented by a computer program, the program may be stored in a storage medium such as a server, another computer, a magnetic disk, an optical disk, a flash disk, or a removable hard disk, and may be downloaded or copied to a memory of a local device, or may be version-updated in a system of the local device, and when the program in the memory is executed by a processor, all or part of the functions in the above embodiments may be implemented.
The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.

Claims (4)

1. A three-dimensional model graph rendering method is applied to electronic equipment and comprises the following steps:
a state judgment step: determining that the working state is in an idle frame after rendering one frame;
calculating a performance index: calculating performance indexes required by geometric rendering of an object to be rendered;
weight calculation ordering: if the required performance index exceeds the actual performance index of the equipment, carrying out weight calculation sequencing on the object geometry;
unloading: unloading the geometric display memory of the sequencing tail object and storing the geometric display memory into a memory;
loading: loading the object geometric body at the front end of the sequencing into a video memory, and releasing the corresponding memory;
rendering: rendering an object in the video memory;
wherein, the specific steps of the weight calculation sequencing comprise:
acquiring a first parameter A: obtaining dimensional values of a neutron model bounding box in the geometric object, including length, width and height, A = length2+ wide2+ high2
Assigning a second parameter B: checking whether the object geometry is in the view frustum, if so, assigning a positive value, and if not, assigning a negative value with an absolute value equal to the positive value;
calculating a third parameter C: calculating the distance from the center point of the bounding box of the object geometric body to the camera or the camera;
calculating an object weight value D: d = B + C3 / A;
And (3) comparison: if the signs of the weight values of the two objects are the same, performing square operation on the weight values, comparing the square values of the weight values, and arranging the smaller value in front of the two objects; if the weighted values of the two objects are different in sign, the two objects are directly compared, and the larger object is arranged in front;
sorting: according to the comparison step, pairwise comparison is carried out on the weight values of the objects, and the sequence of the objects is determined.
2. An electronic device comprises a processor, a video memory and a memory, wherein the processor, the video memory and the memory are electrically connected; the method is characterized in that: when the three-dimensional model graph is rendered, the processor judges the working state and determines that the working state is in an idle frame after one frame is rendered; the processor calculates performance indexes required by the rendering of the object geometry; if the required performance index exceeds the actual performance index of the system, carrying out weight calculation sequencing on the object geometric solid; the processor unloads the geometric solid video memory of the sequencing tail object and stores the geometric solid video memory into the memory; loading the object geometry at the front end of the sequencing into the video memory, and releasing the corresponding memory; the processor renders the objects in the video memory;
wherein the specific steps of the processor to calculate the weight calculation ranking of the object geometry comprise:
acquiring a first parameter A: obtaining dimensional values of a neutron model bounding box in the geometric object, including length, width and height, A = length2+ wide2+ high2
Assigning a second parameter B: checking whether the object geometry is in the view frustum, if so, assigning a positive value, and if not, assigning a negative value with an absolute value equal to the positive value;
calculating a third parameter C: calculating the distance from the center point of the bounding box of the object geometric body to the camera or the camera;
calculating an object weight value D: d = B + C3 / A;
And (3) comparison: if the signs of the weight values of the two objects are the same, performing square operation on the weight values, comparing the square values of the weight values, and arranging the smaller value in front of the two objects; if the weighted values of the two objects are different in sign, the two objects are directly compared, and the larger object is arranged in front;
sorting: according to the comparison step, pairwise comparison is carried out on the weight values of the objects, and the sequence of the objects is determined.
3. An electronic device, comprising:
a memory for storing program code;
a processor for executing the program code stored by the memory by calling to implement the method of claim 1.
4. An electronic device readable storage medium comprising program code that is invokable by a processor to implement the method of claim 1.
CN202011589673.7A 2020-12-29 2020-12-29 Three-dimensional model graph rendering method, electronic device and readable storage medium thereof Active CN112529994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011589673.7A CN112529994B (en) 2020-12-29 2020-12-29 Three-dimensional model graph rendering method, electronic device and readable storage medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011589673.7A CN112529994B (en) 2020-12-29 2020-12-29 Three-dimensional model graph rendering method, electronic device and readable storage medium thereof

Publications (2)

Publication Number Publication Date
CN112529994A CN112529994A (en) 2021-03-19
CN112529994B true CN112529994B (en) 2022-01-11

Family

ID=74977622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011589673.7A Active CN112529994B (en) 2020-12-29 2020-12-29 Three-dimensional model graph rendering method, electronic device and readable storage medium thereof

Country Status (1)

Country Link
CN (1) CN112529994B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467958B (en) * 2021-09-02 2021-12-14 腾讯科技(深圳)有限公司 Data processing method, device, equipment and readable storage medium
CN116433818B (en) * 2023-03-22 2024-04-16 宝钢工程技术集团有限公司 Cloud CPU and GPU parallel rendering method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217456A (en) * 2013-05-31 2014-12-17 高德信息技术有限公司 Three-dimensional model data loading method and device
CN108520557A (en) * 2018-04-10 2018-09-11 中国人民解放军战略支援部队信息工程大学 A kind of magnanimity building method for drafting of graph image fusion
CN109558507A (en) * 2017-09-26 2019-04-02 中建科技有限公司深圳分公司 Threedimensional model rendering method and system
CN110209974A (en) * 2019-05-29 2019-09-06 深圳图为技术有限公司 A kind of method and apparatus browsing threedimensional model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217456A (en) * 2013-05-31 2014-12-17 高德信息技术有限公司 Three-dimensional model data loading method and device
CN109558507A (en) * 2017-09-26 2019-04-02 中建科技有限公司深圳分公司 Threedimensional model rendering method and system
CN108520557A (en) * 2018-04-10 2018-09-11 中国人民解放军战略支援部队信息工程大学 A kind of magnanimity building method for drafting of graph image fusion
CN110209974A (en) * 2019-05-29 2019-09-06 深圳图为技术有限公司 A kind of method and apparatus browsing threedimensional model

Also Published As

Publication number Publication date
CN112529994A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US11270497B2 (en) Object loading method and apparatus, storage medium, and electronic device
CN112529994B (en) Three-dimensional model graph rendering method, electronic device and readable storage medium thereof
CN107507262B (en) Three-dimensional rendering method and system for large scene
US20060274085A1 (en) Methods and Apparatus For Structuring Geometric Models
US20200066024A1 (en) Scene-based foveated rendering of graphics content
US10325390B2 (en) Geometric work scheduling with dynamic and probabilistic work trimming
KR102417685B1 (en) How to render gigapixel images in real time
KR20140105609A (en) Online gaming
US20240029338A1 (en) Ray-tracing with irradiance caches
CN111063032B (en) Model rendering method, system and electronic device
US20190122421A1 (en) Batch rendering method, device, and apparatus
US20200058164A1 (en) Point cloud rendering on gpu using dynamic point retention
CN114529658A (en) Graph rendering method and related equipment thereof
CN114008677A (en) Three-dimensional model optimization
CN109272567B (en) Three-dimensional model optimization method and device
CN114596423A (en) Model rendering method and device based on virtual scene gridding and computer equipment
US10872469B2 (en) System and method for subdividing large polygon mesh datasets into hierarchical subsets for level-of-detail use
CN116761018B (en) Real-time rendering system based on cloud platform
CN116740248A (en) Control method, chip and device, controller, equipment and medium for distributing image blocks
CN111950057A (en) Loading method and device of Building Information Model (BIM)
US20200344172A1 (en) Systems and Methods For Prioritizing Requests For Hierarchical Level Of Detail Content Over A Communications Network
CN115861510A (en) Object rendering method, device, electronic equipment, storage medium and program product
KR100693134B1 (en) Three dimensional image processing
CN111476910B (en) 3D model display method, system, medium and display terminal of intelligent building BIM
CN109829152A (en) Head portrait replacing options, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Building 701, Building 1, Boying Building, No. 18 Qingshuihe Third Road, Qingshuihe Community, Qingshuihe Street, Luohu District, Shenzhen City, Guangdong Province, 518000

Patentee after: Shenzhen Tuwei Technology Co.,Ltd.

Country or region after: China

Address before: 1101, building 18, China Hisense innovation industry city, No. 11, Ganli 2nd Road, gankeng community, Jihua street, Longgang District, Shenzhen, Guangdong 518000

Patentee before: Shenzhen Tuwei Technology Co.,Ltd.

Country or region before: China