WO2022067722A1 - Model display method, apparatus, electronic device and computer-readable storage medium - Google Patents

Model display method, apparatus, electronic device and computer-readable storage medium Download PDF

Info

Publication number
WO2022067722A1
WO2022067722A1 PCT/CN2020/119534 CN2020119534W WO2022067722A1 WO 2022067722 A1 WO2022067722 A1 WO 2022067722A1 CN 2020119534 W CN2020119534 W CN 2020119534W WO 2022067722 A1 WO2022067722 A1 WO 2022067722A1
Authority
WO
WIPO (PCT)
Prior art keywords
grid
target
display layer
display
scene
Prior art date
Application number
PCT/CN2020/119534
Other languages
French (fr)
Chinese (zh)
Inventor
黄胜
梁家斌
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202080044432.6A priority Critical patent/CN114026604A/en
Priority to PCT/CN2020/119534 priority patent/WO2022067722A1/en
Publication of WO2022067722A1 publication Critical patent/WO2022067722A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Definitions

  • the present application relates to the field of computer technology, and in particular, to a model display method, apparatus, electronic device, and computer-readable storage medium.
  • Levels of Detail refers to determining the resource allocation when rendering objects of the 3D model according to the position and importance of the 3D model in the display environment, so as to reduce the amount of distant or non-important objects. The number of faces and the degree of detail, thus reducing the consumption of resources.
  • an electronic device in order to display a large-scale 3D model, an electronic device usually needs to build a corresponding LOD model.
  • the LOD model has multiple display layers with different finesse, and the electronic device can load and display the display layer according to its own hardware conditions.
  • the electronic device may select a certain layer of display layers in the LOD model as the layer to be displayed according to actual requirements, and the fineness of the layer to be displayed can meet the actual requirements.
  • the probability that the layer to be displayed cannot be properly loaded and displayed will increase; when the hardware conditions of the electronic device are excellent, the layer to be displayed can only be displayed with its own fineness and cannot be displayed. Further increase the level of detail displayed. To sum up, the display effect of the three-dimensional model by the electronic device is poor.
  • the present application provides a model display method, device and computer-readable storage medium, which can solve the problem of poor display effect of three-dimensional models by electronic devices in the prior art.
  • an embodiment of the present application provides a method for displaying a model, including:
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
  • the target resource amount select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
  • the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
  • the actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer
  • the actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer
  • the actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
  • an embodiment of the present application provides a method for displaying a model, including:
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
  • the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
  • the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
  • a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
  • an embodiment of the present application provides a display device for a model, including:
  • the memory is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene;
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid area yuan;
  • the processor is used to:
  • the target resource amount select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
  • the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
  • the actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer
  • the actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer
  • the actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
  • an embodiment of the present application provides a display device for a model, including:
  • the memory is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene;
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid area yuan;
  • the processor is configured to: determine, according to the field of view, a target mesh display layer to be loaded in the three-dimensional model of the scene;
  • the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
  • the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
  • a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
  • the present application provides an electronic device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the above the method described in the aspect.
  • the present application provides a computer-readable storage medium, the computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method described in the above aspects.
  • the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method described in the above aspects.
  • the display fineness of each grid display layer of the three-dimensional scene model is specifically quantified through geometric errors.
  • the hardware resources of the device are insufficient to load the target grid display layer to be loaded, select a target grid block that is coarser than the grid block of the target grid display layer from the scene 3D model for loading and display, so that the scene can be displayed.
  • the 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select from the 3D model of the scene finer grid blocks than the target grid display layer
  • the 3D scene model can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant, and the display effect can be improved.
  • FIG. 1 is a flowchart of a method for displaying a model provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a grid display layer provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of specific steps of a method for displaying a model provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a grid display layer included in a three-dimensional model of a scene provided by an embodiment of the present application;
  • FIG. 5 is a schematic diagram of a replacement process of a grid display layer provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of another model display method provided by an embodiment of the present application.
  • FIG. 7 is a block diagram of a model display device provided by an embodiment of the present application.
  • FIG. 8 is a block diagram of another model display device provided by an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for displaying a model provided by an embodiment of the present application. As shown in FIG. 1 , the method may include:
  • Step 101 Acquire the current field of view of the display window for displaying the three-dimensional model of the scene.
  • the scene 3D model of the scene can be reconstructed.
  • the electronic device can render and display the scene 3D model through the display window to display the scene. Realize the 3D reconstruction display of the scene.
  • the movable platform may include: unmanned aerial vehicle, unmanned vehicle, unmanned boat, handheld shooting equipment, etc.
  • the goal of building a 3D model of a scene is to build a multi-layer grid display layer, and the level of detail of the multi-layer grid display layer decreases.
  • Each grid display layer can include multiple grid surfaces, and the grid surfaces are used for displaying
  • the 3D model of the scene corresponds to the surface of the object.
  • the mesh display layer can be understood as a regular polyhedron wrapping the sphere, and the number of mesh faces of different mesh display layers is different. The higher the number of mesh faces, the higher the level of detail in the mesh display layer.
  • FIG. 2 it shows a schematic diagram of a grid display layer provided by an embodiment of the present application.
  • the grid display layer 10 is a regular hexahedron
  • the grid display layer 10 is a regular hexahedron
  • Layer 11 is a regular dodecahedron.
  • the number of grid surfaces of the grid display layer increases, and the grid display layer 11 is closer to a sphere than the grid display layer 10 . Therefore, the detail level of the grid display layer 11 is higher than that of the grid display layer 10 .
  • the electronic device displays part or all of the three-dimensional model of the scene through the display window of the display screen.
  • the display window has an adjustable field of view, and the details of the three-dimensional model of the scene that can be displayed under different fields of view are different.
  • the 3D model of the scene in a large field of view, can be zoomed out for rough display, while in a small field of view, the 3D model of the scene can be zoomed in for fine display.
  • the user can select the current field of view of the display window of the electronic device through a selection operation.
  • the field of view of the display window includes 0-10, the larger the value, the larger the field of view, and the display
  • the detail level of the 3D model of the scene displayed is coarser; the smaller the value, the smaller the field of view, and the finer the detail level of the displayed 3D model of the scene;
  • the user's selection operation can be the user's mouse wheel on the electronic device. You can select different fields of view through different scrolling directions and scrolling distances.
  • the user can select the field of view by using the mouse wheel. 5 .
  • the selection of the current field of view can also be implemented in other ways, for example, the user directly inputs a corresponding numerical value as the current field of view.
  • the current field of view may also be a default value, which is not limited in this embodiment of the present application.
  • Step 102 Determine the target mesh display layer to be loaded in the three-dimensional model of the scene according to the field of view.
  • the embodiment of the present application can quantify the display fineness of each grid display layer in the three-dimensional scene model, and establish The corresponding relationship between the field of view and the display fineness is used to determine the display fineness corresponding to the current field of view of the display window selected by the user and the target grid display layer with the display fineness according to the corresponding relationship.
  • the 3D model of the scene includes three grid display layers whose display fineness is coarse, moderate, and fine
  • the field of view of the display window also includes three values of far, medium, and near, then rough-far, moderate-
  • the grid display layer corresponding to the coarse display fineness can be determined as the target grid display layer.
  • Step 103 Calculate the target resource amount required by the electronic device to load the target grid display layer.
  • the electronic device in the process of loading the grid display layer, the electronic device needs to perform algorithm calculations such as rendering, and consumes a certain amount of hardware resources.
  • algorithm calculations such as rendering
  • the amount of resources may include hardware parameters such as video memory capacity and memory capacity of the electronic device.
  • the target resource amount required by the electronic device to load the target grid presentation layer can be calculated according to the size of the loading target grid presentation layer and the required algorithm. For example, calculate the video memory capacity occupied when the electronic device loads the rendering target grid presentation layer.
  • Step 104 Select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene according to the target resource amount, and display the selected target grid blocks in the loading window .
  • the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid presentation layer.
  • the total resources of the hardware of the electronic device are limited, for example, the total capacity of the memory and the video memory used by the electronic device is fixed, for example, the total memory capacity is 4g, and the total video memory capacity is 2g.
  • the sum of the resources required by the display window to load the display layer of the target grid and the resources currently used by the hardware cannot exceed the total amount of resources, otherwise the resources will be insufficient and the target grid cannot be loaded. display layer.
  • a threshold value slightly smaller than the total amount of resources can be set, and the amount of resources required for the display window to load the target grid display layer, and the amount of resources currently used by the hardware cannot exceed the threshold. , so as to avoid resource consumption, so that a part of the resource is always reserved for emergency use.
  • the electronic device can download the scene from one of the 3D models of the scene. Or among multiple grid display layers, select all grid blocks of the second grid display layer that are rougher than the target grid display layer as the target grid blocks, and load all the target grid blocks through the display window to form The second grid display layer of the second grid display layer, because the fineness of the second grid display layer is lower than the target grid display layer, the amount of resources required to load the second grid display layer will be reduced, which will lead to insufficient hardware resources. situation is alleviated.
  • a grid with a lower fineness than the second grid display layer may be selected from one or more grid display layers of the scene 3D model.
  • the presentation layer is loaded until the hardware resources are sufficient to load the current grid presentation layer.
  • the hardware resources can satisfy the loading of the target grid display layer, and the hardware resources are relatively sufficient, for example, loading the target grid display layer requires 0.5g of video memory, and the current video memory has 2g of available capacity.
  • the electronic device may, in a case (hardware resources are sufficient to fully load a finer mesh display layer), select a mesh display layer that is more finer than the target mesh display layer from one or more mesh display layers of the 3D model of the scene. All grid blocks of the first grid display layer are used as target grid blocks, and the first grid display layer composed of all target grid blocks is loaded through the display window. Because the first grid display layer has high precision On the target grid display layer, this can take advantage of the hardware resources of the electronic device itself to display the 3D model of the scene in a more refined manner and improve the display effect.
  • the electronic device can select part of the grid from the first finer grid display layer block, and replace the selected grid block with the corresponding block in the target grid display layer until the amount of resources required by the replaced target grid display layer reaches the hardware upper limit, and the replaced target grid is loaded through the display window.
  • the 3D model of the scene can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device itself. Display of results.
  • one or more grid display layers of the scene 3D model can be further selected from one or more grid display layers with a higher fineness than the first grid display layer.
  • the grid presentation layer is loaded until the hardware resource limit is reached.
  • the actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer; the second grid display layer The actual geometric error of any grid block in the target grid display layer is greater than the actual geometric error of any grid block in the target grid display layer; the actual geometric error is used to reflect the grid surface of the grid display layer relative to the The actual geometric distance between the surfaces of the 3D model of the scene.
  • the geometric error is used to characterize the grid surface in the grid display layer relative to the surface of the 3D scene model (that is, the surface of the object corresponding to the 3D scene model, which can also be understood as the grid of the perfect grid display layer). the geometric distance between the surfaces).
  • the smaller the actual geometric error of the grid display layer the greater the number of grid surfaces included in the grid display layer, and the geometric distance between the grid surface of the grid display layer and the surface of the 3D model of the scene.
  • the grid display layer 10 is a regular hexahedron
  • the grid display layer 11 is a regular dodecahedron. It can be seen that the greater the number of grid surfaces of the grid display layer, the smaller the geometric distance between the grid surface and the surface of the sphere, so that the actual geometric error of the grid display layer 11 is smaller than the actual geometric error of the grid display layer 11 .
  • the display fineness of each grid display layer of the 3D model of the scene can be specifically quantified, so that each grid display layer can be distinguished according to the difference of actual geometric errors The display fineness is different.
  • the fineness of the first grid display layer is greater than that of the target grid display layer and the second grid display layer, which makes the actual geometric error of any grid block in the first grid display layer smaller than that of the target grid display layer and the actual geometric error of any grid block in the second grid presentation layer; the fineness of the second grid presentation layer is smaller than the fineness of the first grid presentation layer and the target grid presentation layer, which makes the second grid presentation layer.
  • the actual geometric error of any grid block in the display layer is greater than the actual geometric error of any grid block in the target grid display layer and the first grid display layer.
  • a method for displaying a model specifically quantifies the display fineness of each grid display layer of a three-dimensional scene model through geometric errors.
  • the present application can select a target grid that is coarser than the grid blocks of the target grid display layer from the 3D model of the scene when the hardware resources of the electronic device are insufficient to load the target grid display layer to be loaded.
  • the block is loaded and displayed, so that the scene 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select from the scene 3D model than the target mesh
  • the grid blocks of the display layer are loaded and displayed with finer target grid blocks, so that the scene 3D model can be more refined by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant. To improve the display effect.
  • FIG. 3 is a specific flowchart of a method for displaying a model provided by an embodiment of the present application, and the method may include:
  • Step 201 Acquire the current field of view of the display window used to display the three-dimensional model of the scene.
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
  • step 201 reference may be made to the foregoing step 101, and details are not repeated here.
  • Step 202 Determine the target geometric error corresponding to the field of view.
  • the embodiment of the present application can introduce geometric errors to display each grid display layer in the three-dimensional scene model. Finely quantify and establish a correspondence between the field of view and the geometric error, so as to determine the target geometric error corresponding to the current field of view of the display window selected by the user according to the correspondence, so as to determine the target with the target geometric error Grid presentation layer.
  • the grid display layer corresponding to the geometric error of the rough value can be determined as the target grid display layer.
  • Step 203 Determine a target mesh display layer in the three-dimensional model of the scene according to the target geometric error.
  • the target grid display layer is the grid display layer with the smallest difference between the actual geometric error and the target geometric error.
  • the geometric error is used to characterize the surface of the grid surface in the grid display layer relative to the surface of the 3D scene model (that is, the surface of the object corresponding to the 3D scene model, which can also be understood as the surface of the grid surface of the perfect grid display layer) geometric distance between them. Since the target geometric error corresponding to the current field of view of the display window is determined in step 202, the target grid display layer whose actual geometric error is closest to the target geometric error may be a grid display layer that meets the current definition required by the user .
  • Step 204 Calculate the target resource amount required by the electronic device to load the target grid display layer.
  • step 204 reference may be made to the foregoing step 103, and details are not repeated here.
  • step 204 may also be implemented by determining the target resource amount according to the target geometric error and the screen resolution of the display screen of the electronic device.
  • the screen resolution of the display screen of the electronic device determines the field of view. If the user does not adjust the field of view, the larger the screen resolution is, the more effective areas of the loaded scene 3D model will be. , the consumption of resources will increase; the smaller the screen resolution, the less effective area of the loaded scene 3D model will be, and the less resources will be consumed. Therefore, the embodiment of the present application can quantify the display fineness of the target grid display layer based on the target geometric error, and further use the target geometric error and the screen resolution of the display screen of the electronic device to determine the target resources required for loading the target grid display layer quantity.
  • Step 205 Select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene according to the target resource amount, and display the selected target grid blocks in the loading window. .
  • step 205 reference may be made to the foregoing step 104, and details are not repeated here.
  • step 205 includes:
  • Sub-step 2051 Select some or all of the grid blocks in the first grid display layer to replace the corresponding grid blocks of the target grid display layer when the target resource amount satisfies the fine display conditions .
  • Sub-step 2052 Display all grid blocks included in the replaced target grid display layer as target grid blocks through the display window.
  • the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a first preset threshold.
  • the fine display conditions can be used to define that the hardware resources of the electronic device can satisfy the loading target grid display layer, and the hardware resources are relatively sufficient, and the hardware resources of the electronic device are sufficient, which can be reflected in the loading target grid.
  • the sum of the target resource amount required by the presentation layer and the currently used resource amount of the electronic device is less than or equal to the first preset threshold.
  • the hardware resources of the electronic device are video memory
  • the total video memory of the electronic device is 2g. If the electronic device can further display the 3D model of the scene in a refined manner, and can use other functions normally, 0.4g must be reserved.
  • Video memory at this time, the first preset threshold can be 1.6g. When the sum of the amount of target resources required to load the target grid display layer and the amount of resources currently used by the electronic device is less than or equal to 1.6g, the electronic device can On the basis of running other functions, further use the advantages of hardware resources to display the 3D model of the scene in a refined manner.
  • the first preset threshold can be adjusted according to actual needs.
  • the fine display condition can also be that the ratio of the sum of the target resource amount to the currently used resource amount of the electronic device to the total resource amount is less than the predetermined amount. Set the ratio value, for example, assuming that the preset ratio value is 80%, and the sum of the target resource amount and the current used resource amount of the electronic device has occupied 40% of the resource amount of the electronic device, then the hardware resources of the electronic device are sufficient at this time to meet the The demand for refined display of the 3D model of the scene.
  • all meshes of the first mesh display layer finer than the target mesh display layer may be selected from one or more mesh display layers of the scene 3D model.
  • the grid block is used as the target grid block, and the first grid display layer composed of all the target grid blocks is loaded through the display window, which can take advantage of the hardware resources of the electronic device itself to make the scene 3D model more refined. Display, improve the display effect.
  • the electronic device can select part of the grid from the first finer grid display layer block, and replace the selected grid block with the corresponding block in the target grid display layer until the amount of resources required by the replaced target grid display layer reaches the hardware upper limit, and the replaced target grid is loaded through the display window.
  • the 3D model of the scene can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device itself. Display of results.
  • one or more grid display layers of the scene 3D model can be further selected from one or more grid display layers with a higher fineness than the first grid display layer.
  • the grid presentation layer is loaded until the hardware resource limit is reached.
  • sub-step 2051 includes:
  • Sub-step A1 calculate the error ratio of each grid block in the target grid display layer, the error ratio is the ratio of the actual geometric error of the grid block to the expected error of the grid block .
  • Sub-step A2 according to the order of the error ratios of the grid blocks of the target grid display layer from large to small, sequentially replace the grid blocks in the target grid display layer with the first grid The corresponding grid blocks in the display layer are stopped to be replaced until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold.
  • the expected error of the grid block includes: the ratio between the width of the screen resolution of the electronic device and the distance from the grid block to the viewpoint.
  • each grid block in the grid display layer can be regarded as an individual that can be loaded independently, which has an actual geometric error and a corresponding expected error, and the error ratio of the grid blocks is closer 1 indicates that the grid block is replaced with a finer grid block with a higher priority, and in this embodiment of the present application, the error ratios of the grid blocks of the target grid display layer can be sorted in descending order. , replacing the grid blocks in the target grid display layer with the corresponding grid blocks in the first grid display layer in turn, until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold. replace.
  • FIG. 4 it shows a schematic diagram of a grid presentation layer included in a three-dimensional model of a scene.
  • the grid display layer m0 is the finest grid display layer, the actual geometric error is 0.5, and there are 16 grid blocks in total;
  • the grid display layer m1 is the moderate grid display layer, the actual geometric error is 1, and there are 4 grids in total block;
  • the grid display layer m2 is the roughest grid display layer, the actual geometric error is 2, and there is a total of 1 grid block.
  • each grid block consumes 10M video memory.
  • the target grid display layer corresponding to the current field of view of the display window is the grid display layer m1
  • the four grid blocks of the grid display layer m1 will be selected for loading, and the total video memory consumed is 40M. It is obtained that the actual geometric error of the first grid block 21 of the grid display layer m1 is 1, and the expected error is 1.2, so the error ratio of the first grid block 21 is 1/1.2.
  • the actual geometric error of the second grid block 22 is 1, and the expected error is 1.1, so the error ratio of the second grid block 22 is 1/1.1.
  • the actual geometric error of the third grid block 23 is 1, and the expected error is 1.15, so the error ratio of the third grid block 23 is 1/1.15.
  • the actual geometric error of the fourth grid block 24 is 1, and the expected error is 1.05, so the error ratio of the fourth grid block 24 is 1/1.05.
  • the third grid block 23 and the first grid block 21 can be further replaced.
  • the finally obtained grid display layer m0 is loaded and displayed.
  • step 205 includes:
  • Sub-step 2053 In the case that the target resource amount satisfies the rough display condition, display all grid blocks included in the second grid display layer as target grid blocks through the display window.
  • the rough display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than a second preset threshold, wherein the first preset threshold is less than or equal to the second Preset threshold.
  • rough display conditions can be used to limit the situation that the hardware resources of the electronic device are insufficient to load the target grid display layer, and the hardware resources of the electronic device are insufficient, which can be reflected in the target required for loading the target grid display layer.
  • the sum of the resource amount and the currently used resource amount of the electronic device is greater than or equal to the second preset threshold.
  • the hardware resource of the electronic device is video memory
  • the total video memory of the electronic device is 2g.
  • the electronic device can use other functions normally, 0.4g of video memory needs to be reserved.
  • the electronic device loads the required display layer of the target grid.
  • the target resource amount is 1g, and the second preset threshold may be 1.6g.
  • the electronic device cannot Other functions run normally.
  • the current amount of used resources of the electronic device is 1.2g, and the remaining video memory of the electronic device cannot load the target grid display layer, which is also a rough display condition.
  • the second preset threshold can be adjusted according to actual needs.
  • the rough display condition can also be that the ratio of the sum of the target resource amount to the currently used resource amount of the electronic device to the total resource amount is greater than the predetermined amount. Set the ratio value, for example, assuming that the preset ratio value is 80%, and the sum of the target resource amount and the currently used resource amount of the electronic device has occupied 90% of the resource amount of the electronic device, then the hardware resources of the electronic device are insufficient at this time, which cannot be satisfied. Load the requirements of the target grid presentation layer.
  • the grid display layer m0 is the finest grid display layer, the actual geometric error is 0.5, and there are 16 grid blocks in total; the grid display layer m1 is the moderate grid display layer, and the actual geometric error is 1, and there are 4 grid blocks in total; the grid display layer m2 is the roughest grid display layer, and the actual geometric error is 2, and there is a total of 1 grid block.
  • each grid block consumes 10M video memory.
  • the target grid display layer corresponding to the current field of view of the display window is the grid display layer m1
  • the four grid blocks of the grid display layer m1 will be selected for loading, and the total video memory consumed is 40M.
  • the remaining free video memory of the electronic device is only 20M.
  • the rough display conditions are met.
  • the idle hardware resources of the electronic device cannot display the entire grid display layer m1.
  • the grid display layer m2 is used for display, and the amount of resources required by the grid display layer m2 is 10M video memory, and the remaining video memory of the electronic device can meet the demand.
  • sub-step 2053 includes:
  • Sub-step B1 If the sum of the amount of resources required by the electronic device to load the second grid display layer and the current amount of the used resources is less than the first preset threshold, then 3D from the scene. A third grid display layer is selected in the model, and the actual geometric error of any grid block in the third grid display layer is smaller than the actual geometric error of any grid block in the second grid display layer.
  • Sub-step B2 selecting some or all of the grid blocks in the third grid display layer to replace the corresponding grid blocks of the second grid display layer.
  • Sub-step B3 Display all grid blocks included in the replaced second grid display layer as target grid blocks through the display window.
  • the sum of the resource amount required by the electronic device to load the replaced second grid display layer and the current used resource amount is less than the second preset threshold.
  • the second grid display layer is a rougher grid display layer than the target grid display layer. If the electronic device displays the second grid display layer, other processes of the electronic device are stopped and the hardware resources It is released, so that the sum of the amount of resources required by the electronic device to load the second grid display layer and the current amount of used resources is less than the first preset threshold, then the fine display condition is satisfied again at this time, and the electronic device can download from the scene.
  • select a third grid display layer with a higher fineness than the second grid display layer and select some or all of the grid blocks in the third grid display layer to replace the corresponding ones of the second grid display layer. After the grid blocks are displayed, all grid blocks included in the second grid display layer after replacement are displayed as target grid blocks through the display window.
  • the sum of the amount of resources required by the replaced second grid display layer and the current amount of used resources also needs to be less than or equal to the second preset threshold. Otherwise, the amount of resources required by the replaced second grid display layer will meet the rough display conditions again. That is, when selecting grid blocks from the third grid display layer to replace the corresponding grid blocks in the second grid display layer, it is necessary to ensure that the amount of resources required by the replaced second grid display layer does not meet the Rough display conditions.
  • the sum of the amount of resources required by the electronic device to load the replaced target grid display layer and the current amount of used resources is less than or equal to the second preset threshold.
  • the sum of the resource amount required by the replaced target grid display layer and the current used resource amount also needs to be less than or equal to the second preset threshold. Otherwise, the amount of resources required by the replaced target grid display layer will meet the rough display conditions again. That is, when selecting grid blocks from the first grid display layer to replace the corresponding grid blocks in the target grid display layer, it is necessary to ensure that the amount of resources required by the replaced target grid display layer does not conform to the rough display layer. condition.
  • a method for displaying a model specifically quantifies the display fineness of each grid display layer of a three-dimensional scene model through geometric errors.
  • the present application can select a target grid that is coarser than the grid blocks of the target grid display layer from the 3D model of the scene when the hardware resources of the electronic device are insufficient to load the target grid display layer to be loaded.
  • the block is loaded and displayed, so that the scene 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select from the scene 3D model than the target mesh
  • the grid blocks of the display layer are loaded and displayed with finer target grid blocks, so that the scene 3D model can be more refined by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant. To improve the display effect.
  • FIG. 6 is a flowchart of a method for displaying a model provided by an embodiment of the present application. As shown in FIG. 6 , the method may include:
  • Step 301 Acquire the current field of view of the display window used to display the three-dimensional model of the scene.
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block.
  • step 301 reference may be made to the foregoing step 101, and details are not repeated here.
  • Step 302 Determine the target mesh display layer to be loaded in the three-dimensional model of the scene according to the field of view.
  • step 302 reference may be made to the foregoing step 102, and details are not repeated here.
  • Step 303 Calculate the target resource amount required by the electronic device to load the target grid display layer.
  • step 303 reference may be made to the foregoing step 103, which will not be repeated here.
  • Step 304 Increase the actual geometric errors of all grid display layers of the scene 3D model when the target resource amount satisfies the fine display condition.
  • the actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
  • the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold.
  • the fine display conditions can be used to define that the hardware resources of the electronic device can satisfy the loading target grid display layer, and the hardware resources are relatively sufficient, and the hardware resources of the electronic device are sufficient, which can be reflected in the loading target grid.
  • the sum of the target resource amount required by the presentation layer and the currently used resource amount of the electronic device is less than or equal to the fourth preset threshold.
  • the actual geometric error of the grid block of the three-dimensional scene model can be stored in the file of the grid block as a parameter.
  • the file of the grid block can be authorized to be modified, and the remaining free resources of the electronic device during operation are kept in a stable range for a long time, and the remaining free resources are sufficient, which can fully satisfy the scene 3D model for further processing.
  • the actual geometric errors in the files of all grid display layers of the 3D model of the scene can be increased.
  • the display window of the electronic device will consider the fineness of the current target grid display layer. If the degree is insufficient, actively select a grid display layer that is finer than the target grid display layer for loading and display.
  • Step 305 In the case that the target resource amount satisfies the rough display condition, reduce the actual geometric errors of all grid display layers of the three-dimensional model of the scene.
  • the rough display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than or equal to a fifth preset threshold; wherein, the fourth preset threshold is less than or equal to the fifth preset threshold.
  • rough display conditions can be used to limit the situation that the hardware resources of the electronic device are insufficient to load the target grid display layer, and the hardware resources of the electronic device are insufficient, which can be reflected in the target required for loading the target grid display layer.
  • the sum of the resource amount and the currently used resource amount of the electronic device is greater than or equal to the fifth preset threshold.
  • the file of the grid block of the 3D model of the scene can be authorized to be modified, and the amount of remaining idle resources of the electronic device during operation is kept in a stable range for a long time, and the amount of remaining idle resources is not sufficient, it is necessary to Roughen the scene 3D model for loading and display to ensure normal loading, then the actual geometric errors in the files of all mesh display layers of the scene 3D model can be reduced.
  • the display window of the electronic device will consider the current The fineness of the target grid display layer is too high, and a grid display layer that is coarser than the target grid display layer is actively selected for loading and display.
  • Step 306 according to the corrected actual geometric errors of all the grid display layers, select a grid display layer corresponding to the field of view in the three-dimensional model of the scene for display.
  • the display window can actively load the grid display layer that meets the requirements of the current display conditions for display, which improves the utilization rate of hardware resources and the display efficiency.
  • the grid display layer m0 is the finest grid display layer, the actual geometric error is 0.5, and there are 16 grid blocks in total; the grid display layer m1 is the moderate grid display layer, and the actual geometric error is 1 , a total of 4 grid blocks; the grid display layer m2 is the roughest grid display layer, the actual geometric error is 2, and there is a total of 1 grid block.
  • each grid block consumes 10M video memory.
  • the target geometric error corresponding to the current field of view of the display window is 1, and the target grid display layer with the actual geometric error closest to the target geometric error is the grid display layer m1, the four grid blocks of the grid display layer m1 will It is selected to be loaded, and the total video memory consumed is 40M. Assuming that the remaining free video memory of the electronic device is 20M at this time, and the loading display of the grid display layer m1 cannot be supported, the electronic device can uniformly display the grids of all grid display layers.
  • the actual geometric error of the block is divided by 2, so that the actual geometric error of the grid display layer m0 becomes 0.25; the actual geometric error of the grid display layer m1 becomes 0.5; the actual geometric error of the grid display layer m2 becomes 1,
  • the target grid display layer with the actual geometric error closest to the target geometric error is the grid display layer m2. Only 10M video memory is required to load the display grid display layer m2, and the remaining free video memory of the electronic device is completely sufficient.
  • step 306 may include:
  • Sub-step 3061 Determine the target geometric error corresponding to the current field of view.
  • Sub-step 3062 determine the grid display layer corresponding to the target geometric error in the scene 3D model, and the grid display layer corresponding to the target geometric error is the corrected actual geometric error The grid presentation layer with the smallest difference from the target geometric error.
  • Sub-steps 3061-3062 may refer to the above-mentioned steps 202-203, which will not be repeated here.
  • the fine display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold; the rough display conditions include: the target resource amount The sum of the resource amount currently used by the electronic device is greater than or equal to a fifth preset threshold; wherein, the fourth preset threshold is less than or equal to the fifth preset threshold.
  • a method for displaying a model specifically quantifies the display fineness of each grid display layer of a three-dimensional scene model through geometric errors.
  • the present application can make corresponding modifications to the actual geometric errors of the grid blocks of each grid display layer in the three-dimensional model of the scene under different display conditions.
  • the display window can actively load the grid display layer that meets the requirements of the current display conditions for display, which improves the utilization rate of hardware resources and the display efficiency.
  • FIG. 7 is a block diagram of an apparatus for displaying a model provided by an embodiment of the present application.
  • the apparatus for displaying a model 400 may include: a memory 401 and a processor 402;
  • the memory 401 is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene;
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
  • the processor 402 is used to:
  • the target resource amount select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
  • the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
  • the actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer
  • the actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer
  • the actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
  • the processor is specifically used for:
  • All grid blocks included in the replaced target grid display layer are displayed as target grid blocks through the display window.
  • the processor is also used for:
  • all grid blocks included in the second grid display layer are displayed as target grid blocks through the display window.
  • the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a first preset threshold;
  • the rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than a second preset threshold;
  • the first preset threshold is less than or equal to the second preset threshold.
  • the sum of the resource amount required by the electronic device to load the replaced target grid display layer and the current used resource amount is less than or equal to the second preset threshold.
  • the processor is further configured to: if the amount of resources required by the electronic device to load the second grid display layer and the current amount of used resources is less than the first preset threshold, then select a third grid display layer from the three-dimensional model of the scene, and the actual geometric error of any grid block in the third grid display layer is smaller than any grid in the second grid display layer. The actual geometric error of the block;
  • the sum of the resource amount required by the electronic device to load the replaced second grid display layer and the current used resource amount is less than the second preset threshold.
  • the processor is specifically used for:
  • a target grid display layer in the three-dimensional model of the scene is determined, and the target grid display layer is a grid display layer with the smallest difference between the actual geometric error and the target geometric error.
  • the processor is specifically used for:
  • the target resource amount is determined according to the target geometric error and the screen resolution of the display screen of the electronic device.
  • the processor is specifically used for:
  • the error ratio being the ratio of the actual geometric error of the grid block to the expected error of the grid block
  • the grid blocks in the target grid display layer are sequentially replaced with Corresponding to the grid block, the replacement is stopped until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold.
  • the expected error of the grid block includes: a ratio between the width of the screen resolution of the electronic device and the distance from the grid block to the viewpoint.
  • the model display device quantifies the display fineness of each grid display layer of the three-dimensional scene model through geometric errors.
  • the present application can select a target grid block that is rougher than the grid block of the target grid display layer from the three-dimensional model of the scene when the hardware resources of the electronic device are insufficient to load the target grid display layer to be loaded Loading and displaying is performed, so that the scene 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select a higher-than-target grid display layer from the scene 3D model
  • the 3D scene model can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant. , to improve the display effect.
  • FIG. 8 is a block diagram of an apparatus for displaying a model provided by an embodiment of the present application.
  • the apparatus for displaying a model 500 may include: a memory 501 and a processor 502;
  • the memory 501 is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene;
  • the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
  • the processor 502 is configured to: determine, according to the field of view, a target mesh display layer to be loaded in the three-dimensional model of the scene;
  • the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
  • the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
  • a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
  • the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold;
  • the rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than or equal to a fifth preset threshold;
  • the fourth preset threshold is less than or equal to the fifth preset threshold.
  • the processor is specifically used for:
  • the grid display layer corresponding to the target geometric error in the three-dimensional model of the scene is determined, and the grid display layer corresponding to the target geometric error is the corrected actual geometric error and the target.
  • the model display device quantifies the display fineness of each grid display layer of the three-dimensional scene model through geometric errors.
  • the present application can, under different display conditions, correspondingly modify the actual geometric errors of the grid blocks of each grid display layer in the three-dimensional model of the scene, and then can actively change the grid blocks of the grid display layer.
  • the actual geometric error means that the display window can actively load the grid display layer that meets the current display condition requirements for display, which improves the utilization rate of hardware resources and the display efficiency.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned model display method embodiment can be achieved, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disk and so on.
  • the memory can be an interface for connecting the external control terminal with the display device of the model.
  • the external control terminal may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a control terminal with an identification module, an audio input /Output (I/O) ports, video I/O ports, headphone ports, and more.
  • the memory may be used to receive input (eg, data information, power, etc.) from an external control terminal and transmit the received input to one or more elements within the model's display device or may be used in the model's display device and Transfer data between external control terminals.
  • At least one magnetic disk storage device For example at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the processor is the control center of the control terminal. It uses various interfaces and lines to connect various parts of the entire control terminal, and executes control by running or executing the software programs and/or modules stored in the memory and calling the data stored in the memory. Various functions of the terminal and processing data, so as to carry out overall monitoring of the control terminal.
  • the processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor Mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor.
  • the embodiments of the present application may be provided as a method, a control terminal, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising the instruction to control the terminal,
  • the instruction controls the terminal to implement the function specified in one flow or multiple flows of the flowchart and/or one block or multiple blocks of the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Databases & Information Systems (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A model display method, an apparatus and a computer-readable storage medium. The method comprises: acquiring a current field of view of a display window used for displaying a three-dimensional model of a scene (101); determining, according to the field of view, a target grid display layer to be loaded of the three-dimensional model of the scene (102); calculating a target resource quantity required by an electronic device for loading the target grid display layer (103); selecting, according to the target resource quantity, a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and displaying the selected target grid blocks on a loading window (104); in cases where hardware resources of the electronic device are insufficient, selecting a rough target grid block for loading and displaying, so as to load the three-dimensional model of the scene normally; and in cases where hardware resources of the electronic device are sufficient, selecting a fine target grid block for loading and displaying, so as to take advantage of the hardware resources of the electronic device to improve the display effect.

Description

模型的展示方法、装置、电子设备及计算机可读存储介质Model display method, apparatus, electronic device, and computer-readable storage medium 技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种模型的展示方法、装置、电子设备及计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to a model display method, apparatus, electronic device, and computer-readable storage medium.
背景技术Background technique
多细节层次(LOD,Levels of Detail)技术是指根据三维模型在显示环境中所处的位置和重要度,决定对该三维模型的物体进行渲染时的资源分配,以降低远处或者非重要物体的面数和细节度,从而减少了资源的耗用。Levels of Detail (LOD, Levels of Detail) technology refers to determining the resource allocation when rendering objects of the 3D model according to the position and importance of the 3D model in the display environment, so as to reduce the amount of distant or non-important objects. The number of faces and the degree of detail, thus reducing the consumption of resources.
在目前方案中,电子设备为了显示大规模的三维模型,通常需要构建对应的LOD模型,LOD模型具有多个不同精细度的展示层,电子设备可以根据自身硬件条件,对展示层进行加载展示。在实际应用中,电子设备可以根据实际需求,选取LOD模型中的某一层展示层作为待展示层,该待展示层的精细度可以满足该实际需求。In the current solution, in order to display a large-scale 3D model, an electronic device usually needs to build a corresponding LOD model. The LOD model has multiple display layers with different finesse, and the electronic device can load and display the display layer according to its own hardware conditions. In practical applications, the electronic device may select a certain layer of display layers in the LOD model as the layer to be displayed according to actual requirements, and the fineness of the layer to be displayed can meet the actual requirements.
但是,在电子设备的硬件条件较差的情况下,会提高待展示层无法正常加载显示的几率;在电子设备的硬件条件优秀的情况下,待展示层只能以自身精细度进行展示,无法进一步提高展示的细节程度。综上,导致了电子设备对三维模型的展示效果较差。However, when the hardware conditions of the electronic device are poor, the probability that the layer to be displayed cannot be properly loaded and displayed will increase; when the hardware conditions of the electronic device are excellent, the layer to be displayed can only be displayed with its own fineness and cannot be displayed. Further increase the level of detail displayed. To sum up, the display effect of the three-dimensional model by the electronic device is poor.
发明内容SUMMARY OF THE INVENTION
本申请提供一种模型的展示方法、装置及计算机可读存储介质,可以解决现有技术中电子设备对三维模型的展示效果较差的问题。The present application provides a model display method, device and computer-readable storage medium, which can solve the problem of poor display effect of three-dimensional models by electronic devices in the prior art.
第一方面,本申请实施例提供了一种模型的展示方法,包括:In a first aspect, an embodiment of the present application provides a method for displaying a model, including:
获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;obtaining the current field of view of the display window for displaying the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;According to the field of view, determining the target mesh display layer to be loaded in the three-dimensional model of the scene;
计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示;According to the target resource amount, select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
其中,一个或者多个网格展示层包括:所述目标网格展示层,比所述目标网格展示层更精细的第一网格展示层,或者比所述目标网格展示层更粗糙 的第二网格展示层;Wherein, the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
所述第一网格展示层的中任意网格区块的实际几何误差小于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer;
所述第二网格展示层的中任意网格区块的实际几何误差大于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer;
所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离。The actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
第二方面,本申请实施例提供了一种模型的展示方法,包括:In a second aspect, an embodiment of the present application provides a method for displaying a model, including:
获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;obtaining the current field of view of the display window for displaying the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;According to the field of view, determining the target mesh display layer to be loaded in the three-dimensional model of the scene;
计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
在所述目标资源量满足精细展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差增大,所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离;In the case that the target resource amount satisfies the fine display condition, the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
在所述目标资源量满足粗糙展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差减小;In the case that the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
根据修正后的所有所述网格展示层的实际几何误差,选取所述场景三维模型中与所述视野范围对应的网格展示层进行展示。According to the corrected actual geometric errors of all the grid display layers, a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
第三方面,本申请实施例提供了一种模型的展示装置,包括:In a third aspect, an embodiment of the present application provides a display device for a model, including:
存储器和处理器;memory and processor;
所述存储器用于,获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;The memory is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid area yuan;
所述处理器用于:The processor is used to:
根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;According to the field of view, determining the target mesh display layer to be loaded in the three-dimensional model of the scene;
计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示;According to the target resource amount, select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
其中,一个或者多个网格展示层包括:所述目标网格展示层,比所述目标网格展示层更精细的第一网格展示层,或者比所述目标网格展示层更粗糙的第二网格展示层;Wherein, the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
所述第一网格展示层的中任意网格区块的实际几何误差小于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer;
所述第二网格展示层的中任意网格区块的实际几何误差大于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer;
所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离。The actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
第四方面,本申请实施例提供了一种模型的展示装置,包括:In a fourth aspect, an embodiment of the present application provides a display device for a model, including:
存储器和处理器;memory and processor;
所述存储器用于,获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;The memory is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid area yuan;
所述处理器用于:根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;The processor is configured to: determine, according to the field of view, a target mesh display layer to be loaded in the three-dimensional model of the scene;
计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
在所述目标资源量满足精细展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差增大,所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离;In the case that the target resource amount satisfies the fine display condition, the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
在所述目标资源量满足粗糙展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差减小;In the case that the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
根据修正后的所有所述网格展示层的实际几何误差,选取所述场景三维模型中与所述视野范围对应的网格展示层进行展示。According to the corrected actual geometric errors of all the grid display layers, a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
第五方面,本申请提供一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述方面所述的方法。In a fifth aspect, the present application provides an electronic device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the above the method described in the aspect.
第六方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质包括指令,当其在计算机上运行时,使得计算机执行上述方面所述的方 法。In a sixth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method described in the above aspects.
第七方面,本申请提供一种计算机程序产品,所述计算机程序产品包括指令,当其在计算机上运行时,使得计算机执行上述方面所述的方法。In a seventh aspect, the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method described in the above aspects.
在本申请实施例中,通过几何误差来使得场景三维模型的各个网格展示层的展示精细度得到了具体量化,并且,根据加载场景三维模型的电子设备的具体硬件条件,本申请可以在电子设备的硬件资源不足加载待加载的目标网格展示层的情况下,从场景三维模型中选取比目标网格展示层的网格区块更粗糙的目标网格区块进行加载展示,从而使得场景三维模型在电子设备的硬件资源较差的情况下可以正常加载;在电子设备的硬件资源充裕的情况下,本申请可以从场景三维模型中选取比目标网格展示层的网格区块更精细的目标网格区块进行加载展示,从而使得场景三维模型在电子设备的硬件资源充裕的情况下,利用电子设备的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。In the embodiment of the present application, the display fineness of each grid display layer of the three-dimensional scene model is specifically quantified through geometric errors. When the hardware resources of the device are insufficient to load the target grid display layer to be loaded, select a target grid block that is coarser than the grid block of the target grid display layer from the scene 3D model for loading and display, so that the scene can be displayed. The 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select from the 3D model of the scene finer grid blocks than the target grid display layer The 3D scene model can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant, and the display effect can be improved.
附图说明Description of drawings
图1是本申请实施例提供的一种模型的展示方法的流程图;1 is a flowchart of a method for displaying a model provided by an embodiment of the present application;
图2是本申请实施例提供的一种网格展示层的示意图;2 is a schematic diagram of a grid display layer provided by an embodiment of the present application;
图3是本申请实施例提供的一种模型的展示方法的具体步骤流程图;3 is a flowchart of specific steps of a method for displaying a model provided by an embodiment of the present application;
图4是本申请实施例提供的一种场景三维模型包含的网格展示层的示意图;4 is a schematic diagram of a grid display layer included in a three-dimensional model of a scene provided by an embodiment of the present application;
图5是本申请实施例提供的一种网格展示层的替换过程示意图;5 is a schematic diagram of a replacement process of a grid display layer provided by an embodiment of the present application;
图6是本申请实施例提供的另一种模型的展示方法的流程图;6 is a flowchart of another model display method provided by an embodiment of the present application;
图7是本申请实施例提供的一种模型的展示装置的框图;7 is a block diagram of a model display device provided by an embodiment of the present application;
图8是本申请实施例提供的另一种模型的展示装置的框图。FIG. 8 is a block diagram of another model display device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使得本申请的目的、技术方案和优点更为明显,下面将参照附图详细描述根据本申请的示例实施例。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是本申请的全部实施例,应理解,本申请不受这里描述的 示例实施例的限制。基于本申请中描述的本申请实施例,本领域技术人员在没有付出创造性劳动的情况下所得到的所有其它实施例都应落入本申请的保护范围之内。In order to make the objectives, technical solutions and advantages of the present application more apparent, the exemplary embodiments according to the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein. Based on the embodiments of the present application described in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
在下文的描述中,给出了大量具体的细节以便提供对本申请更为彻底的理解。然而,对于本领域技术人员而言显而易见的是,本申请可以无需一个或多个这些细节而得以实施。在其他的例子中,为了避免与本申请发生混淆,对于本领域公知的一些技术特征未进行描述。In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced without one or more of these details. In other instances, some technical features known in the art have not been described in order to avoid confusion with the present application.
应当理解的是,本申请能够以不同形式实施,而不应当解释为局限于这里提出的实施例。相反地,提供这些实施例将使公开彻底和完全,并且将本申请的范围完全地传递给本领域技术人员。It should be understood that the application may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of this application to those skilled in the art.
在此使用的术语的目的仅在于描述具体实施例并且不作为本申请的限制。在此使用时,单数形式的“一”、“一个”和“所述/该”也意图包括复数形式,除非上下文清楚指出另外的方式。还应明白术语“组成”和/或“包括”,当在该说明书中使用时,确定所述特征、整数、步骤、操作、元件和/或部件的存在,但不排除一个或更多其它的特征、整数、步骤、操作、元件、部件和/或组的存在或添加。在此使用时,术语“和/或”包括相关所列项目的任何及所有组合。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a," "an," and "the/the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the terms "compose" and/or "include", when used in this specification, identify the presence of stated features, integers, steps, operations, elements and/or components, but do not exclude one or more other The presence or addition of features, integers, steps, operations, elements, parts and/or groups. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
为了彻底理解本申请,将在下列的描述中提出详细的结构,以便阐释本申请提出的技术方案。本申请的可选实施例详细描述如下,然而除了这些详细描述外,本申请还可以具有其他实施方式。For a thorough understanding of the present application, detailed structures will be presented in the following description in order to explain the technical solutions proposed by the present application. Alternative embodiments of the present application are described in detail below, however, the present application may have other embodiments in addition to these detailed descriptions.
下面结合附图,对本申请的模型的展示方法和装置、***进行详细说明。在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。The method, device, and system for displaying the model of the present application will be described in detail below with reference to the accompanying drawings. The features of the embodiments and implementations described below may be combined with each other without conflict.
图1是本申请实施例提供的一种模型的展示方法的流程图,如图1所示,该方法可以包括:FIG. 1 is a flowchart of a method for displaying a model provided by an embodiment of the present application. As shown in FIG. 1 , the method may include:
步骤101、获取用于展示所述场景三维模型的展示视窗当前的视野范围。Step 101: Acquire the current field of view of the display window for displaying the three-dimensional model of the scene.
在本申请实施例中,基于可移动平台在场景中采集的图像,可以重建该场景的场景三维模型,场景三维模型建立好之后,可以在电子设备通过展示视窗对场景三维模型进行渲染展示,以实现场景的三维重构展示。其中,可移动平台可以包括:无人机、无人车、无人船、手持拍摄设备等。In the embodiment of the present application, based on the images collected by the movable platform in the scene, the scene 3D model of the scene can be reconstructed. After the scene 3D model is established, the electronic device can render and display the scene 3D model through the display window to display the scene. Realize the 3D reconstruction display of the scene. Among them, the movable platform may include: unmanned aerial vehicle, unmanned vehicle, unmanned boat, handheld shooting equipment, etc.
具体的,建立场景三维模型的目标是建立多层网格展示层,且多层网格展示层的细节程度递减,每层网格展示层可以包括多个网格面,网格面用于展示场景三维模型对应物体的表面。Specifically, the goal of building a 3D model of a scene is to build a multi-layer grid display layer, and the level of detail of the multi-layer grid display layer decreases. Each grid display layer can include multiple grid surfaces, and the grid surfaces are used for displaying The 3D model of the scene corresponds to the surface of the object.
例如,假设场景三维模型对应物体为一个表面光滑的球体,则网格展示 层可以被理解为一个将该球体包裹在内的正多面体,不同的网格展示层的网格面的数量不同。网格面的数量越高,说明网格展示层的细节程度越高。参照图2,其示出了本申请实施例提供的一种网格展示层的示意图,对于一个网格展示层10和一个网格展示层11,网格展示层10为正六面体,网格展示层11为正十二面体。在将网格展示层10变化为网格展示层11的过程中,网格展示层的网格面的数量增加,且网格展示层11相较于网格展示层10更与球体相近,这就使得网格展示层11相较于网格展示层10的细节程度越高。For example, assuming that the corresponding object of the 3D model of the scene is a sphere with smooth surface, the mesh display layer can be understood as a regular polyhedron wrapping the sphere, and the number of mesh faces of different mesh display layers is different. The higher the number of mesh faces, the higher the level of detail in the mesh display layer. Referring to FIG. 2 , it shows a schematic diagram of a grid display layer provided by an embodiment of the present application. For a grid display layer 10 and a grid display layer 11 , the grid display layer 10 is a regular hexahedron, and the grid display layer 10 is a regular hexahedron. Layer 11 is a regular dodecahedron. During the process of changing the grid display layer 10 to the grid display layer 11 , the number of grid surfaces of the grid display layer increases, and the grid display layer 11 is closer to a sphere than the grid display layer 10 . Therefore, the detail level of the grid display layer 11 is higher than that of the grid display layer 10 .
进一步的,电子设备通过显示屏的展示视窗对场景三维模型的部分或全部区域进行展示,展示视窗具有可调的视野范围,不同视野范围下可展示的场景三维模型的细节程度不同,如,在一种情况中,在大视野范围下,可以将场景三维模型拉远进行粗糙展示,而在小视野范围下,则可以将场景三维模型拉近进行精细展示。Further, the electronic device displays part or all of the three-dimensional model of the scene through the display window of the display screen. The display window has an adjustable field of view, and the details of the three-dimensional model of the scene that can be displayed under different fields of view are different. In one case, in a large field of view, the 3D model of the scene can be zoomed out for rough display, while in a small field of view, the 3D model of the scene can be zoomed in for fine display.
在本申请实施例中,用户可以通过选取操作,对电子设备的展示视窗当前的视野范围进行选取,例如,假设展示视窗的视野范围包括0-10,数值越大,视野范围越大,且展示的场景三维模型的细节程度越粗糙;数值越小,视野范围越小,且展示的场景三维模型的细节程度越精细;一种实现方式中,用户的选取操作可以为用户对电子设备的鼠标滚轮的滚动操作,通过不同的滚动方向和滚动距离,可以选取不同的视野范围,如,用户希望在中等的视野范围下以适中的精细度展示场景三维模型,则用户可以通过鼠标滚轮选取视野范围5。另外,当前的视野范围的选取还可以由其他方式实现,如,用户直接输入对应的数值作为当前的视野范围。In this embodiment of the present application, the user can select the current field of view of the display window of the electronic device through a selection operation. For example, assuming that the field of view of the display window includes 0-10, the larger the value, the larger the field of view, and the display The detail level of the 3D model of the scene displayed is coarser; the smaller the value, the smaller the field of view, and the finer the detail level of the displayed 3D model of the scene; in one implementation, the user's selection operation can be the user's mouse wheel on the electronic device. You can select different fields of view through different scrolling directions and scrolling distances. For example, if the user wants to display the 3D model of the scene with a moderate degree of detail in the medium field of view, the user can select the field of view by using the mouse wheel. 5 . In addition, the selection of the current field of view can also be implemented in other ways, for example, the user directly inputs a corresponding numerical value as the current field of view.
需要说明的是,当前的视野范围也可以为默认值,本申请实施例对此不作限定。It should be noted that, the current field of view may also be a default value, which is not limited in this embodiment of the present application.
步骤102、根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层。Step 102: Determine the target mesh display layer to be loaded in the three-dimensional model of the scene according to the field of view.
在本申请实施例中,不同的视野范围对应了用户对场景三维模型不同的展示精细度需求,因此,本申请实施例可以将场景三维模型中各个网格展示层的展示精细度量化,并建立视野范围与展示精细度之间的对应关系,以供根据该对应关系,确定与用户选择的展示视窗当前的视野范围对应的展示精细度,以及具有该展示精细度的目标网格展示层。In the embodiment of the present application, different visual fields correspond to the user's different display fineness requirements for the three-dimensional scene model. Therefore, the embodiment of the present application can quantify the display fineness of each grid display layer in the three-dimensional scene model, and establish The corresponding relationship between the field of view and the display fineness is used to determine the display fineness corresponding to the current field of view of the display window selected by the user and the target grid display layer with the display fineness according to the corresponding relationship.
例如,假设场景三维模型包括展示精细度分别为粗糙、适中、精细的三个网格展示层,展示视窗的视野范围也包括远、中、近三个值,则可以建立粗糙-远、适中-中、精细-近的对应关系,在用户后续选取的视野范围为远对 应的值时,则可以将粗糙展示精细度对应的网格展示层确定为目标网格展示层。For example, assuming that the 3D model of the scene includes three grid display layers whose display fineness is coarse, moderate, and fine, and the field of view of the display window also includes three values of far, medium, and near, then rough-far, moderate- The correspondence between medium and fine-near, when the visual field range selected by the user subsequently is the value corresponding to far, the grid display layer corresponding to the coarse display fineness can be determined as the target grid display layer.
步骤103、计算所述电子设备加载所述目标网格展示层所需的目标资源量。Step 103: Calculate the target resource amount required by the electronic device to load the target grid display layer.
在本申请实施例中,电子设备在加载网格展示层的过程中,需要进行渲染等算法的计算,且消耗一定的硬件的资源量,加载的网格展示层越精细,则消耗的资源量越大。资源量可以包括电子设备的显存容量、内存容量等硬件参数。In the embodiment of the present application, in the process of loading the grid display layer, the electronic device needs to perform algorithm calculations such as rendering, and consumes a certain amount of hardware resources. The finer the grid display layer loaded, the more resources consumed bigger. The amount of resources may include hardware parameters such as video memory capacity and memory capacity of the electronic device.
因此,在确定了目标网格展示层之后,可以根据加载目标网格展示层的大小、以及所需的算法等,计算电子设备加载目标网格展示层所需的目标资源量。如,计算加载电子设备加载渲染目标网格展示层时所占用的显存容量。Therefore, after the target grid presentation layer is determined, the target resource amount required by the electronic device to load the target grid presentation layer can be calculated according to the size of the loading target grid presentation layer and the required algorithm. For example, calculate the video memory capacity occupied when the electronic device loads the rendering target grid presentation layer.
步骤104、根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示。Step 104: Select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene according to the target resource amount, and display the selected target grid blocks in the loading window .
其中,一个或者多个网格展示层包括:所述目标网格展示层,比所述目标网格展示层更精细的第一网格展示层,或者比所述目标网格展示层更粗糙的第二网格展示层。Wherein, the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid presentation layer.
在本申请实施例中,电子设备的硬件的总资源量是有限的,如,电子设备所采用的内存和显存的总容量是固定的,譬如内存总容量为4g,显存总容量为2g。In the embodiment of the present application, the total resources of the hardware of the electronic device are limited, for example, the total capacity of the memory and the video memory used by the electronic device is fixed, for example, the total memory capacity is 4g, and the total video memory capacity is 2g.
在最基础情况下,会要求展示视窗加载目标网格展示层所需的资源量与硬件当前已被使用的资源量之和不能超过该总资源量,否则会导致资源不足,无法加载目标网格展示层。另外,在一些情况下,可以设定一个略小于总资源量的阈值,并规定展示视窗加载目标网格展示层所需的资源量,与硬件当前已被使用的资源量之和不能超过该阈值,以避免资源量被消耗光,使得始终预留一部分资源量以供紧急情况使用。In the most basic case, the sum of the resources required by the display window to load the display layer of the target grid and the resources currently used by the hardware cannot exceed the total amount of resources, otherwise the resources will be insufficient and the target grid cannot be loaded. display layer. In addition, in some cases, a threshold value slightly smaller than the total amount of resources can be set, and the amount of resources required for the display window to load the target grid display layer, and the amount of resources currently used by the hardware cannot exceed the threshold. , so as to avoid resource consumption, so that a part of the resource is always reserved for emergency use.
因此,在硬件资源不足以加载目标网格展示层的情况下,如,加载目标网格展示层需要耗费1.5g显存,而当前显存仅剩1.2g可用容量,电子设备可以从场景三维模型的一个或者多个网格展示层中,选取比目标网格展示层更粗糙的第二网格展示层的所有网格区块作为目标网格区块,并通过展示视 窗加载所有目标网格区块构成的第二网格展示层,由于第二网格展示层的精细度低于目标网格展示层,所以加载第二网格展示层所需的资源量就会降低,这就会使得硬件资源不足的情况得到缓解。Therefore, when the hardware resources are not enough to load the target grid display layer, for example, loading the target grid display layer requires 1.5g of video memory, and the current video memory only has 1.2g of available capacity, the electronic device can download the scene from one of the 3D models of the scene. Or among multiple grid display layers, select all grid blocks of the second grid display layer that are rougher than the target grid display layer as the target grid blocks, and load all the target grid blocks through the display window to form The second grid display layer of the second grid display layer, because the fineness of the second grid display layer is lower than the target grid display layer, the amount of resources required to load the second grid display layer will be reduced, which will lead to insufficient hardware resources. situation is alleviated.
进一步的,若硬件资源还是无法满足加载第二网格展示层,则可以进一步从场景三维模型的一个或者多个网格展示层中,选取精细度比第二网格展示层更低的网格展示层进行加载,直至硬件资源能够满足加载当前的网格展示层。Further, if the hardware resources are still unable to load the second grid display layer, a grid with a lower fineness than the second grid display layer may be selected from one or more grid display layers of the scene 3D model. The presentation layer is loaded until the hardware resources are sufficient to load the current grid presentation layer.
在硬件资源可以满足加载目标网格展示层,且硬件资源较为充足的情况下,如,加载目标网格展示层需要耗费0.5g显存,而当前显存剩余2g可用容量。电子设备可以在一种情况下(硬件资源足够完整加载更精细的一层网格展示层),从场景三维模型的一个或者多个网格展示层中,选取比目标网格展示层更精细的第一网格展示层的所有网格区块作为目标网格区块,并通过展示视窗加载所有目标网格区块构成的第一网格展示层,由于第一网格展示层的精细度高于目标网格展示层,这就可以利用电子设备本身的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。In the case that the hardware resources can satisfy the loading of the target grid display layer, and the hardware resources are relatively sufficient, for example, loading the target grid display layer requires 0.5g of video memory, and the current video memory has 2g of available capacity. The electronic device may, in a case (hardware resources are sufficient to fully load a finer mesh display layer), select a mesh display layer that is more finer than the target mesh display layer from one or more mesh display layers of the 3D model of the scene. All grid blocks of the first grid display layer are used as target grid blocks, and the first grid display layer composed of all target grid blocks is loaded through the display window. Because the first grid display layer has high precision On the target grid display layer, this can take advantage of the hardware resources of the electronic device itself to display the 3D model of the scene in a more refined manner and improve the display effect.
在另一种情况下(硬件资源还有剩余,但并不能完整加载更精细的一层网格展示层),此时,电子设备可以从更精细的第一网格展示层中选取部分网格区块,并将选取的网格区块替换目标网格展示层中的对应区块,直至替换后的目标网格展示层所需资源量达到硬件上限,通过展示视窗加载完成替换后的目标网格展示层,由于目标网格展示层中的部分区块被替换成了更精细的网格区块,这就可以利用电子设备本身的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。In another case (hardware resources are still available, but the finer grid display layer cannot be fully loaded), at this time, the electronic device can select part of the grid from the first finer grid display layer block, and replace the selected grid block with the corresponding block in the target grid display layer until the amount of resources required by the replaced target grid display layer reaches the hardware upper limit, and the replaced target grid is loaded through the display window. In the grid display layer, since some blocks in the target grid display layer are replaced with finer grid blocks, the 3D model of the scene can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device itself. Display of results.
进一步的,若硬件资源可以较轻松的满足加载第一网格展示层,则可以进一步从场景三维模型的一个或者多个网格展示层中,选取精细度比第一网格展示层更高的网格展示层进行加载,直至达到硬件资源上限。Further, if the hardware resources can easily satisfy the loading of the first grid display layer, one or more grid display layers of the scene 3D model can be further selected from one or more grid display layers with a higher fineness than the first grid display layer. The grid presentation layer is loaded until the hardware resource limit is reached.
具体的,所述第一网格展示层的中任意网格区块的实际几何误差小于所述目标网格展示层的中任意网格区块的实际几何误差;所述第二网格展示层的中任意网格区块的实际几何误差大于所述目标网格展示层的中任意网格区块的实际几何误差;所述实际几何误差用于反映网格展示层的网格面相对 于所述场景三维模型的表面之间实际的几何距离。Specifically, the actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer; the second grid display layer The actual geometric error of any grid block in the target grid display layer is greater than the actual geometric error of any grid block in the target grid display layer; the actual geometric error is used to reflect the grid surface of the grid display layer relative to the The actual geometric distance between the surfaces of the 3D model of the scene.
在本申请实施例中,几何误差用于表征网格展示层中的网格面相对于场景三维模型的表面(即场景三维模型对应的物体的表面,也可理解为完美网格展示层的网格面的表面)之间的几何距离。通常来说,网格展示层的实际几何误差越小,说明该网格展示层包括的网格面的数量越多,网格展示层的网格面与场景三维模型的表面之间的几何距离越小,由于网格面的数量较多,且网格面与完美网格展示层更贴近,使得该网格展示层与完美网格展示层越相似,该网格展示层的细节程度越高。In this embodiment of the present application, the geometric error is used to characterize the grid surface in the grid display layer relative to the surface of the 3D scene model (that is, the surface of the object corresponding to the 3D scene model, which can also be understood as the grid of the perfect grid display layer). the geometric distance between the surfaces). Generally speaking, the smaller the actual geometric error of the grid display layer, the greater the number of grid surfaces included in the grid display layer, and the geometric distance between the grid surface of the grid display layer and the surface of the 3D model of the scene. The smaller the value, the more the mesh surface is, and the closer the mesh surface is to the perfect mesh display layer, the more similar the mesh display layer is to the perfect mesh display layer, and the higher the detail of the mesh display layer. .
如,参照图2,在场景三维模型对应物体为一个表面光滑的球体的情况下,网格展示层10为正六面体,网格展示层11为正十二面体。可以看出,网格展示层的网格面的数量越多,则网格面距离球体表面的几何距离越小,使得网格展示层11的实际几何误差小于网格展示层11的实际几何误差。For example, referring to FIG. 2 , when the object corresponding to the three-dimensional scene model is a sphere with a smooth surface, the grid display layer 10 is a regular hexahedron, and the grid display layer 11 is a regular dodecahedron. It can be seen that the greater the number of grid surfaces of the grid display layer, the smaller the geometric distance between the grid surface and the surface of the sphere, so that the actual geometric error of the grid display layer 11 is smaller than the actual geometric error of the grid display layer 11 .
在本申请实施例中,通过引入几何误差的概念,可以使得场景三维模型的各个网格展示层的展示精细度得到了具体量化,使得可以根据实际几何误差的不同,来区分各个网格展示层的展示精细度的不同。第一网格展示层的精细度大于目标网格展示层和第二网格展示层的精细度,这使得第一网格展示层中任意网格区块的实际几何误差小于目标网格展示层以及第二网格展示层中任意网格区块的实际几何误差;第二网格展示层的精细度小于第一网格展示层和目标网格展示层的精细度,这使得第二网格展示层中任意网格区块的实际几何误差大于目标网格展示层以及第一网格展示层的中任意网格区块的实际几何误差。In the embodiment of the present application, by introducing the concept of geometric error, the display fineness of each grid display layer of the 3D model of the scene can be specifically quantified, so that each grid display layer can be distinguished according to the difference of actual geometric errors The display fineness is different. The fineness of the first grid display layer is greater than that of the target grid display layer and the second grid display layer, which makes the actual geometric error of any grid block in the first grid display layer smaller than that of the target grid display layer and the actual geometric error of any grid block in the second grid presentation layer; the fineness of the second grid presentation layer is smaller than the fineness of the first grid presentation layer and the target grid presentation layer, which makes the second grid presentation layer The actual geometric error of any grid block in the display layer is greater than the actual geometric error of any grid block in the target grid display layer and the first grid display layer.
综上,本申请实施例提供的一种模型的展示方法,通过几何误差来使得场景三维模型的各个网格展示层的展示精细度得到了具体量化,并且,根据加载场景三维模型的电子设备的具体硬件条件,本申请可以在电子设备的硬件资源不足加载待加载的目标网格展示层的情况下,从场景三维模型中选取比目标网格展示层的网格区块更粗糙的目标网格区块进行加载展示,从而使得场景三维模型在电子设备的硬件资源较差的情况下可以正常加载;在电子设备的硬件资源充裕的情况下,本申请可以从场景三维模型中选取比目标网格展示层的网格区块更精细的目标网格区块进行加载展示,从而使得场景三维模型在电子设备的硬件资源充裕的情况下,利用电子设备的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。To sum up, a method for displaying a model provided by this embodiment of the present application specifically quantifies the display fineness of each grid display layer of a three-dimensional scene model through geometric errors. For specific hardware conditions, the present application can select a target grid that is coarser than the grid blocks of the target grid display layer from the 3D model of the scene when the hardware resources of the electronic device are insufficient to load the target grid display layer to be loaded. The block is loaded and displayed, so that the scene 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select from the scene 3D model than the target mesh The grid blocks of the display layer are loaded and displayed with finer target grid blocks, so that the scene 3D model can be more refined by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant. To improve the display effect.
图3是本申请实施例提供的一种模型的展示方法的具体流程图,该方法可以包括:3 is a specific flowchart of a method for displaying a model provided by an embodiment of the present application, and the method may include:
步骤201、获取用于展示所述场景三维模型的展示视窗当前的视野范围。Step 201: Acquire the current field of view of the display window used to display the three-dimensional model of the scene.
其中,所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;Wherein, the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
具体的,步骤201具体可以参照上述步骤101,此处不再赘述。Specifically, for step 201, reference may be made to the foregoing step 101, and details are not repeated here.
步骤202、确定与所述视野范围对应的目标几何误差。Step 202: Determine the target geometric error corresponding to the field of view.
在本申请实施例中,不同的视野范围对应了用户对场景三维模型不同的展示精细度需求,因此,本申请实施例可以通过引入几何误差,来将场景三维模型中各个网格展示层的展示精细度量化,并建立视野范围与几何误差之间的对应关系,以供根据该对应关系,确定与用户选择的展示视窗当前的视野范围对应的目标几何误差,以便确定具有该目标几何误差的目标网格展示层。In the embodiment of the present application, different visual fields correspond to the user's different display fineness requirements for the three-dimensional model of the scene. Therefore, the embodiment of the present application can introduce geometric errors to display each grid display layer in the three-dimensional scene model. Finely quantify and establish a correspondence between the field of view and the geometric error, so as to determine the target geometric error corresponding to the current field of view of the display window selected by the user according to the correspondence, so as to determine the target with the target geometric error Grid presentation layer.
例如,假设场景三维模型包括几何误差分别为粗糙值、适中值、精细值的三个网格展示层,展示视窗的视野范围也包括远、中、近三个值,则可以建立粗糙-远、适中-中、精细-近的对应关系,在用户后续选取的视野范围为远对应的值时,则可以将粗糙值的几何误差对应的网格展示层确定为目标网格展示层。For example, assuming that the 3D model of the scene includes three grid display layers whose geometric errors are coarse, moderate, and fine, and the field of view of the display window also includes three values of far, medium, and near, then the rough-far, Moderate-medium, fine-near correspondence, when the visual field range selected by the user subsequently is the value corresponding to the far value, the grid display layer corresponding to the geometric error of the rough value can be determined as the target grid display layer.
步骤203、根据所述目标几何误差,确定所述场景三维模型中的目标网格展示层。Step 203: Determine a target mesh display layer in the three-dimensional model of the scene according to the target geometric error.
其中,所述目标网格展示层为实际几何误差与所述目标几何误差的差值最小的网格展示层。The target grid display layer is the grid display layer with the smallest difference between the actual geometric error and the target geometric error.
具体的,几何误差用于表征网格展示层中的网格面相对于场景三维模型的表面(即场景三维模型对应的物体的表面,也可理解为完美网格展示层的网格面的表面)之间的几何距离。由于在步骤202中确定了展示视窗当前的视野范围对应的目标几何误差,则实际几何误差与目标几何误差最接近的目标网格展示层可以为满足用户当前所需求的清晰度的网格展示层。Specifically, the geometric error is used to characterize the surface of the grid surface in the grid display layer relative to the surface of the 3D scene model (that is, the surface of the object corresponding to the 3D scene model, which can also be understood as the surface of the grid surface of the perfect grid display layer) geometric distance between them. Since the target geometric error corresponding to the current field of view of the display window is determined in step 202, the target grid display layer whose actual geometric error is closest to the target geometric error may be a grid display layer that meets the current definition required by the user .
步骤204、计算所述电子设备加载所述目标网格展示层所需的目标资源量。Step 204: Calculate the target resource amount required by the electronic device to load the target grid display layer.
具体的,步骤204具体可以参照上述步骤103,此处不再赘述。Specifically, for step 204, reference may be made to the foregoing step 103, and details are not repeated here.
可选的,步骤204还可以通过根据所述目标几何误差与所述电子设备的显示屏的屏幕分辨率,确定所述目标资源量的方式实现。Optionally, step 204 may also be implemented by determining the target resource amount according to the target geometric error and the screen resolution of the display screen of the electronic device.
在本申请实施例中,电子设备的显示屏的屏幕分辨率决定了视野范围,在用户未进行视野范围调整操作的情况下,屏幕分辨率越大,加载的场景三维模型的有效区域会变多,消耗资源变大;屏幕分辨率越小,加载的场景三维模型的有效区域会变少,消耗资源变少。所以,本申请实施例可以基于目标几何误差量化目标网格展示层的展示精细度,并进一步利用目标几何误差与电子设备的显示屏的屏幕分辨率确定加载目标网格展示层所需的目标资源量。In the embodiment of the present application, the screen resolution of the display screen of the electronic device determines the field of view. If the user does not adjust the field of view, the larger the screen resolution is, the more effective areas of the loaded scene 3D model will be. , the consumption of resources will increase; the smaller the screen resolution, the less effective area of the loaded scene 3D model will be, and the less resources will be consumed. Therefore, the embodiment of the present application can quantify the display fineness of the target grid display layer based on the target geometric error, and further use the target geometric error and the screen resolution of the display screen of the electronic device to determine the target resources required for loading the target grid display layer quantity.
步骤205、根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示。Step 205: Select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene according to the target resource amount, and display the selected target grid blocks in the loading window. .
具体的,步骤205具体可以参照上述步骤104,此处不再赘述。Specifically, for step 205, reference may be made to the foregoing step 104, and details are not repeated here.
可选的,步骤205包括:Optionally, step 205 includes:
子步骤2051、在所述目标资源量满足精细展示条件的情况下,选取所述第一网格展示层中的部分或全部网格区块替换所述目标网格展示层的对应网格区块。Sub-step 2051: Select some or all of the grid blocks in the first grid display layer to replace the corresponding grid blocks of the target grid display layer when the target resource amount satisfies the fine display conditions .
子步骤2052、通过所述展示视窗将替换后的目标网格展示层包括的所有网格区块作为目标网格区块进行显示。Sub-step 2052: Display all grid blocks included in the replaced target grid display layer as target grid blocks through the display window.
可选的,所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第一预设阈值。Optionally, the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a first preset threshold.
在本申请实施例中,可以通过精细展示条件来限定电子设备的硬件资源可以满足加载目标网格展示层,且硬件资源较为充足的情况,电子设备的硬件资源充足,可以反映在加载目标网格展示层所需的目标资源量与电子设备当前的已使用资源量之和小于或等于第一预设阈值。In the embodiment of the present application, the fine display conditions can be used to define that the hardware resources of the electronic device can satisfy the loading target grid display layer, and the hardware resources are relatively sufficient, and the hardware resources of the electronic device are sufficient, which can be reflected in the loading target grid. The sum of the target resource amount required by the presentation layer and the currently used resource amount of the electronic device is less than or equal to the first preset threshold.
例如,电子设备的硬件资源量为显存的情况下,电子设备的总显存为2g,假设要满足电子设备可以进一步将场景三维模型精细化显示,且能够正常使用其他功能,需预留0.4g的显存,此时第一预设阈值可以为1.6g,当加载目标网格展示层所需的目标资源量与电子设备当前的已使用资源量之和小于或等于1.6g时,电子设备可以在正常运行其他功能的基础上,进一步利用硬件资源优势,将场景三维模型精细化显示。For example, when the hardware resources of the electronic device are video memory, the total video memory of the electronic device is 2g. If the electronic device can further display the 3D model of the scene in a refined manner, and can use other functions normally, 0.4g must be reserved. Video memory, at this time, the first preset threshold can be 1.6g. When the sum of the amount of target resources required to load the target grid display layer and the amount of resources currently used by the electronic device is less than or equal to 1.6g, the electronic device can On the basis of running other functions, further use the advantages of hardware resources to display the 3D model of the scene in a refined manner.
需要说明的是,该第一预设阈值可以根据实际需求的不同进行调整,另外,精细展示条件也可以为目标资源量与电子设备当前的已使用资源量之和与总资源量的比例小于预设比例值,例如,假设该预设比例值为80%,目标资源量与电子设备当前的已使用资源量之和已占用电子设备40%资源量,则此时电子设备硬件资源充足,可以满足将场景三维模型精细化显示的需求。It should be noted that the first preset threshold can be adjusted according to actual needs. In addition, the fine display condition can also be that the ratio of the sum of the target resource amount to the currently used resource amount of the electronic device to the total resource amount is less than the predetermined amount. Set the ratio value, for example, assuming that the preset ratio value is 80%, and the sum of the target resource amount and the current used resource amount of the electronic device has occupied 40% of the resource amount of the electronic device, then the hardware resources of the electronic device are sufficient at this time to meet the The demand for refined display of the 3D model of the scene.
进一步的,在目标资源量满足精细展示条件的情况下,可以从场景三维模型的一个或者多个网格展示层中,选取比目标网格展示层更精细的第一网格展示层的所有网格区块作为目标网格区块,并通过展示视窗加载所有目标网格区块构成的第一网格展示层,这就可以利用电子设备本身的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。Further, in the case that the target resource amount satisfies the fine display condition, all meshes of the first mesh display layer finer than the target mesh display layer may be selected from one or more mesh display layers of the scene 3D model. The grid block is used as the target grid block, and the first grid display layer composed of all the target grid blocks is loaded through the display window, which can take advantage of the hardware resources of the electronic device itself to make the scene 3D model more refined. Display, improve the display effect.
在另一种情况下(硬件资源还有剩余,但并不能完整加载更精细的一层网格展示层),此时,电子设备可以从更精细的第一网格展示层中选取部分网格区块,并将选取的网格区块替换目标网格展示层中的对应区块,直至替换后的目标网格展示层所需资源量达到硬件上限,通过展示视窗加载完成替换后的目标网格展示层,由于目标网格展示层中的部分区块被替换成了更精细的网格区块,这就可以利用电子设备本身的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。In another case (hardware resources are still available, but the finer grid display layer cannot be fully loaded), at this time, the electronic device can select part of the grid from the first finer grid display layer block, and replace the selected grid block with the corresponding block in the target grid display layer until the amount of resources required by the replaced target grid display layer reaches the hardware upper limit, and the replaced target grid is loaded through the display window. In the grid display layer, since some blocks in the target grid display layer are replaced with finer grid blocks, the 3D model of the scene can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device itself. Display of results.
进一步的,若硬件资源可以较轻松的满足加载第一网格展示层,则可以进一步从场景三维模型的一个或者多个网格展示层中,选取精细度比第一网格展示层更高的网格展示层进行加载,直至达到硬件资源上限。Further, if the hardware resources can easily satisfy the loading of the first grid display layer, one or more grid display layers of the scene 3D model can be further selected from one or more grid display layers with a higher fineness than the first grid display layer. The grid presentation layer is loaded until the hardware resource limit is reached.
可选的,子步骤2051包括:Optionally, sub-step 2051 includes:
子步骤A1、计算所述目标网格展示层中每个网格区块的误差比值,所述误差比值为所述网格区块的实际几何误差与所述网格区块的期望误差的比值。Sub-step A1, calculate the error ratio of each grid block in the target grid display layer, the error ratio is the ratio of the actual geometric error of the grid block to the expected error of the grid block .
子步骤A2、按照所述目标网格展示层的网格区块的误差比值从大到小的顺序,依次将所述目标网格展示层中的网格区块替换为所述第一网格展示层中的对应网格区块,直至所述电子设备当前的剩余资源量小于或等于第三预设阈值时停止替换。Sub-step A2, according to the order of the error ratios of the grid blocks of the target grid display layer from large to small, sequentially replace the grid blocks in the target grid display layer with the first grid The corresponding grid blocks in the display layer are stopped to be replaced until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold.
可选的,网格区块的期望误差包括:所述电子设备的屏幕分辨率的宽度 与所述网格区块到视点的距离之间的比值。Optionally, the expected error of the grid block includes: the ratio between the width of the screen resolution of the electronic device and the distance from the grid block to the viewpoint.
在本申请实施例中,网格展示层中的每个网格区块可以看做一个可被独立加载的个体,其具有实际几何误差和对应的期望误差,网格区块的误差比值越接近1则表示该网格区块被替换为更精细的网格区块的优先度越高,则本申请实施例可以按照目标网格展示层的网格区块的误差比值从大到小的顺序,依次将目标网格展示层中的网格区块替换为所述第一网格展示层中的对应网格区块,直至电子设备当前的剩余资源量小于或等于第三预设阈值时停止替换。In the embodiment of the present application, each grid block in the grid display layer can be regarded as an individual that can be loaded independently, which has an actual geometric error and a corresponding expected error, and the error ratio of the grid blocks is closer 1 indicates that the grid block is replaced with a finer grid block with a higher priority, and in this embodiment of the present application, the error ratios of the grid blocks of the target grid display layer can be sorted in descending order. , replacing the grid blocks in the target grid display layer with the corresponding grid blocks in the first grid display layer in turn, until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold. replace.
例如,参照图4,其示出了一种场景三维模型包含的网格展示层的示意图。网格展示层m0为最精细网格展示层,实际几何误差为0.5,共有16个网格区块;网格展示层m1为适中网格展示层,实际几何误差为1,共有4个网格区块;网格展示层m2为最粗糙网格展示层,实际几何误差为2,共有1个网格区块。其中,每个网格区块消耗10M显存。For example, referring to FIG. 4 , it shows a schematic diagram of a grid presentation layer included in a three-dimensional model of a scene. The grid display layer m0 is the finest grid display layer, the actual geometric error is 0.5, and there are 16 grid blocks in total; the grid display layer m1 is the moderate grid display layer, the actual geometric error is 1, and there are 4 grids in total block; the grid display layer m2 is the roughest grid display layer, the actual geometric error is 2, and there is a total of 1 grid block. Among them, each grid block consumes 10M video memory.
若展示视窗当前的视野范围对应的目标网格展示层为网格展示层m1,则网格展示层m1的四块网格区块会被选中待加载,所消耗的总显存为40M,若计算得到网格展示层m1的第一网格区块21的实际几何误差为1,期望误差为1.2,则第一网格区块21的误差比值为1/1.2。If the target grid display layer corresponding to the current field of view of the display window is the grid display layer m1, the four grid blocks of the grid display layer m1 will be selected for loading, and the total video memory consumed is 40M. It is obtained that the actual geometric error of the first grid block 21 of the grid display layer m1 is 1, and the expected error is 1.2, so the error ratio of the first grid block 21 is 1/1.2.
第二网格区块22的实际几何误差为1,期望误差为1.1,则第二网格区块22的误差比值为1/1.1。The actual geometric error of the second grid block 22 is 1, and the expected error is 1.1, so the error ratio of the second grid block 22 is 1/1.1.
第三网格区块23的实际几何误差为1,期望误差为1.15,则第三网格区块23的误差比值为1/1.15。The actual geometric error of the third grid block 23 is 1, and the expected error is 1.15, so the error ratio of the third grid block 23 is 1/1.15.
第四网格区块24的实际几何误差为1,期望误差为1.05,则第四网格区块24的误差比值为1/1.05。The actual geometric error of the fourth grid block 24 is 1, and the expected error is 1.05, so the error ratio of the fourth grid block 24 is 1/1.05.
按照误差比值从大到小的顺序排列,则第四网格区块24>第二网格区块22>第三网格区块23>第一网格区块21,第四网格区块24的被替换优先度最高。若此时电子设备的剩余显存足够,为100M,则参照图5,其示出了一种网格展示层的替换过程示意图,可以将网格展示层m0作为更精细的第一网格展示层,先将网格展示层m1的第四网格区块24替换为网格展示层m0中对应位置的四个网格区块25,替换后所需显存70M,硬件资源还是足 够,则可以进一步将网格展示层m1的第二网格区块22替换为网格展示层m0中对应位置的四个网格区块26,替换后所需显存100M,硬件资源刚好达到瓶颈,此时可以停止替换,展示第二网格区块22被替换后的网格展示层m1。Arranged in descending order of the error ratio, the fourth grid block 24 > the second grid block 22 > the third grid block 23 > the first grid block 21, the fourth grid block 24 is replaced with the highest priority. If the remaining video memory of the electronic device is sufficient at this time, which is 100M, then referring to FIG. 5 , which shows a schematic diagram of a replacement process of a grid display layer, the grid display layer m0 can be used as a finer first grid display layer. , first replace the fourth grid block 24 of the grid display layer m1 with the four grid blocks 25 in the corresponding position in the grid display layer m0, after the replacement, the required video memory is 70M, and the hardware resources are still sufficient, then you can further Replace the second grid block 22 of the grid display layer m1 with the four grid blocks 26 in the corresponding positions in the grid display layer m0. After the replacement, the required video memory is 100M, and the hardware resources just reach the bottleneck. At this time, it can be stopped. For replacement, the grid display layer m1 after the second grid block 22 is replaced is displayed.
假设电子设备的剩余显存为200M,则在第二网格区块22被替换后硬件资源还是足够,则可以进一步再将第三网格区块23和第一网格区块21也进行替换,将最终得到的网格展示层m0进行加载展示。Assuming that the remaining video memory of the electronic device is 200M, and the hardware resources are still sufficient after the second grid block 22 is replaced, the third grid block 23 and the first grid block 21 can be further replaced. The finally obtained grid display layer m0 is loaded and displayed.
可选的,步骤205包括:Optionally, step 205 includes:
子步骤2053、在所述目标资源量满足粗糙展示条件的情况下,通过所述展示视窗将所述第二网格展示层包括的所有网格区块作为目标网格区块进行显示。Sub-step 2053: In the case that the target resource amount satisfies the rough display condition, display all grid blocks included in the second grid display layer as target grid blocks through the display window.
可选的,粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于第二预设阈值,其中,所述第一预设阈值小于或等于所述第二预设阈值。Optionally, the rough display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than a second preset threshold, wherein the first preset threshold is less than or equal to the second Preset threshold.
在本申请实施例中,可以通过粗糙展示条件来限定电子设备的硬件资源不足以加载目标网格展示层的情况,电子设备的硬件资源不足,可以反映在加载目标网格展示层所需的目标资源量与电子设备当前的已使用资源量之和大于或等于第二预设阈值。In the embodiment of the present application, rough display conditions can be used to limit the situation that the hardware resources of the electronic device are insufficient to load the target grid display layer, and the hardware resources of the electronic device are insufficient, which can be reflected in the target required for loading the target grid display layer. The sum of the resource amount and the currently used resource amount of the electronic device is greater than or equal to the second preset threshold.
例如,电子设备的硬件资源量为显存的情况下,电子设备的总显存为2g,假设电子设备能够正常使用其他功能,需预留0.4g的显存,电子设备加载目标网格展示层所需的目标资源量为1g,此时第二预设阈值可以为1.6g,当加载目标网格展示层所需的目标资源量与电子设备当前的已使用资源量之和大于1.6g时,电子设备无法正常运行其他功能。For example, when the hardware resource of the electronic device is video memory, the total video memory of the electronic device is 2g. Assuming that the electronic device can use other functions normally, 0.4g of video memory needs to be reserved. The electronic device loads the required display layer of the target grid. The target resource amount is 1g, and the second preset threshold may be 1.6g. When the sum of the target resource amount required to load the target grid display layer and the current used resource amount of the electronic device is greater than 1.6g, the electronic device cannot Other functions run normally.
另外,在另一种情况下,假设电子设备当前的已使用资源量为1.2g,此时电子设备的的剩余显存已无法加载目标网格展示层,这种情况同样属于粗糙展示条件。In addition, in another case, it is assumed that the current amount of used resources of the electronic device is 1.2g, and the remaining video memory of the electronic device cannot load the target grid display layer, which is also a rough display condition.
需要说明的是,该第二预设阈值可以根据实际需求的不同进行调整,另外,粗糙展示条件也可以为目标资源量与电子设备当前的已使用资源量之和与总资源量的比例大于预设比例值,例如,假设该预设比例值为80%,目标 资源量与电子设备当前的已使用资源量之和已占用电子设备90%资源量,则此时电子设备硬件资源不足,不能满足加载目标网格展示层的需求。It should be noted that the second preset threshold can be adjusted according to actual needs. In addition, the rough display condition can also be that the ratio of the sum of the target resource amount to the currently used resource amount of the electronic device to the total resource amount is greater than the predetermined amount. Set the ratio value, for example, assuming that the preset ratio value is 80%, and the sum of the target resource amount and the currently used resource amount of the electronic device has occupied 90% of the resource amount of the electronic device, then the hardware resources of the electronic device are insufficient at this time, which cannot be satisfied. Load the requirements of the target grid presentation layer.
例如,参照图4,其中,网格展示层m0为最精细网格展示层,实际几何误差为0.5,共有16个网格区块;网格展示层m1为适中网格展示层,实际几何误差为1,共有4个网格区块;网格展示层m2为最粗糙网格展示层,实际几何误差为2,共有1个网格区块。其中,每个网格区块消耗10M显存。For example, referring to FIG. 4, the grid display layer m0 is the finest grid display layer, the actual geometric error is 0.5, and there are 16 grid blocks in total; the grid display layer m1 is the moderate grid display layer, and the actual geometric error is 1, and there are 4 grid blocks in total; the grid display layer m2 is the roughest grid display layer, and the actual geometric error is 2, and there is a total of 1 grid block. Among them, each grid block consumes 10M video memory.
若展示视窗当前的视野范围对应的目标网格展示层为网格展示层m1,则网格展示层m1的四块网格区块会被选中待加载,所消耗的总显存为40M,若此时电子设备的剩余空闲显存仅为20M,此时符合粗糙展示条件,电子设备的空闲硬件资源无法将整个网格展示层m1进行展示,则电子设备可以选取比网格展示层m1更粗糙的网格展示层m2进行展示,网格展示层m2所需的资源量为10M显存,电子设备的剩余显存可以满足需求。If the target grid display layer corresponding to the current field of view of the display window is the grid display layer m1, the four grid blocks of the grid display layer m1 will be selected for loading, and the total video memory consumed is 40M. At this time, the remaining free video memory of the electronic device is only 20M. At this time, the rough display conditions are met. The idle hardware resources of the electronic device cannot display the entire grid display layer m1. The grid display layer m2 is used for display, and the amount of resources required by the grid display layer m2 is 10M video memory, and the remaining video memory of the electronic device can meet the demand.
可选的,子步骤2053包括:Optionally, sub-step 2053 includes:
子步骤B1、若所述电子设备加载所述第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第一预设阈值,则从所述场景三维模型中选取第三网格展示层,所述第三网格展示层中任意网格区块的实际几何误差小于所述第二网格展示层的中任意网格区块的实际几何误差。Sub-step B1: If the sum of the amount of resources required by the electronic device to load the second grid display layer and the current amount of the used resources is less than the first preset threshold, then 3D from the scene. A third grid display layer is selected in the model, and the actual geometric error of any grid block in the third grid display layer is smaller than the actual geometric error of any grid block in the second grid display layer.
子步骤B2、选取所述第三网格展示层中的部分或全部网格区块替换所述第二网格展示层的对应网格区块。Sub-step B2, selecting some or all of the grid blocks in the third grid display layer to replace the corresponding grid blocks of the second grid display layer.
子步骤B3、通过所述展示视窗将替换后的第二网格展示层包括的所有网格区块作为目标网格区块进行显示。Sub-step B3: Display all grid blocks included in the replaced second grid display layer as target grid blocks through the display window.
其中,所述电子设备加载所述替换后的第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第二预设阈值。Wherein, the sum of the resource amount required by the electronic device to load the replaced second grid display layer and the current used resource amount is less than the second preset threshold.
在本申请实施例中,第二网格展示层是相对于目标网格展示层更粗糙的网格展示层,若电子设备显示第二网格展示层之后,因电子设备其他进程停止,硬件资源得到了释放,使得电子设备加载第二网格展示层所需的资源量,与当前的已使用资源量之和小于第一预设阈值,则此时又满足精细展示条件,电子设备可以从场景三维模型中选取精细度比第二网格展示层更高的第三网格展示层,并在选取第三网格展示层中的部分或全部网格区块替换第二网 格展示层的对应网格区块后,通过展示视窗将替换后的第二网格展示层包括的所有网格区块作为目标网格区块进行显示。In this embodiment of the present application, the second grid display layer is a rougher grid display layer than the target grid display layer. If the electronic device displays the second grid display layer, other processes of the electronic device are stopped and the hardware resources It is released, so that the sum of the amount of resources required by the electronic device to load the second grid display layer and the current amount of used resources is less than the first preset threshold, then the fine display condition is satisfied again at this time, and the electronic device can download from the scene. In the 3D model, select a third grid display layer with a higher fineness than the second grid display layer, and select some or all of the grid blocks in the third grid display layer to replace the corresponding ones of the second grid display layer. After the grid blocks are displayed, all grid blocks included in the second grid display layer after replacement are displayed as target grid blocks through the display window.
进一步的,替换后的第二网格展示层所需的资源量,与当前的所述已使用资源量之和,也需小于或等于第二预设阈值。否则替换后的第二网格展示层所需的资源量又会符合粗糙展示条件。即,在从第三网格展示层中选取网格区块替换第二网格展示层中的对应网格区块时,需保证替换后的第二网格展示层所需的资源量不符合粗糙展示条件。Further, the sum of the amount of resources required by the replaced second grid display layer and the current amount of used resources also needs to be less than or equal to the second preset threshold. Otherwise, the amount of resources required by the replaced second grid display layer will meet the rough display conditions again. That is, when selecting grid blocks from the third grid display layer to replace the corresponding grid blocks in the second grid display layer, it is necessary to ensure that the amount of resources required by the replaced second grid display layer does not meet the Rough display conditions.
可选的,电子设备加载所述替换后的目标网格展示层所需的资源量,与当前的所述已使用资源量之和小于或等于所述第二预设阈值。Optionally, the sum of the amount of resources required by the electronic device to load the replaced target grid display layer and the current amount of used resources is less than or equal to the second preset threshold.
在执行子步骤2052的过程中,替换后的目标网格展示层所需的资源量,与当前的所述已使用资源量之和,也需小于或等于第二预设阈值。否则替换后的目标网格展示层所需的资源量又会符合粗糙展示条件。即,在从第一网格展示层中选取网格区块替换目标网格展示层中的对应网格区块时,需保证替换后的目标网格展示层所需的资源量不符合粗糙展示条件。In the process of executing sub-step 2052, the sum of the resource amount required by the replaced target grid display layer and the current used resource amount also needs to be less than or equal to the second preset threshold. Otherwise, the amount of resources required by the replaced target grid display layer will meet the rough display conditions again. That is, when selecting grid blocks from the first grid display layer to replace the corresponding grid blocks in the target grid display layer, it is necessary to ensure that the amount of resources required by the replaced target grid display layer does not conform to the rough display layer. condition.
综上,本申请实施例提供的一种模型的展示方法,通过几何误差来使得场景三维模型的各个网格展示层的展示精细度得到了具体量化,并且,根据加载场景三维模型的电子设备的具体硬件条件,本申请可以在电子设备的硬件资源不足加载待加载的目标网格展示层的情况下,从场景三维模型中选取比目标网格展示层的网格区块更粗糙的目标网格区块进行加载展示,从而使得场景三维模型在电子设备的硬件资源较差的情况下可以正常加载;在电子设备的硬件资源充裕的情况下,本申请可以从场景三维模型中选取比目标网格展示层的网格区块更精细的目标网格区块进行加载展示,从而使得场景三维模型在电子设备的硬件资源充裕的情况下,利用电子设备的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。To sum up, a method for displaying a model provided by this embodiment of the present application specifically quantifies the display fineness of each grid display layer of a three-dimensional scene model through geometric errors. For specific hardware conditions, the present application can select a target grid that is coarser than the grid blocks of the target grid display layer from the 3D model of the scene when the hardware resources of the electronic device are insufficient to load the target grid display layer to be loaded. The block is loaded and displayed, so that the scene 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select from the scene 3D model than the target mesh The grid blocks of the display layer are loaded and displayed with finer target grid blocks, so that the scene 3D model can be more refined by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant. To improve the display effect.
图6是本申请实施例提供的一种模型的展示方法的流程图,如图6所示,该方法可以包括:FIG. 6 is a flowchart of a method for displaying a model provided by an embodiment of the present application. As shown in FIG. 6 , the method may include:
步骤301、获取用于展示所述场景三维模型的展示视窗当前的视野范围。Step 301: Acquire the current field of view of the display window used to display the three-dimensional model of the scene.
其中,所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块。Wherein, the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block.
具体的,步骤301具体可以参照上述步骤101,此处不再赘述。Specifically, for step 301, reference may be made to the foregoing step 101, and details are not repeated here.
步骤302、根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层。Step 302: Determine the target mesh display layer to be loaded in the three-dimensional model of the scene according to the field of view.
具体的,步骤302具体可以参照上述步骤102,此处不再赘述。Specifically, for step 302, reference may be made to the foregoing step 102, and details are not repeated here.
步骤303、计算所述电子设备加载所述目标网格展示层所需的目标资源量。Step 303: Calculate the target resource amount required by the electronic device to load the target grid display layer.
具体的,步骤303具体可以参照上述步骤103,此处不再赘述。Specifically, for step 303, reference may be made to the foregoing step 103, which will not be repeated here.
步骤304、在所述目标资源量满足精细展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差增大。Step 304: Increase the actual geometric errors of all grid display layers of the scene 3D model when the target resource amount satisfies the fine display condition.
其中,所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离。The actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
可选的,所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第四预设阈值。Optionally, the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold.
在本申请实施例中,可以通过精细展示条件来限定电子设备的硬件资源可以满足加载目标网格展示层,且硬件资源较为充足的情况,电子设备的硬件资源充足,可以反映在加载目标网格展示层所需的目标资源量与电子设备当前的已使用资源量之和小于或等于第四预设阈值。In the embodiment of the present application, the fine display conditions can be used to define that the hardware resources of the electronic device can satisfy the loading target grid display layer, and the hardware resources are relatively sufficient, and the hardware resources of the electronic device are sufficient, which can be reflected in the loading target grid. The sum of the target resource amount required by the presentation layer and the currently used resource amount of the electronic device is less than or equal to the fourth preset threshold.
具体的,场景三维模型的网格区块的实际几何误差可以作为参数保存在该网格区块的文件中,本申请实施例提供的一种模型的展示方法,可以具体应用于场景三维模型的网格区块的文件可以授权被修改的情况下,且电子设备在运行期间的剩余空闲资源量长期保持在一个稳定范围,且该剩余空闲资源量较为充足,能够充分满足场景三维模型更进一步进行精细化加载的需求,则此时可以将场景三维模型的所有网格展示层的文件中的实际几何误差增大,在修改后,电子设备的展示视窗会认为当前的目标网格展示层的精细度不足,主动选取比目标网格展示层更精细的网格展示层进行加载显示。Specifically, the actual geometric error of the grid block of the three-dimensional scene model can be stored in the file of the grid block as a parameter. In the case where the file of the grid block can be authorized to be modified, and the remaining free resources of the electronic device during operation are kept in a stable range for a long time, and the remaining free resources are sufficient, which can fully satisfy the scene 3D model for further processing. If the requirement of refined loading is required, the actual geometric errors in the files of all grid display layers of the 3D model of the scene can be increased. After modification, the display window of the electronic device will consider the fineness of the current target grid display layer. If the degree is insufficient, actively select a grid display layer that is finer than the target grid display layer for loading and display.
步骤305、在所述目标资源量满足粗糙展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差减小。Step 305: In the case that the target resource amount satisfies the rough display condition, reduce the actual geometric errors of all grid display layers of the three-dimensional model of the scene.
可选的,所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于或等于第五预设阈值;其中,所述第四预设阈值小于或等于所述第五预设阈值。Optionally, the rough display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than or equal to a fifth preset threshold; wherein, the fourth preset threshold is less than or equal to the fifth preset threshold.
在本申请实施例中,可以通过粗糙展示条件来限定电子设备的硬件资源不足以加载目标网格展示层的情况,电子设备的硬件资源不足,可以反映在加载目标网格展示层所需的目标资源量与电子设备当前的已使用资源量之和大于或等于第五预设阈值。In the embodiment of the present application, rough display conditions can be used to limit the situation that the hardware resources of the electronic device are insufficient to load the target grid display layer, and the hardware resources of the electronic device are insufficient, which can be reflected in the target required for loading the target grid display layer. The sum of the resource amount and the currently used resource amount of the electronic device is greater than or equal to the fifth preset threshold.
具体的,在场景三维模型的网格区块的文件可以授权被修改的情况下,且电子设备在运行期间的剩余空闲资源量长期保持在一个稳定范围,且该剩余空闲资源量不充足,需要将场景三维模型进行粗糙化加载显示以保证正常加载,则此时可以将场景三维模型的所有网格展示层的文件中的实际几何误差减小,在修改后,电子设备的展示视窗会认为当前的目标网格展示层的精细度过高,主动选取比目标网格展示层更粗糙的网格展示层进行加载显示。Specifically, in the case where the file of the grid block of the 3D model of the scene can be authorized to be modified, and the amount of remaining idle resources of the electronic device during operation is kept in a stable range for a long time, and the amount of remaining idle resources is not sufficient, it is necessary to Roughen the scene 3D model for loading and display to ensure normal loading, then the actual geometric errors in the files of all mesh display layers of the scene 3D model can be reduced. After modification, the display window of the electronic device will consider the current The fineness of the target grid display layer is too high, and a grid display layer that is coarser than the target grid display layer is actively selected for loading and display.
步骤306、根据修正后的所有所述网格展示层的实际几何误差,选取所述场景三维模型中与所述视野范围对应的网格展示层进行展示。 Step 306 , according to the corrected actual geometric errors of all the grid display layers, select a grid display layer corresponding to the field of view in the three-dimensional model of the scene for display.
在本申请实施例中,由于在不同展示条件下,对场景三维模型中各个网格展示层的网格区块的实际几何误差进行了对应修改,则可以通过主动改变网格展示层的网格区块的实际几何误差的手段,使得展示视窗可以主动加载符合当前展示条件需求的网格展示层进行展示,提高了硬件资源利用率和展示效率。In the embodiment of the present application, since the actual geometric errors of the grid blocks of each grid display layer in the three-dimensional model of the scene are correspondingly modified under different display conditions, it is possible to actively change the grid of the grid display layer. By means of the actual geometric error of the block, the display window can actively load the grid display layer that meets the requirements of the current display conditions for display, which improves the utilization rate of hardware resources and the display efficiency.
例如,参照图4,网格展示层m0为最精细网格展示层,实际几何误差为0.5,共有16个网格区块;网格展示层m1为适中网格展示层,实际几何误差为1,共有4个网格区块;网格展示层m2为最粗糙网格展示层,实际几何误差为2,共有1个网格区块。其中,每个网格区块消耗10M显存。For example, referring to FIG. 4 , the grid display layer m0 is the finest grid display layer, the actual geometric error is 0.5, and there are 16 grid blocks in total; the grid display layer m1 is the moderate grid display layer, and the actual geometric error is 1 , a total of 4 grid blocks; the grid display layer m2 is the roughest grid display layer, the actual geometric error is 2, and there is a total of 1 grid block. Among them, each grid block consumes 10M video memory.
若展示视窗当前的视野范围对应的目标几何误差为1,实际几何误差最接近目标几何误差的目标网格展示层为网格展示层m1,则网格展示层m1的四块网格区块会被选中待加载,所消耗的总显存为40M,假设此时电子设备的剩余空闲显存为20M,无法支持网格展示层m1的加载展示,则电子设备可以统一将所有网格展示层的网格区块的实际几何误差除以2,使得网格展示层m0的实际几何误差变为0.25;网格展示层m1的实际几何误差变为0.5;网格展示层m2的实际几何误差变为1,修改之后,实际几何误差最接近目标几何误差的目标网格展示层为网格展示层m2,加载显示网格展示层m2仅需要10M显存,电子设备的剩余空闲显存完全够用。If the target geometric error corresponding to the current field of view of the display window is 1, and the target grid display layer with the actual geometric error closest to the target geometric error is the grid display layer m1, the four grid blocks of the grid display layer m1 will It is selected to be loaded, and the total video memory consumed is 40M. Assuming that the remaining free video memory of the electronic device is 20M at this time, and the loading display of the grid display layer m1 cannot be supported, the electronic device can uniformly display the grids of all grid display layers. The actual geometric error of the block is divided by 2, so that the actual geometric error of the grid display layer m0 becomes 0.25; the actual geometric error of the grid display layer m1 becomes 0.5; the actual geometric error of the grid display layer m2 becomes 1, After the modification, the target grid display layer with the actual geometric error closest to the target geometric error is the grid display layer m2. Only 10M video memory is required to load the display grid display layer m2, and the remaining free video memory of the electronic device is completely sufficient.
可选的,步骤306可以包括:Optionally, step 306 may include:
子步骤3061,确定与所述当前视野范围对应的目标几何误差。Sub-step 3061: Determine the target geometric error corresponding to the current field of view.
子步骤3062,根据所述目标几何误差,确定所述场景三维模型中与所述目标几何误差对应的网格展示层,与所述目标几何误差对应的网格展示层为修正后的实际几何误差与所述目标几何误差的差值最小的网格展示层。Sub-step 3062, according to the target geometric error, determine the grid display layer corresponding to the target geometric error in the scene 3D model, and the grid display layer corresponding to the target geometric error is the corrected actual geometric error The grid presentation layer with the smallest difference from the target geometric error.
子步骤3061-3062可以参照上述步骤202-203,此处不再赘述。Sub-steps 3061-3062 may refer to the above-mentioned steps 202-203, which will not be repeated here.
可选的,所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第四预设阈值;所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于或等于第五预设阈值;其中,所述第四预设阈值小于或等于所述第五预设阈值。对于精细展示条件和粗糙展示条件的相关描述可以参照上述图3实施例,此处不再赘述。Optionally, the fine display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold; the rough display conditions include: the target resource amount The sum of the resource amount currently used by the electronic device is greater than or equal to a fifth preset threshold; wherein, the fourth preset threshold is less than or equal to the fifth preset threshold. For the relevant descriptions of the fine display conditions and the rough display conditions, reference may be made to the above-mentioned embodiment in FIG. 3 , which will not be repeated here.
综上,本申请实施例提供的一种模型的展示方法,通过几何误差来使得场景三维模型的各个网格展示层的展示精细度得到了具体量化,并且,根据加载场景三维模型的电子设备的具体硬件条件,本申请可以在不同展示条件下,对场景三维模型中各个网格展示层的网格区块的实际几何误差进行了对应修改,则可以通过主动改变网格展示层的网格区块的实际几何误差的手段,使得展示视窗可以主动加载符合当前展示条件需求的网格展示层进行展示,提高了硬件资源利用率和展示效率。To sum up, a method for displaying a model provided by this embodiment of the present application specifically quantifies the display fineness of each grid display layer of a three-dimensional scene model through geometric errors. For specific hardware conditions, the present application can make corresponding modifications to the actual geometric errors of the grid blocks of each grid display layer in the three-dimensional model of the scene under different display conditions. By means of the actual geometric error of the block, the display window can actively load the grid display layer that meets the requirements of the current display conditions for display, which improves the utilization rate of hardware resources and the display efficiency.
图7是本申请实施例提供的一种模型的展示装置的框图,如图7所示,该模型的展示装置400可以包括:存储器401和处理器402;FIG. 7 is a block diagram of an apparatus for displaying a model provided by an embodiment of the present application. As shown in FIG. 7 , the apparatus for displaying a model 400 may include: a memory 401 and a processor 402;
所述存储器401用于,获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;The memory 401 is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
所述处理器402用于:The processor 402 is used to:
根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;According to the field of view, determining the target mesh display layer to be loaded in the three-dimensional model of the scene;
计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示;According to the target resource amount, select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
其中,一个或者多个网格展示层包括:所述目标网格展示层,比所述目标网格展示层更精细的第一网格展示层,或者比所述目标网格展示层更粗糙 的第二网格展示层;Wherein, the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
所述第一网格展示层的中任意网格区块的实际几何误差小于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer;
所述第二网格展示层的中任意网格区块的实际几何误差大于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer;
所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离。The actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
可选的,所述处理器具体用于:Optionally, the processor is specifically used for:
在所述目标资源量满足精细展示条件的情况下,选取所述第一网格展示层中的部分或全部网格区块替换所述目标网格展示层的对应网格区块;Selecting some or all of the grid blocks in the first grid display layer to replace the corresponding grid blocks of the target grid display layer when the target resource amount satisfies the fine display condition;
通过所述展示视窗将替换后的目标网格展示层包括的所有网格区块作为目标网格区块进行显示。All grid blocks included in the replaced target grid display layer are displayed as target grid blocks through the display window.
可选的,所述处理器还用于:Optionally, the processor is also used for:
在所述目标资源量满足粗糙展示条件的情况下,通过所述展示视窗将所述第二网格展示层包括的所有网格区块作为目标网格区块进行显示。In the case that the target resource amount satisfies the rough display condition, all grid blocks included in the second grid display layer are displayed as target grid blocks through the display window.
可选的,所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第一预设阈值;Optionally, the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a first preset threshold;
所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于第二预设阈值;The rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than a second preset threshold;
其中,所述第一预设阈值小于或等于所述第二预设阈值。Wherein, the first preset threshold is less than or equal to the second preset threshold.
可选的,所述电子设备加载所述替换后的目标网格展示层所需的资源量,与当前的所述已使用资源量之和小于或等于所述第二预设阈值。Optionally, the sum of the resource amount required by the electronic device to load the replaced target grid display layer and the current used resource amount is less than or equal to the second preset threshold.
可选的,所述处理器还用于:若所述电子设备加载所述第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第一预设阈值,则从所述场景三维模型中选取第三网格展示层,所述第三网格展示层中任意网格区块的实际几何误差小于所述第二网格展示层的中任意网格区块的实际几何误差;Optionally, the processor is further configured to: if the amount of resources required by the electronic device to load the second grid display layer and the current amount of used resources is less than the first preset threshold, then select a third grid display layer from the three-dimensional model of the scene, and the actual geometric error of any grid block in the third grid display layer is smaller than any grid in the second grid display layer. The actual geometric error of the block;
选取所述第三网格展示层中的部分或全部网格区块替换所述第二网格展示层的对应网格区块;selecting some or all of the grid blocks in the third grid display layer to replace the corresponding grid blocks of the second grid display layer;
通过所述展示视窗将替换后的第二网格展示层包括的所有网格区块作为目标网格区块进行显示;Display all grid blocks included in the replaced second grid display layer as target grid blocks through the display window;
其中,所述电子设备加载所述替换后的第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第二预设阈值。Wherein, the sum of the resource amount required by the electronic device to load the replaced second grid display layer and the current used resource amount is less than the second preset threshold.
可选的,所述处理器具体用于:Optionally, the processor is specifically used for:
确定与所述视野范围对应的目标几何误差;determining a target geometric error corresponding to the field of view;
根据所述目标几何误差,确定所述场景三维模型中的目标网格展示层,所述目标网格展示层为实际几何误差与所述目标几何误差的差值最小的网格展示层。According to the target geometric error, a target grid display layer in the three-dimensional model of the scene is determined, and the target grid display layer is a grid display layer with the smallest difference between the actual geometric error and the target geometric error.
可选的,所述处理器具体用于:Optionally, the processor is specifically used for:
根据所述目标几何误差与所述电子设备的显示屏的屏幕分辨率,确定所述目标资源量。The target resource amount is determined according to the target geometric error and the screen resolution of the display screen of the electronic device.
可选的,所述处理器具体用于:Optionally, the processor is specifically used for:
计算所述目标网格展示层中每个网格区块的误差比值,所述误差比值为所述网格区块的实际几何误差与所述网格区块的期望误差的比值;calculating the error ratio of each grid block in the target grid display layer, the error ratio being the ratio of the actual geometric error of the grid block to the expected error of the grid block;
按照所述目标网格展示层的网格区块的误差比值从大到小的顺序,依次将所述目标网格展示层中的网格区块替换为所述第一网格展示层中的对应网格区块,直至所述电子设备当前的剩余资源量小于或等于第三预设阈值时停止替换。According to the order of the error ratios of the grid blocks of the target grid display layer from large to small, the grid blocks in the target grid display layer are sequentially replaced with Corresponding to the grid block, the replacement is stopped until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold.
可选的,所述网格区块的期望误差包括:所述电子设备的屏幕分辨率的宽度与所述网格区块到视点的距离之间的比值。Optionally, the expected error of the grid block includes: a ratio between the width of the screen resolution of the electronic device and the distance from the grid block to the viewpoint.
综上,本申请实施例提供的模型的展示装置,通过几何误差来使得场景三维模型的各个网格展示层的展示精细度得到了具体量化,并且,根据加载场景三维模型的电子设备的具体硬件条件,本申请可以在电子设备的硬件资源不足加载待加载的目标网格展示层的情况下,从场景三维模型中选取比目标网格展示层的网格区块更粗糙的目标网格区块进行加载展示,从而使得场景三维模型在电子设备的硬件资源较差的情况下可以正常加载;在电子设备的硬件资源充裕的情况下,本申请可以从场景三维模型中选取比目标网格展示层的网格区块更精细的目标网格区块进行加载展示,从而使得场景三维模 型在电子设备的硬件资源充裕的情况下,利用电子设备的硬件资源优势,将场景三维模型进行更精细化展示,提升展示效果。In summary, the model display device provided by the embodiments of the present application quantifies the display fineness of each grid display layer of the three-dimensional scene model through geometric errors. Condition, the present application can select a target grid block that is rougher than the grid block of the target grid display layer from the three-dimensional model of the scene when the hardware resources of the electronic device are insufficient to load the target grid display layer to be loaded Loading and displaying is performed, so that the scene 3D model can be loaded normally when the hardware resources of the electronic device are poor; when the hardware resources of the electronic device are abundant, the present application can select a higher-than-target grid display layer from the scene 3D model The 3D scene model can be displayed in a more refined manner by taking advantage of the hardware resources of the electronic device when the hardware resources of the electronic device are abundant. , to improve the display effect.
图8是本申请实施例提供的一种模型的展示装置的框图,如图8所示,该模型的展示装置500可以包括:存储器501和处理器502;FIG. 8 is a block diagram of an apparatus for displaying a model provided by an embodiment of the present application. As shown in FIG. 8 , the apparatus for displaying a model 500 may include: a memory 501 and a processor 502;
所述存储器501用于,获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;The memory 501 is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
所述处理器502用于:根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;The processor 502 is configured to: determine, according to the field of view, a target mesh display layer to be loaded in the three-dimensional model of the scene;
计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
在所述目标资源量满足精细展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差增大,所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离;In the case that the target resource amount satisfies the fine display condition, the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
在所述目标资源量满足粗糙展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差减小;In the case that the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
根据修正后的所有所述网格展示层的实际几何误差,选取所述场景三维模型中与所述视野范围对应的网格展示层进行展示。According to the corrected actual geometric errors of all the grid display layers, a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
可选的,所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第四预设阈值;Optionally, the fine display condition includes: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold;
所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于或等于第五预设阈值;The rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than or equal to a fifth preset threshold;
其中,所述第四预设阈值小于或等于所述第五预设阈值。Wherein, the fourth preset threshold is less than or equal to the fifth preset threshold.
可选的,所述处理器具体用于:Optionally, the processor is specifically used for:
确定与所述当前视野范围对应的目标几何误差;determining a target geometric error corresponding to the current field of view;
根据所述目标几何误差,确定所述场景三维模型中与所述目标几何误差对应的网格展示层,与所述目标几何误差对应的网格展示层为修正后的实际几何误差与所述目标几何误差的差值最小的网格展示层。According to the target geometric error, the grid display layer corresponding to the target geometric error in the three-dimensional model of the scene is determined, and the grid display layer corresponding to the target geometric error is the corrected actual geometric error and the target. The grid display layer with the smallest difference in geometric error.
综上,本申请实施例提供的模型的展示装置,通过几何误差来使得场景 三维模型的各个网格展示层的展示精细度得到了具体量化,并且,根据加载场景三维模型的电子设备的具体硬件条件,本申请可以在不同展示条件下,对场景三维模型中各个网格展示层的网格区块的实际几何误差进行了对应修改,则可以通过主动改变网格展示层的网格区块的实际几何误差的手段,使得展示视窗可以主动加载符合当前展示条件需求的网格展示层进行展示,提高了硬件资源利用率和展示效率。In summary, the model display device provided by the embodiments of the present application quantifies the display fineness of each grid display layer of the three-dimensional scene model through geometric errors. Condition, the present application can, under different display conditions, correspondingly modify the actual geometric errors of the grid blocks of each grid display layer in the three-dimensional model of the scene, and then can actively change the grid blocks of the grid display layer. The actual geometric error means that the display window can actively load the grid display layer that meets the current display condition requirements for display, which improves the utilization rate of hardware resources and the display efficiency.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述模型的展示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned model display method embodiment can be achieved, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disk and so on.
存储器可以为外部控制终端与模型的展示装置连接的接口。例如,外部控制终端可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的控制终端的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。存储器可以用于接收来自外部控制终端的输入(例如,数据信息、电力等等)并且将接收到的输入传输到模型的展示装置内的一个或多个元件或者可以用于在模型的展示装置和外部控制终端之间传输数据。The memory can be an interface for connecting the external control terminal with the display device of the model. For example, the external control terminal may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a control terminal with an identification module, an audio input /Output (I/O) ports, video I/O ports, headphone ports, and more. The memory may be used to receive input (eg, data information, power, etc.) from an external control terminal and transmit the received input to one or more elements within the model's display device or may be used in the model's display device and Transfer data between external control terminals.
例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。For example at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理器是控制终端的控制中心,利用各种接口和线路连接整个控制终端的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行控制终端的各种功能和处理数据,从而对控制终端进行整体监控。处理器可包括一个或多个处理单元;优选的,处理器可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器中。The processor is the control center of the control terminal. It uses various interfaces and lines to connect various parts of the entire control terminal, and executes control by running or executing the software programs and/or modules stored in the memory and calling the data stored in the memory. Various functions of the terminal and processing data, so as to carry out overall monitoring of the control terminal. The processor may include one or more processing units; preferably, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor Mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.
本领域内的技术人员应明白,本申请的实施例可提供为方法、控制终端、 或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, a control terminal, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、终端设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的控制终端。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal equipment to produce a machine that causes the instructions to be executed by the processor of the computer or other programmable data processing terminal equipment A control terminal is generated for implementing the functions specified in a flow or flow of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令控制终端的制造品,该指令控制终端实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising the instruction to control the terminal, The instruction controls the terminal to implement the function specified in one flow or multiple flows of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby executing on the computer or other programmable terminal equipment The instructions executed on the above provide steps for implementing the functions specified in the flowchart or blocks and/or the block or blocks of the block diagrams.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
以上对本申请进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The application has been introduced in detail above, and specific examples are used to illustrate the principles and implementations of the application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the application; According to the idea of the present application, there will be changes in the specific embodiments and application scope for those skilled in the art. To sum up, the content of this specification should not be construed as a limitation on the present application.

