CN112330496B - Model loading method and device, storage medium and computer equipment - Google Patents
Model loading method and device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN112330496B CN112330496B CN202011381651.1A CN202011381651A CN112330496B CN 112330496 B CN112330496 B CN 112330496B CN 202011381651 A CN202011381651 A CN 202011381651A CN 112330496 B CN112330496 B CN 112330496B
- Authority
- CN
- China
- Prior art keywords
- model
- fineness
- loaded
- display
- models
- 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
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 66
- 230000000007 visual effect Effects 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000009877 rendering Methods 0.000 claims description 16
- 239000007787 solid Substances 0.000 claims description 9
- 238000012821 model calculation Methods 0.000 claims description 2
- 238000004590 computer program Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/08—Construction
Landscapes
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses a model loading method and device, a storage medium and computer equipment. According to the method and the device, a plurality of models with different fineness are generated by the component according to the fineness of the obtained bounding box and the component, then the model with the corresponding fineness of the component is calculated according to the visual angle information of the obtained camera, the model with the fineness exceeding the fineness of the display model to be loaded is removed in the first cache set, and when the memory required by the display model to be loaded does not exceed the system memory, the model with the fineness exceeding the system memory in the display model to be loaded is downloaded to render the downloaded model. When the visual angle information of the camera is changed, the model with the component corresponding to the fineness is calculated according to the acquired visual angle information of the camera, so that the dynamic switching of the model is realized.
Description
Technical Field
The application belongs to the technical field of buildings, and particularly relates to a model loading method and device, a storage medium and computer equipment.
Background
With the rapid development of computer technology, automated aided design has been widely used in various industries.
In the field of building design, people use automated design software to design buildings. The method is specially suitable for a very large Building Information Modeling (BIM) scene, realizes real-time rendering of massive three-dimensional geometric data, and adopts an asynchronous loading rendering mechanism which can perform rendering while downloading. The core mechanism is based on a cloud-side multi-level of Detail (LOD) technology and browser memory management.
The LOD can be normally used in games, but there are several problems in the BIM scene at the Web end: the game relies on local loading, and files with LOD level are stored in a local hard disk, which cannot meet the dynamic loading requirement of a Web end. The LOD level of the game model is generally created manually in the art modeling process, and most BIM models do not have the LOD level manually generated. The game model mainly takes the display effect as the main part and does not store the BIM data. LOD can be used normally in games, but various problems can occur on the Web side.
In view of this, the LOD cannot render the three-dimensional geometric data in real time in the BIM scene at the Web end at present.
Disclosure of Invention
The embodiment of the application provides a model loading method and device, a storage medium and computer equipment, which are used for solving the problem that LOD cannot render three-dimensional geometric data in a BIM scene at a Web end in real time.
According to a first aspect of the present application, there is provided in an embodiment of the present application a modeling method, including the steps of: obtaining modeling data; generating component information and geometric data from the modeling data; calculating according to the geometric data to obtain a bounding box; and generating a plurality of models with different finenesses from the components based on the obtained bounding boxes and the fineness of the components, wherein the models at least comprise a contour model and a solid model, the fineness of the contour model is the lowest, and the fineness of the solid model is the highest.
Optionally, after the step of generating a plurality of models with different fineness from the component based on the obtained bounding box and fineness of the component, the model at least comprises a contour model and a solid model, and the method further comprises the following steps: storing a plurality of different fineness models generated by the component.
According to a second aspect of the present application, an embodiment of the present application provides a model loading method, where the model is generated according to the modeling method, and the model loading method includes the following steps: loading a first cache set, wherein the first cache is used for storing the reserved model after the model loading method is run for multiple times; acquiring visual angle information of a camera; calculating a model of the corresponding fineness of the component according to the acquired visual angle information of the camera, and defining the model as a display model to be loaded; removing the model with fineness exceeding that of the display model to be loaded in the first cache set, and storing the residual models in the first cache set in a second cache set; judging whether the memory required by the display model to be loaded exceeds the system memory; when the memory required by the display model to be loaded does not exceed the system memory, downloading the model which does not exceed the system memory in the display model to be loaded; and rendering the downloaded model into a scene.
Optionally, the model loading method further includes the following steps: and when the memory required by the display model to be loaded exceeds the system memory, stopping downloading the model matched with the fineness of the display model to be loaded.
Optionally, after the step of removing the model with fineness exceeding that of the display model in the first cache set and storing the remaining models in the first cache set in the second cache set, the method further includes the following steps: acquiring a component corresponding to a model exceeding a system memory in a display model to be loaded; based on the obtained component, obtaining a corresponding model in the second cache set; rendering the model in the second cache set into a scene.
Optionally, the model loading method further includes the following steps: detecting whether a viewing angle of the camera changes; and when the visual angle of the camera is judged to be changed, the visual angle of the camera is acquired again.
Optionally, the model loading method further includes the following steps: initializing a scene; loading the initialized scene; and downloading and loading the outline models of all the components in the initialized scene.
According to a third aspect of the present application, an embodiment of the present application provides a model loading apparatus, where the model is generated according to the modeling method, and the model loading apparatus includes: the model loading unit is used for loading a first cache set, and the first cache is used for storing the model which is reserved after the model loading method is run for multiple times; a visual angle acquisition unit for acquiring visual angle information of the camera; the model calculation unit is used for calculating a model with corresponding fineness of the component according to the acquired visual angle information of the camera and defining the model as a display model to be loaded; the model removing unit is used for removing the models with the fineness exceeding that of the display models to be loaded in the first cache set and storing the residual models in the first cache set in a second cache set; the memory judgment unit is used for judging whether the memory required by the display model to be loaded exceeds the system memory; the model downloading unit is used for downloading a model which does not exceed the system memory in the display model to be loaded when the memory required by the display model to be loaded is judged to not exceed the system memory; and the scene rendering unit is used for rendering the scene of the downloaded model.
According to a fourth aspect of the present application, an embodiment of the present application provides a storage medium, where the storage medium has a plurality of instructions stored therein, and the instructions are adapted to be loaded by a processor to execute the model loading method provided in any embodiment of the present application.
According to a fifth aspect of the present application, in an embodiment of the present application, there is provided a computer device, which includes a processor and a memory, the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the model loading method provided in any embodiment of the present application.
The embodiment of the application provides a model loading method and device, a modeling method, a storage medium and computer equipment. According to the method and the device, a plurality of models with different fineness are generated by the component according to the fineness of the obtained bounding box and the component, then the model with the corresponding fineness of the component is calculated according to the visual angle information of the obtained camera, the model with the fineness exceeding the fineness of the display model to be loaded is removed in the first cache set, and when the memory required by the display model to be loaded does not exceed the system memory, the model with the fineness exceeding the system memory in the display model to be loaded is downloaded to render the downloaded model. When the visual angle information of the camera is changed, the model with the component corresponding to the fineness is calculated according to the acquired visual angle information of the camera, so that the dynamic switching of the model is realized.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a flowchart illustrating steps of a modeling method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating steps of a model loading method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a model loading device according to an embodiment of the present application.
Fig. 4 is an internal structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the present application. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it will be understood that terms such as "including," "having," and "containing" are intended to specify the presence of the features, integers, steps, acts, or combinations thereof disclosed in the specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
As shown in fig. 1, the present application provides a flow chart of steps of a modeling method, the modeling method comprising the steps of:
step S110: modeling data is obtained.
Specifically, in this embodiment, the modeling data is building software class data, and the format of the building software class data may be RVT or SKP.
Step S120: component information and geometric data are generated from the modeling data.
Specifically, the component information and the geometric data for presentation are generated from the modeling data. The component information is an exchangeable part actually existing in the computer system, and the component information can realize a specific function. The geometric data is used for representing the information of all aspects of the position, the shape, the size distribution and the like of an object, and is a quantitative description of things and phenomena which have positioning significance and exist in the world.
Step S130: and calculating to obtain the bounding box according to the geometric data.
In particular, an algorithm for solving the optimal bounding space of the discrete point set can be formed by bounding boxes, and in particular, complex geometric objects are approximately replaced by geometric objects with slightly larger volumes and simple characteristics (called bounding boxes).
Step S140: based on the resulting bounding box and the fineness of the component, the component is generated into a plurality of models of different finenesses.
Specifically, the model at least comprises a contour model and a solid model, wherein the fineness of the contour model is the lowest, and the fineness of the solid model is the highest. In the present embodiment, each component may form sixteen different fineness models (the models having LOD levels).
Step S150: storing a plurality of different fineness models generated by the component.
Specifically, the models with different finenesses are stored, and may be stored in a file or a memory for loading by the web page side.
Through the implementation of the steps, the component can generate a plurality of models with different fineness according to the obtained bounding box and the fineness of the component, and data support is provided for acquiring the models with different fineness from a subsequent webpage end.
As shown in fig. 2, the present application provides a flow chart of steps of a model loading method, where the model loading method includes the steps of:
step S210: a scene is initialized.
Step S220: and loading the initialized scene.
Specifically, the web-side environment is initialized, octree is enabled in this embodiment, and the loading of the scenario begins.
Step S230: and downloading and loading the outline models of all the components in the initialized scene.
Specifically, the simplest model of each building block is downloaded and loaded into the scene, i.e., the outline model of each building block is downloaded and loaded into the scene. By the arrangement, the user can see the overall outline of the component in the scene after initial loading initialization. In addition, when the model is loaded through the webpage end for the first time, the profile models of all components can be loaded by default because the camera view angle is far away from the model at that time, so that the fastest loading speed and the lowest memory occupation are ensured.
Step S240: a first cache set is loaded.
Specifically, the first cache is used for storing the model which is persisted after the model loading method is run.
Step S250: and acquiring the visual angle information of the camera.
In this embodiment, the view angle Information of the current camera is transmitted through a Building Information Modeling (BIM) engine.
Step S260: and calculating a model of the component corresponding to fineness according to the acquired visual angle information of the camera, and defining the model as a display model to be loaded.
Specifically, according to given perspective information, a model which the member in the scene should display at present is calculated.
Step S270: and removing the model with the fineness exceeding that of the display model to be loaded in the first cache set, and storing the residual models in the first cache set in a second cache set.
Specifically, the model exceeding the fineness is removed, and therefore the fastest loading speed is ensured, and the system memory occupation is the lowest. For example, the first cache set stores all models (i.e., D0-D15) of two components, and when only D5 and D7 are needed for the fineness of the two components in the display model to be loaded, respectively, then finally the models of D0-D5 and D0-D7 are kept in the second cache set.
Step S280: and judging whether the memory required by the display model to be loaded exceeds the system memory.
It should be noted that the system memory is the main area of the system for temporarily storing program instructions and data.
Step S290: and downloading the model which does not exceed the system memory in the display models to be loaded.
And when the memory required by the display model to be loaded does not exceed the system memory, downloading the model which does not exceed the system memory in the display model to be loaded.
Step S300: and rendering the downloaded model into a scene.
As the view angle of the camera approaches a certain component, the model with low fineness of the component is automatically replaced by the model with high fineness.
Step S281: and stopping downloading the model matched with the fineness of the display model to be loaded.
And stopping downloading the model matched with the fineness of the display model to be loaded when judging that the memory required by the display model to be loaded exceeds the system memory.
Step S282: and acquiring components corresponding to the models exceeding the system memory in the display model to be loaded.
Step S283: based on the retrieved components, a corresponding model in the second cache set is retrieved.
Specifically, when the system memory cannot load a higher-fineness model of a component, the lower-fineness model stored by the component is automatically identified.
Step S284: and rendering the model in the second cache set into a scene.
Specifically, the low-fineness model stored by the component is rendered into the scene.
Step S310: detecting whether a viewing angle of the camera changes.
Step S320: and when the visual angle of the camera is judged to be changed, the visual angle of the camera is acquired again.
Specifically, when the visual angle information of the camera changes, the model with the component corresponding to the fineness is calculated again according to the acquired visual angle information of the camera, so that the dynamic switching of the model is realized.
It should be understood that although the steps in the flowcharts of fig. 1 and 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The embodiment of the application provides a model loading method, which comprises the steps of generating a plurality of models with different fineness for a component according to the fineness of the obtained bounding box and the component, calculating the model with the corresponding fineness of the component according to the acquired visual angle information of a camera, removing the model with the fineness exceeding the fineness of a display model to be loaded in a first cache set, and downloading the model with the fineness not exceeding the fineness of the system memory in the display model to be loaded to render a downloaded model when the memory required by the display model to be loaded does not exceed the system memory. When the visual angle information of the camera is changed, the model with the component corresponding to the fineness is calculated according to the acquired visual angle information of the camera, so that the dynamic switching of the model is realized.
As shown in fig. 3, the present application provides a schematic structural diagram of a model loading device, where the model loading device includes: the system comprises a model loading unit 10, a viewing angle obtaining unit 20, a model calculating unit 30, a model removing unit 40, a memory determining unit 50, a model downloading unit 60 and a scene rendering unit 70.
The model loading unit 10 is configured to load the first cache set. Specifically, the first cache is used for storing the model which is persisted after the model loading method is run for multiple times.
The angle-of-view acquisition unit 20 is used to acquire angle-of-view information of the camera. Specifically, in the present embodiment, the view angle Information of the current camera is transmitted through a Building Information Modeling (BIM) engine.
The model calculating unit 30 is used for calculating a model with component corresponding fineness according to the acquired visual angle information of the camera, and defining the model as a display model to be loaded. Specifically, according to given perspective information, a model that a member in the scene should currently display is calculated.
The model removing unit 40 is configured to remove the models with the fineness exceeding the fineness of the display model to be loaded in the first cache set, and store the remaining models in the first cache set in the second cache set. Specifically, the model exceeding the fineness is removed, and therefore the loading speed is fastest, and the system memory occupation is lowest.
The memory determination unit 50 is used to determine whether the memory required by the display model to be loaded exceeds the system memory. Specifically, the system memory is the main area of the system where program instructions and data are temporarily stored.
The model downloading unit 60 is configured to download a model that does not exceed the system memory from the to-be-loaded display model when it is determined that the memory required by the to-be-loaded display model does not exceed the system memory. Specifically, when it is determined that the memory required by the display model to be loaded does not exceed the system memory, the model that does not exceed the system memory in the display model to be loaded is downloaded.
The render scene unit 70 is used to render the downloaded model into a scene. Specifically, as the camera angle of view approaches, a model with low fineness is automatically replaced by a model with high fineness.
The embodiment of the application provides a model loading device, the device is according to the fineness of obtained bounding box and component, with the component generate a plurality of different fineness models, then according to the visual angle information of the camera that acquires, calculate the model of component correspondence fineness, get rid of the first cache is concentrated the model that the fineness surpassed the display model fineness of waiting to load, when the memory that the display model that waits to load required does not surpass the system memory, the model that downloads not surpassing the system memory among the display model that waits to load renders the scene with the model that downloads. When the visual angle information of the camera is changed, the model with the component corresponding to the fineness is calculated according to the acquired visual angle information of the camera, so that the dynamic switching of the model is realized.
In one embodiment, a computer device 400 is provided, the internal structure of which may be as shown in FIG. 4. The computer apparatus 400 includes a processor, memory, a network interface, a display screen, and an input device connected through a system bus. Wherein the processor of the computer device 400 is configured to provide computing and control capabilities. The memory of the computer device 400 includes a nonvolatile storage medium, an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external computer device through a network connection. The computer program is executed by a processor to implement a model loading method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device 400 is provided, comprising a memory having a computer program stored therein and a processor implementing the following steps when the computer program is executed:
loading a first cache set, wherein the first cache is used for storing the model which is reserved after the model loading method is operated;
acquiring visual angle information of a camera;
calculating a model of the corresponding fineness of the component according to the acquired visual angle information of the camera, and defining the model as a display model to be loaded;
removing the model with fineness exceeding that of the display model to be loaded in the first cache set, and storing the residual models in the first cache set in a second cache set;
judging whether the memory required by the display model to be loaded exceeds the system memory;
when the memory required by the display model to be loaded does not exceed the system memory, downloading the model which does not exceed the system memory in the display model to be loaded; and
And rendering the downloaded model to a scene.
In another embodiment, a storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
loading a first cache set, wherein the first cache is used for storing the reserved model after the model loading method is operated;
acquiring visual angle information of a camera;
calculating a model of the corresponding fineness of the component according to the acquired visual angle information of the camera, and defining the model as a display model to be loaded;
removing the model with fineness exceeding that of the display model to be loaded in the first cache set, and storing the residual models in the first cache set in a second cache set;
judging whether the memory required by the display model to be loaded exceeds the system memory;
when the memory required by the display model to be loaded does not exceed the system memory, downloading the model which does not exceed the system memory in the display model to be loaded; and
and rendering the downloaded model into a scene.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which can be stored in a non-volatile computer storage medium, and can include the processes of the above embodiments of the methods when executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (7)
1. A method of loading a model, the model comprising obtaining modeling data; generating component information and geometric data from the modeling data; calculating to obtain a bounding box according to the geometric data; generating a plurality of models with different finenesses from the components based on the obtained bounding boxes and the fineness of the components, wherein the models at least comprise a contour model and a solid model, the fineness of the contour model is the lowest, and the fineness of the solid model is the highest; storing a plurality of different fineness models generated by the component, wherein the model loading method comprises the steps of:
loading a first cache set, wherein the first cache is used for storing the reserved model after the model loading method is operated;
Acquiring visual angle information of a camera;
calculating a model of the corresponding fineness of the component according to the acquired visual angle information of the camera, and defining the model as a display model to be loaded;
removing the model with fineness exceeding that of the display model to be loaded in the first cache set, and storing the residual models in the first cache set in a second cache set;
judging whether the memory required by the display model to be loaded exceeds the system memory;
when the memory required by the display model to be loaded does not exceed the system memory, downloading the model which does not exceed the system memory in the display model to be loaded;
rendering the downloaded model into a scene; and
and stopping downloading the model matched with the fineness of the display model to be loaded when judging that the memory required by the display model to be loaded exceeds the system memory.
2. The model loading method of claim 1, further comprising the steps of:
acquiring a component corresponding to a model exceeding a system memory in a display model to be loaded;
based on the obtained component, obtaining a corresponding model in the second cache set;
and rendering the model in the second cache set into a scene.
3. The model loading method of claim 1, further comprising the steps of:
detecting whether a viewing angle of the camera is changed;
and when the visual angle of the camera is judged to be changed, the visual angle of the camera is acquired again.
4. The model loading method of claim 1, further comprising the steps of:
initializing a scene;
loading the initialized scene;
and downloading and loading the outline models of all the components in the initialized scene.
5. A model loading apparatus, the model comprising obtaining modeling data; generating component information and geometric data from the modeling data; calculating to obtain a bounding box according to the geometric data; generating a plurality of models with different finenesses from the components based on the obtained bounding boxes and the fineness of the components, wherein the models at least comprise a contour model and a solid model, the fineness of the contour model is the lowest, and the fineness of the solid model is the highest; storing a plurality of different fineness models generated by the component, wherein the model loading device comprises:
The model loading unit is used for loading a first cache set, and the first cache is used for storing the models which are reserved after the model loading method is operated for multiple times;
a visual angle acquisition unit for acquiring visual angle information of the camera;
the model calculation unit is used for calculating a model with corresponding fineness of the component according to the acquired visual angle information of the camera and defining the model as a display model to be loaded;
the model removing unit is used for removing the models with the fineness exceeding that of the display models to be loaded in the first cache set and storing the residual models in the first cache set in a second cache set;
the memory judgment unit is used for judging whether the memory required by the display model to be loaded exceeds the system memory;
the model downloading unit is used for downloading a model which does not exceed the system memory in the display model to be loaded when the memory required by the display model to be loaded is judged to not exceed the system memory, and stopping downloading a model matched with the fineness of the display model to be loaded when the memory required by the display model to be loaded is judged to exceed the system memory; and
and the scene rendering unit is used for rendering the downloaded model into a scene.
6. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the model loading method of any of claims 1-4.
7. A computer device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the model loading method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011381651.1A CN112330496B (en) | 2020-11-30 | 2020-11-30 | Model loading method and device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011381651.1A CN112330496B (en) | 2020-11-30 | 2020-11-30 | Model loading method and device, storage medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112330496A CN112330496A (en) | 2021-02-05 |
CN112330496B true CN112330496B (en) | 2022-06-28 |
Family
ID=74308555
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011381651.1A Active CN112330496B (en) | 2020-11-30 | 2020-11-30 | Model loading method and device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112330496B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116627580B (en) * | 2023-07-25 | 2023-09-22 | 江苏正泰泰杰赛智能科技有限公司 | Multi-level cache three-dimensional model loading method for webpage end |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9529942B1 (en) * | 2013-08-19 | 2016-12-27 | Geometric Ltd. | Auto-optimizing out-of-core method and system for rendering of large engineering 3D CAD assemblies on handheld devices |
CN107886564A (en) * | 2017-10-13 | 2018-04-06 | 上海秉匠信息科技有限公司 | The method shown for realizing three-dimensional scenic |
CN110992460A (en) * | 2019-11-26 | 2020-04-10 | 深圳市毕美科技有限公司 | Model smooth display method, system and device for mobile equipment and storage medium |
-
2020
- 2020-11-30 CN CN202011381651.1A patent/CN112330496B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9529942B1 (en) * | 2013-08-19 | 2016-12-27 | Geometric Ltd. | Auto-optimizing out-of-core method and system for rendering of large engineering 3D CAD assemblies on handheld devices |
CN107886564A (en) * | 2017-10-13 | 2018-04-06 | 上海秉匠信息科技有限公司 | The method shown for realizing three-dimensional scenic |
CN110992460A (en) * | 2019-11-26 | 2020-04-10 | 深圳市毕美科技有限公司 | Model smooth display method, system and device for mobile equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112330496A (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020220915A1 (en) | Virtual object display method and apparatus, electronic device, and storage medium | |
CN109583509B (en) | Data generation method and device and electronic equipment | |
CN113920184B (en) | Polygon simplification method, device, equipment and computer readable storage medium | |
JP7282675B2 (en) | Out of order cash return | |
CN112330496B (en) | Model loading method and device, storage medium and computer equipment | |
WO2009033218A1 (en) | A system and method for capturing digital images | |
CN113919203A (en) | Structural mechanics simulation processing method, device, system and equipment | |
JP2008544402A (en) | Accumulation of deformation via effect graph in digital image processing | |
US8438199B1 (en) | System and method for identifying and highlighting a graphic element | |
CN111159606A (en) | Three-dimensional model loading method, equipment and storage medium applied to building system | |
CN111177079A (en) | Network file system data reading method, device, equipment and medium | |
CN102177518A (en) | Method and device for producing a finite element model | |
CN113688552A (en) | Camera module falling simulation method and device, electronic equipment and medium | |
CN113228056B (en) | Runtime hardware simulation method, device, equipment and storage medium | |
CN111915714A (en) | Rendering method for virtual scene, client, server and computing equipment | |
CN108564637B (en) | Geometric model arrangement method and device | |
CN115439629A (en) | Method, computer device and computer program product for automatically dividing grid with boundary layer for blood vessel flow field simulation domain | |
CN114307158A (en) | Three-dimensional virtual scene data generation method and device, storage medium and terminal | |
CN110837707B (en) | Finite element analysis system, method, computer equipment and storage medium | |
CN112884899A (en) | Three-dimensional member generation method and device, computer device and storage medium | |
CN111724308A (en) | Blurred image processing method and system | |
JP2008533614A (en) | System and method for generating matched contour profiles | |
JP2006171760A (en) | Memory controller with graphic processing function | |
CN110942478B (en) | Texture integrity calculation method and calculation unit based on SystemC | |
CN111625192B (en) | Metadata object access method, device, equipment and 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 |