Claims (28)

  1. 一种模型的展示方法,其特征在于,所述方法包括:A method for displaying a model, the method comprising:
    获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;obtaining the current field of view of the display window for displaying the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
    根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;According to the field of view, determining the target mesh display layer to be loaded in the three-dimensional model of the scene;
    计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
    根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示;According to the target resource amount, select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
    其中,一个或者多个网格展示层包括:所述目标网格展示层,比所述目标网格展示层更精细的第一网格展示层,或者比所述目标网格展示层更粗糙的第二网格展示层;Wherein, the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
    所述第一网格展示层的中任意网格区块的实际几何误差小于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer;
    所述第二网格展示层的中任意网格区块的实际几何误差大于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer;
    所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离。The actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
  2. 根据权利要求1所述的方法,其特征在于,所述根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示,包括:The method according to claim 1, wherein, according to the target resource amount, a plurality of target grid blocks are selected from one or more grid display layers of the three-dimensional model of the scene, and the selected The target grid block is displayed in the loading window, including:
    在所述目标资源量满足精细展示条件的情况下,选取所述第一网格展示层中的部分或全部网格区块替换所述目标网格展示层的对应网格区块;Selecting some or all of the grid blocks in the first grid display layer to replace the corresponding grid blocks of the target grid display layer when the target resource amount satisfies the fine display condition;
    通过所述展示视窗将替换后的目标网格展示层包括的所有网格区块作为目标网格区块进行显示。All grid blocks included in the replaced target grid display layer are displayed as target grid blocks through the display window.
  3. 根据权利要求2所述的方法,其特征在于,在所述计算所述电子设备加载所述目标网格展示层所需的目标资源量之后,所述方法还包括:The method according to claim 2, wherein after calculating the target resource amount required by the electronic device to load the target grid presentation layer, the method further comprises:
    在所述目标资源量满足粗糙展示条件的情况下,通过所述展示视窗将所述第二网格展示层包括的所有网格区块作为目标网格区块进行显示。In the case that the target resource amount satisfies the rough display condition, all grid blocks included in the second grid display layer are displayed as target grid blocks through the display window.
  4. 根据权利要求3所述的方法,其特征在于,所述精细展示条件包括: 所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第一预设阈值;The method according to claim 3, wherein the fine display condition comprises: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a first preset threshold;
    所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于第二预设阈值;The rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than a second preset threshold;
    其中,所述第一预设阈值小于或等于所述第二预设阈值。Wherein, the first preset threshold is less than or equal to the second preset threshold.
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备加载所述替换后的目标网格展示层所需的资源量,与当前的所述已使用资源量之和小于或等于所述第二预设阈值。The method according to claim 4, wherein the sum of the resource amount required by the electronic device to load the replaced target grid display layer and the current used resource amount is less than or equal to the the second preset threshold.
  6. 根据权利要求4所述的方法,其特征在于,在所述通过所述展示视窗将所述第二网格展示层包括的所有网格区块作为目标网格区块进行显示之后,所述方法还包括:The method according to claim 4, wherein after displaying all grid blocks included in the second grid display layer as target grid blocks through the display window, the method Also includes:
    若所述电子设备加载所述第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第一预设阈值,则从所述场景三维模型中选取第三网格展示层,所述第三网格展示层中任意网格区块的实际几何误差小于所述第二网格展示层的中任意网格区块的实际几何误差;If the sum of the amount of resources required by the electronic device to load the second grid display layer and the current amount of used resources is less than the first preset threshold, select the first resource from the three-dimensional model of the scene. Three grid display layers, the actual geometric error of any grid block in the third grid display layer is smaller than the actual geometric error of any grid block in the second grid display layer;
    选取所述第三网格展示层中的部分或全部网格区块替换所述第二网格展示层的对应网格区块;selecting some or all of the grid blocks in the third grid display layer to replace the corresponding grid blocks of the second grid display layer;
    通过所述展示视窗将替换后的第二网格展示层包括的所有网格区块作为目标网格区块进行显示;Display all grid blocks included in the replaced second grid display layer as target grid blocks through the display window;
    其中,所述电子设备加载所述替换后的第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第二预设阈值。Wherein, the sum of the resource amount required by the electronic device to load the replaced second grid display layer and the current used resource amount is less than the second preset threshold.
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层,包括:The method according to claim 1, wherein the determining the target mesh display layer to be loaded in the three-dimensional model of the scene according to the field of view comprises:
    确定与所述视野范围对应的目标几何误差;determining a target geometric error corresponding to the field of view;
    根据所述目标几何误差,确定所述场景三维模型中的目标网格展示层,所述目标网格展示层为实际几何误差与所述目标几何误差的差值最小的网格展示层。According to the target geometric error, a target grid display layer in the three-dimensional model of the scene is determined, and the target grid display layer is a grid display layer with the smallest difference between the actual geometric error and the target geometric error.
  8. 根据权利要求7所述的方法,其特征在于,所述计算所述电子设备加载所述目标网格展示层所需的目标资源量,包括:The method according to claim 7, wherein the calculating the target resource amount required by the electronic device to load the target grid presentation layer comprises:
    根据所述目标几何误差与所述电子设备的显示屏的屏幕分辨率,确定所述目标资源量。The target resource amount is determined according to the target geometric error and the screen resolution of the display screen of the electronic device.
  9. 根据权利要求2所述的方法,其特征在于,所述选取所述第一网格展示层中的部分或全部网格区块替换所述目标网格展示层的对应网格区块,包括:The method according to claim 2, wherein the selecting part or all of the grid blocks in the first grid display layer to replace the corresponding grid blocks of the target grid display layer comprises:
    计算所述目标网格展示层中每个网格区块的误差比值,所述误差比值为所述网格区块的实际几何误差与所述网格区块的期望误差的比值;calculating the error ratio of each grid block in the target grid display layer, the error ratio being the ratio of the actual geometric error of the grid block to the expected error of the grid block;
    按照所述目标网格展示层的网格区块的误差比值从大到小的顺序,依次将所述目标网格展示层中的网格区块替换为所述第一网格展示层中的对应网格区块,直至所述电子设备当前的剩余资源量小于或等于第三预设阈值时停止替换。According to the order of the error ratios of the grid blocks of the target grid display layer from large to small, the grid blocks in the target grid display layer are sequentially replaced with Corresponding to the grid block, the replacement is stopped until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold.
  10. 根据权利要求9所述的方法,其特征在于,所述网格区块的期望误差包括:所述电子设备的屏幕分辨率的宽度与所述网格区块到视点的距离之间的比值。The method of claim 9, wherein the expected error of the grid block comprises: a ratio between the width of the screen resolution of the electronic device and the distance from the grid block to the viewpoint.
  11. 一种模型的展示方法,其特征在于,所述方法包括:A method for displaying a model, the method comprising:
    获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;obtaining the current field of view of the display window for displaying the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid block;
    根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;According to the field of view, determining the target mesh display layer to be loaded in the three-dimensional model of the scene;
    计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
    在所述目标资源量满足精细展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差增大,所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离;In the case that the target resource amount satisfies the fine display condition, the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
    在所述目标资源量满足粗糙展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差减小;In the case that the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
    根据修正后的所有所述网格展示层的实际几何误差,选取所述场景三维模型中与所述视野范围对应的网格展示层进行展示。According to the corrected actual geometric errors of all the grid display layers, a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
  12. 根据权利要求11所述的方法,其特征在于,The method of claim 11, wherein:
    所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第四预设阈值;The fine display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold;
    所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于或等于第五预设阈值;The rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than or equal to a fifth preset threshold;
    其中,所述第四预设阈值小于或等于所述第五预设阈值。Wherein, the fourth preset threshold is less than or equal to the fifth preset threshold.
  13. 根据权利要求11所述的方法,其特征在于,所述根据修正后的所有所述网格展示层的实际几何误差,选取所述场景三维模型中与所述视野范围对应的网格展示层进行展示,包括:The method according to claim 11, wherein the grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected according to the corrected actual geometric errors of all the grid display layers. showcase, including:
    确定与所述当前视野范围对应的目标几何误差;determining a target geometric error corresponding to the current field of view;
    根据所述目标几何误差,确定所述场景三维模型中与所述目标几何误差对应的网格展示层,与所述目标几何误差对应的网格展示层为修正后的实际几何误差与所述目标几何误差的差值最小的网格展示层。According to the target geometric error, the grid display layer corresponding to the target geometric error in the three-dimensional model of the scene is determined, and the grid display layer corresponding to the target geometric error is the corrected actual geometric error and the target. The grid display layer with the smallest difference in geometric error.
  14. 一种模型的展示装置,其特征在于,所述装置包括:存储器和处理器;A model display device, characterized in that the device comprises: a memory and a processor;
    所述存储器用于,获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;The memory is used to obtain the current field of view of a display window used to display the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid area yuan;
    所述处理器用于:The processor is used to:
    根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;According to the field of view, determining the target mesh display layer to be loaded in the three-dimensional model of the scene;
    计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
    根据目标资源量,从所述场景三维模型的一个或者多个网格展示层中,选择多个目标网格区块,将选择的所述目标网格区块在所述加载视窗展示;According to the target resource amount, select a plurality of target grid blocks from one or more grid display layers of the three-dimensional model of the scene, and display the selected target grid blocks in the loading window;
    其中,一个或者多个网格展示层包括:所述目标网格展示层,比所述目标网格展示层更精细的第一网格展示层,或者比所述目标网格展示层更粗糙的第二网格展示层;Wherein, the one or more grid display layers include: the target grid display layer, a first grid display layer finer than the target grid display layer, or a coarser grid display layer than the target grid display layer The second grid display layer;
    所述第一网格展示层的中任意网格区块的实际几何误差小于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the first grid display layer is smaller than the actual geometric error of any grid block in the target grid display layer;
    所述第二网格展示层的中任意网格区块的实际几何误差大于所述目标网格展示层的中任意网格区块的实际几何误差;The actual geometric error of any grid block in the second grid display layer is greater than the actual geometric error of any grid block in the target grid display layer;
    所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离。The actual geometric error is used to reflect the actual geometric distance between the grid surface of the grid display layer and the surface of the three-dimensional model of the scene.
  15. 根据权利要求14所述的装置,其特征在于,所述处理器具体用于:The apparatus according to claim 14, wherein the processor is specifically configured to:
    在所述目标资源量满足精细展示条件的情况下,选取所述第一网格展示层中的部分或全部网格区块替换所述目标网格展示层的对应网格区块;Selecting some or all of the grid blocks in the first grid display layer to replace the corresponding grid blocks of the target grid display layer when the target resource amount satisfies the fine display condition;
    通过所述展示视窗将替换后的目标网格展示层包括的所有网格区块作为目标网格区块进行显示。All grid blocks included in the replaced target grid display layer are displayed as target grid blocks through the display window.
  16. 根据权利要求15所述的装置,其特征在于,所述处理器还用于:The apparatus of claim 15, wherein the processor is further configured to:
    在所述目标资源量满足粗糙展示条件的情况下,通过所述展示视窗将所述第二网格展示层包括的所有网格区块作为目标网格区块进行显示。In the case that the target resource amount satisfies the rough display condition, all grid blocks included in the second grid display layer are displayed as target grid blocks through the display window.
  17. 根据权利要求16所述的装置,其特征在于,所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第一预设阈值;The apparatus according to claim 16, wherein the fine display condition comprises: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a first preset threshold;
    所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于第二预设阈值;The rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than a second preset threshold;
    其中,所述第一预设阈值小于或等于所述第二预设阈值。Wherein, the first preset threshold is less than or equal to the second preset threshold.
  18. 根据权利要求17所述的装置,其特征在于,所述电子设备加载所述替换后的目标网格展示层所需的资源量,与当前的所述已使用资源量之和小于或等于所述第二预设阈值。The apparatus according to claim 17, wherein the sum of the resource amount required by the electronic device to load the replaced target grid display layer and the current used resource amount is less than or equal to the the second preset threshold.
  19. 根据权利要求17所述的装置,其特征在于,所述处理器还用于:若所述电子设备加载所述第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第一预设阈值,则从所述场景三维模型中选取第三网格展示层,所述第三网格展示层中任意网格区块的实际几何误差小于所述第二网格展示层的中任意网格区块的实际几何误差;The apparatus according to claim 17, wherein the processor is further configured to: if the amount of resources required by the electronic device to load the second grid display layer, is related to the current amount of used resources The sum is less than the first preset threshold, then select a third grid display layer from the three-dimensional model of the scene, and the actual geometric error of any grid block in the third grid display layer is smaller than the second The actual geometric error of any grid block in the grid display layer;
    选取所述第三网格展示层中的部分或全部网格区块替换所述第二网格展示层的对应网格区块;selecting some or all of the grid blocks in the third grid display layer to replace the corresponding grid blocks of the second grid display layer;
    通过所述展示视窗将替换后的第二网格展示层包括的所有网格区块作为目标网格区块进行显示;Display all grid blocks included in the replaced second grid display layer as target grid blocks through the display window;
    其中,所述电子设备加载所述替换后的第二网格展示层所需的资源量,与当前的所述已使用资源量之和小于所述第二预设阈值。Wherein, the sum of the resource amount required by the electronic device to load the replaced second grid display layer and the current used resource amount is less than the second preset threshold.
  20. 根据权利要求14所述的装置,其特征在于,所述处理器具体用于:The apparatus according to claim 14, wherein the processor is specifically configured to:
    确定与所述视野范围对应的目标几何误差;determining a target geometric error corresponding to the field of view;
    根据所述目标几何误差,确定所述场景三维模型中的目标网格展示层,所述目标网格展示层为实际几何误差与所述目标几何误差的差值最小的网格展示层。According to the target geometric error, a target grid display layer in the three-dimensional model of the scene is determined, and the target grid display layer is a grid display layer with the smallest difference between the actual geometric error and the target geometric error.
  21. 根据权利要求20所述的装置,其特征在于,所述处理器具体用于:The apparatus according to claim 20, wherein the processor is specifically configured to:
    根据所述目标几何误差与所述电子设备的显示屏的屏幕分辨率,确定所述目标资源量。The target resource amount is determined according to the target geometric error and the screen resolution of the display screen of the electronic device.
  22. 根据权利要求15述的装置,其特征在于,所述处理器具体用于:The apparatus according to claim 15, wherein the processor is specifically configured to:
    计算所述目标网格展示层中每个网格区块的误差比值,所述误差比值为所述网格区块的实际几何误差与所述网格区块的期望误差的比值;calculating the error ratio of each grid block in the target grid display layer, the error ratio being the ratio of the actual geometric error of the grid block to the expected error of the grid block;
    按照所述目标网格展示层的网格区块的误差比值从大到小的顺序,依次将所述目标网格展示层中的网格区块替换为所述第一网格展示层中的对应网格区块,直至所述电子设备当前的剩余资源量小于或等于第三预设阈值时停止替换。According to the order of the error ratios of the grid blocks of the target grid display layer from large to small, the grid blocks in the target grid display layer are sequentially replaced with Corresponding to the grid block, the replacement is stopped until the current remaining resource amount of the electronic device is less than or equal to the third preset threshold.
  23. 根据权利要求22的装置,其特征在于,所述网格区块的期望误差包括:所述电子设备的屏幕分辨率的宽度与所述网格区块到视点的距离之间的比值。The apparatus of claim 22, wherein the expected error of the grid block comprises: a ratio between the width of the screen resolution of the electronic device and the distance from the grid block to the viewpoint.
  24. 一种模型的展示装置,其特征在于,所述装置包括:存储器和处理器;A model display device, characterized in that the device comprises: a memory and a processor;
    所述存储器用于,获取用于展示所述场景三维模型的展示视窗当前的视野范围;所述场景三维模型包括多个网格展示层,每个所述网格展示层包括至少一个网格区块;The memory is used to obtain the current field of view of a display window used for displaying the three-dimensional model of the scene; the three-dimensional model of the scene includes a plurality of grid display layers, and each of the grid display layers includes at least one grid area yuan;
    所述处理器用于:根据所述视野范围,确定所述场景三维模型中待加载的目标网格展示层;The processor is configured to: determine, according to the field of view, a target mesh display layer to be loaded in the three-dimensional model of the scene;
    计算所述电子设备加载所述目标网格展示层所需的目标资源量;calculating the target resource amount required by the electronic device to load the target grid presentation layer;
    在所述目标资源量满足精细展示条件的情况下,则将所述场景三维模型的所有网格展示层的实际几何误差增大,所述实际几何误差用于反映网格展示层的网格面相对于所述场景三维模型的表面之间实际的几何距离;In the case that the target resource amount satisfies the fine display condition, the actual geometric errors of all grid display layers of the scene 3D model are increased, and the actual geometric errors are used to reflect the grid surface phase of the grid display layer. for the actual geometric distance between the surfaces of the three-dimensional model of the scene;
    在所述目标资源量满足粗糙展示条件的情况下,则将所述场景三维模型 的所有网格展示层的实际几何误差减小;In the case that the target resource amount satisfies the rough display conditions, the actual geometric errors of all grid display layers of the three-dimensional model of the scene are reduced;
    根据修正后的所有所述网格展示层的实际几何误差,选取所述场景三维模型中与所述视野范围对应的网格展示层进行展示。According to the corrected actual geometric errors of all the grid display layers, a grid display layer corresponding to the field of view in the three-dimensional model of the scene is selected for display.
  25. 根据权利要求24的装置,其特征在于,所述精细展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和小于或等于第四预设阈值;The apparatus according to claim 24, wherein the fine display condition comprises: the sum of the target resource amount and the currently used resource amount of the electronic device is less than or equal to a fourth preset threshold;
    所述粗糙展示条件包括:所述目标资源量与所述电子设备当前的已使用资源量之和大于或等于第五预设阈值;The rough display conditions include: the sum of the target resource amount and the currently used resource amount of the electronic device is greater than or equal to a fifth preset threshold;
    其中,所述第四预设阈值小于或等于所述第五预设阈值。Wherein, the fourth preset threshold is less than or equal to the fifth preset threshold.
  26. 根据权利要求24的装置,其特征在于,所述处理器具体用于:The apparatus according to claim 24, wherein the processor is specifically configured to:
    确定与所述当前视野范围对应的目标几何误差;determining a target geometric error corresponding to the current field of view;
    根据所述目标几何误差,确定所述场景三维模型中与所述目标几何误差对应的网格展示层,与所述目标几何误差对应的网格展示层为修正后的实际几何误差与所述目标几何误差的差值最小的网格展示层。According to the target geometric error, the grid display layer corresponding to the target geometric error in the three-dimensional model of the scene is determined, and the grid display layer corresponding to the target geometric error is the corrected actual geometric error and the target. The grid display layer with the smallest difference in geometric error.
  27. 一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至13中任一项所述的模型的展示方法。An electronic device, characterized by comprising a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the method as claimed in claim 1 A display method of the model described in any one of to 13.
  28. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得所述计算机执行权利要求1至13中任一项所述的模型的展示方法。A computer-readable storage medium, characterized by comprising instructions that, when executed on a computer, cause the computer to execute the method for presenting a model according to any one of claims 1 to 13.
PCT/CN2020/119534 2020-09-30 2020-09-30 Model display method, apparatus, electronic device and computer-readable storage medium WO2022067722A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080044432.6A CN114026604A (en) 2020-09-30 2020-09-30 Model display method and device, electronic equipment and computer readable storage medium
PCT/CN2020/119534 WO2022067722A1 (en) 2020-09-30 2020-09-30 Model display method, apparatus, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/119534 WO2022067722A1 (en) 2020-09-30 2020-09-30 Model display method, apparatus, electronic device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2022067722A1 true WO2022067722A1 (en) 2022-04-07

Family

ID=80054413

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/119534 WO2022067722A1 (en) 2020-09-30 2020-09-30 Model display method, apparatus, electronic device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN114026604A (en)
WO (1) WO2022067722A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117422808A (en) * 2023-12-19 2024-01-19 中北数科(河北)科技有限公司 Three-dimensional scene data loading method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895819B (en) * 2022-07-13 2022-09-13 麒砺创新技术(深圳)有限公司 Three-dimensional model intelligent display optimization method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289839A (en) * 2011-08-04 2011-12-21 天津中科遥感信息技术有限公司 Method for efficiently rendering levels of detail for three-dimensional digital city
US20160034137A1 (en) * 2014-07-29 2016-02-04 Autodesk, Inc. Reality capture graphical user interface
CN106599493A (en) * 2016-12-19 2017-04-26 重庆市勘测院 Visual implementation method of BIM model in three-dimensional large scene
CN110264575A (en) * 2019-06-10 2019-09-20 国家电网有限公司 A kind of cable three-dimensional display method
CN110276820A (en) * 2019-06-24 2019-09-24 重庆梅安森科技股份有限公司 GIS model optimization method and system based on LOD tissue and dispatching method
CN110555085A (en) * 2018-03-29 2019-12-10 中国石油化工股份有限公司 Three-dimensional model loading method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289839A (en) * 2011-08-04 2011-12-21 天津中科遥感信息技术有限公司 Method for efficiently rendering levels of detail for three-dimensional digital city
US20160034137A1 (en) * 2014-07-29 2016-02-04 Autodesk, Inc. Reality capture graphical user interface
CN106599493A (en) * 2016-12-19 2017-04-26 重庆市勘测院 Visual implementation method of BIM model in three-dimensional large scene
CN110555085A (en) * 2018-03-29 2019-12-10 中国石油化工股份有限公司 Three-dimensional model loading method and device
CN110264575A (en) * 2019-06-10 2019-09-20 国家电网有限公司 A kind of cable three-dimensional display method
CN110276820A (en) * 2019-06-24 2019-09-24 重庆梅安森科技股份有限公司 GIS model optimization method and system based on LOD tissue and dispatching method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117422808A (en) * 2023-12-19 2024-01-19 中北数科(河北)科技有限公司 Three-dimensional scene data loading method and electronic equipment
CN117422808B (en) * 2023-12-19 2024-03-19 中北数科(河北)科技有限公司 Three-dimensional scene data loading method and electronic equipment

Also Published As

Publication number Publication date
CN114026604A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
WO2022067722A1 (en) Model display method, apparatus, electronic device and computer-readable storage medium
US9614782B2 (en) Continuous resource pool balancing
CN110750351B (en) Multi-core task scheduler, multi-core task scheduling method, multi-core task scheduling device and related products
CN106846460B (en) Method and device for realizing three-dimensional BIM image
CN112370783B (en) Virtual object rendering method, device, computer equipment and storage medium
CN111445566B (en) Information processing method and device and computer readable storage medium
CN112181613B (en) Heterogeneous resource distributed computing platform batch task scheduling method and storage medium
WO2023213037A1 (en) Hair virtual model rendering method and apparatus, computer device, and storage medium
CN112002021A (en) Aggregation dotting visualization method and device based on unity3d
CN114443284A (en) Cluster resource load balancing method and device, electronic equipment and medium
CN113791756A (en) Revolution method, storage medium, device and board card
CN110706149B (en) Lightning particle rendering method and device
CN117234712A (en) Computing power resource deployment method, computing power resource deployment device, computer equipment and storage medium
WO2023155348A1 (en) Game data processing method and apparatus, computer device, and storage medium
CN114243681B (en) Power utilization regulation and control method, device, equipment and storage medium of power system
CN115981843A (en) Task scheduling method and device in cloud-edge cooperative power system and computer equipment
CN114996005A (en) Resource scheduling method, device, equipment and medium
CN115454923A (en) Data calculation device, board card, method and storage medium
CN107784674B (en) Method and system for simplifying three-dimensional model
CN112486679A (en) Pod scheduling method, device and equipment for kubernets cluster
CN110008000A (en) Application cluster capacity reduction method and device
CN117278626A (en) Request processing method, device, computer equipment and computer readable storage medium
CN108363736B (en) Storage method, device and storage system of line entity
CN115100364B (en) Visualization method, device, equipment and medium for laser point cloud data of power transmission line
CN116632822A (en) Dynamic adjustment method, device, equipment, medium and product for circuit parameter limit value

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20955747

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20955747

Country of ref document: EP

Kind code of ref document: A1