[go: up one dir, main page]

CN118331740A - Model display method, device, apparatus, storage medium and program product - Google Patents

Model display method, device, apparatus, storage medium and program product Download PDF

Info

Publication number
CN118331740A
CN118331740A CN202410523175.4A CN202410523175A CN118331740A CN 118331740 A CN118331740 A CN 118331740A CN 202410523175 A CN202410523175 A CN 202410523175A CN 118331740 A CN118331740 A CN 118331740A
Authority
CN
China
Prior art keywords
dimensional model
target
resource
display
dynamic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410523175.4A
Other languages
Chinese (zh)
Inventor
罗育林
谭信
孙建
赵敏全
王春龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Digital Platform Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Priority to CN202410523175.4A priority Critical patent/CN118331740A/en
Publication of CN118331740A publication Critical patent/CN118331740A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application relates to a model display method, a model display device, a model display storage medium and a model display program product. The method comprises the following steps: acquiring interaction data of a user aiming at a target three-dimensional model, and determining display demand information of the target three-dimensional model according to the interaction data; according to the display demand information, determining resource demand information of the target three-dimensional model, and distributing processing resources corresponding to the resource demand information for the target three-dimensional model; and displaying the dynamic resources of the target three-dimensional model according to the processing resources so as to visually display the target three-dimensional model. The method can improve the fluency of model display.

Description

Model display method, device, apparatus, storage medium and program product
Technical Field
The present application relates to the field of power grid model interaction technologies, and in particular, to a model display method, apparatus, device, storage medium, and program product.
Background
In the technical field of interaction of power grid power equipment models, three-dimensional model display is increasingly important in the field of user interaction. The three-dimensional model display based on user interaction refers to the process of presenting objects, scenes or concepts in the form of a three-dimensional model by utilizing computer technology and interaction design principles, and realizing adjustment and operation on the three-dimensional model through interaction between a user and the three-dimensional model.
At present, in the process of interaction between a user and a three-dimensional model, a pre-created three-dimensional model is generally sent to the user side, and the pre-created three-dimensional model is displayed on a visual interface of the user side so as to be used for interaction operation between the user and the three-dimensional model.
However, the above-mentioned technique has a problem that the smoothness of model display is low in the process of model display.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a model display method, apparatus, device, storage medium, and program product that can improve the smoothness of model display.
In a first aspect, the present application provides a model display method, including:
acquiring interactive data of a user aiming at a target three-dimensional model, and determining display demand information of the target three-dimensional model according to the interactive data;
according to the display demand information, determining resource demand information of the target three-dimensional model, and distributing processing resources corresponding to the resource demand information for the target three-dimensional model;
And displaying the dynamic resources of the target three-dimensional model according to the processing resources so as to visually display the target three-dimensional model.
In one embodiment, determining the resource requirement information of the target three-dimensional model according to the display requirement information includes:
determining dynamic resource reference information of the target three-dimensional model according to the display demand information, wherein the dynamic resource reference information comprises model file resource information, texture resource information and animation resource information;
And determining resource demand information according to the dynamic resource reference information, wherein the resource demand information is used for indicating the computing resource demand and the storage resource demand.
In one embodiment, the determining the resource requirement information according to the dynamic resource reference information includes:
Determining a first dynamic resource type required by a target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information;
if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than a preset threshold value, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type.
In one embodiment, the display requirement information includes a display effect and a display parameter, and determining the dynamic resource reference information of the target three-dimensional model according to the display requirement information includes:
acquiring a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter;
determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type, wherein the initial allocation strategy comprises the second dynamic resource quantity and the initial allocation strategy of the second dynamic resource type, the second dynamic resource quantity, the resource priority of the second dynamic resource type and the initial resource allocation strategy;
And determining dynamic resource reference information according to the initial allocation strategy and the display effect.
In one embodiment, the displaying the dynamic resource of the target three-dimensional model according to the processing resource includes:
Determining the resource utilization rate according to the size of the processing resource;
if the resource utilization rate is smaller than the utilization rate threshold value, carrying out detail adjustment processing on the target three-dimensional model to obtain a target three-dimensional model with the adjusted details;
And acquiring the three-dimensional model to be displayed according to the processing resources, the dynamic resources and the target three-dimensional model subjected to detail adjustment.
In one embodiment, the obtaining the three-dimensional model to be displayed according to the processing resource, the dynamic resource and the target three-dimensional model after detail adjustment includes:
acquiring a user adjustment requirement input by a user, wherein the user adjustment requirement comprises at least one of a detail adjustment requirement, a visual angle screening requirement and a distance screening requirement;
Screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model;
and loading the dynamic resources into the target three-dimensional model after screening processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the method further includes, before the processing resource is utilized to load the dynamic resource into the target three-dimensional model after the screening processing to obtain the three-dimensional model to be displayed, the method further includes:
Determining model difference information according to the target three-dimensional model after screening and the target three-dimensional model after detail adjustment;
Performing appearance optimization treatment on the target three-dimensional model subjected to the screening treatment according to the model difference information to obtain an optimized target three-dimensional model;
Correspondingly, the method for utilizing the processing resources, loading the dynamic resources into the target three-dimensional model after screening processing to obtain the three-dimensional model to be displayed, comprises the following steps:
And loading the dynamic resources into the target three-dimensional model after optimization processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the method further comprises:
performing compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model after the compression coding treatment, sending the target three-dimensional model after the compression coding treatment to a client, and using the target three-dimensional model after the compression coding treatment for decoding and decompressing the target three-dimensional model after the compression coding treatment by the client to obtain the three-dimensional model to be displayed and performing visual display on the three-dimensional model to be displayed.
In one embodiment, the determining the display requirement information of the target three-dimensional model according to the interaction data includes:
Analyzing and processing the interaction data to determine an interaction mode corresponding to the interaction data, wherein the interaction mode comprises a simple interaction mode or a complex interaction mode;
and determining display requirement information according to the interaction mode, wherein the display requirement information comprises display effects and display parameters corresponding to detail display requirements or display effects and display parameters corresponding to simple display requirements.
In a second aspect, the present application also provides a model display device, which includes:
the acquisition module is used for acquiring interactive data of a user aiming at the target three-dimensional model and determining display demand information of the target three-dimensional model according to the interactive data;
the distribution module is used for determining the resource demand information of the target three-dimensional model according to the display demand information and distributing processing resources corresponding to the resource demand information for the target three-dimensional model;
And the processing module is used for carrying out display processing on the dynamic resources of the target three-dimensional model according to the processing resources so as to carry out visual display on the target three-dimensional model.
In a third aspect, the application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method according to the first aspect described above when the computer program is executed by the processor.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as described in the first aspect above.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method as described in the first aspect above.
According to the model display method, device, equipment, storage medium and program product, the interactive data of the user aiming at the target three-dimensional model is obtained, the display demand information of the target three-dimensional model is determined according to the interactive data, the resource demand information of the target three-dimensional model is determined according to the display demand information, processing resources corresponding to the resource demand information are allocated to the target three-dimensional model, and then the dynamic resources of the target three-dimensional model are displayed according to the processing resources, so that the target three-dimensional model is displayed visually. According to the method, display demand information of the target three-dimensional model is determined according to the interaction data, resource demand information is determined according to the display demand information, display demand information corresponding to different target three-dimensional models can be obtained for different target three-dimensional models, and the display demand information of different target three-dimensional models corresponds to different resource demand information, so that when corresponding processing resources are distributed for the target three-dimensional models according to the resource demand information, different processing resources can be distributed for the different target three-dimensional models by the server, and the distributed processing resources correspond to the display demand information of the target three-dimensional models, namely, each target three-dimensional model can be distributed to the processing resources corresponding to the resource demand information, and when dynamic resources of the target three-dimensional models are displayed and processed according to the processing resources, the problem of resource waste or delay caused by unreasonable processing resource distribution can be effectively avoided, and smoothness of the three-dimensional models in the display processing process is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a diagram of an application environment for a model presentation method in one embodiment;
FIG. 2 is a flow diagram of a model display method in one embodiment;
FIG. 3 is a flow chart of a model display method in another embodiment;
FIG. 4 is a flow chart of a model display method in another embodiment;
FIG. 5 is a flow chart of a model display method in another embodiment;
FIG. 6 is a flow chart of a model display method in another embodiment;
FIG. 7 is a flow chart of a model display method in another embodiment;
FIG. 8 is a flow chart of a model display method in another embodiment;
FIG. 9 is a flow chart of a model display method in another embodiment;
FIG. 10 is a block diagram of a modular display apparatus in one embodiment;
FIG. 11 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
With continuous progress and development of technology, in the field of interaction technology of power grid power equipment models, three-dimensional model display is increasingly important in the field of user interaction. The three-dimensional model display based on user interaction refers to the process of presenting objects, scenes or concepts in the form of a three-dimensional model by utilizing computer technology and interaction design principles, and realizing adjustment and operation on the three-dimensional model through interaction between a user and the three-dimensional model.
At present, in the process of interaction between a user and a three-dimensional model, the traditional technology generally sends a pre-created three-dimensional model to the user side, and displays the pre-created three-dimensional model on a visual interface of the user side so as to allow the user to perform interactive operation with the three-dimensional model.
However, when the three-dimensional model is displayed, problems such as jamming and delay often occur in the conventional technology, particularly when a complex three-dimensional model is displayed, so that the problem of low smoothness of model display exists in the process of model display.
Therefore, the embodiments of the present application provide a model display method, apparatus, device, storage medium, and program product, which can solve the above technical problems.
The model display method provided by the embodiment of the application can be applied to an implementation environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The user sends interactive data to the server 104 through the terminal 102, the server 104 displays the dynamic resources of the target three-dimensional model according to the interactive data, and the server 104 sends the processed target three-dimensional model to the terminal 102 so as to visually display the target three-dimensional model through the terminal 102. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, and tablet computers, and the server 104 may be implemented as a stand-alone server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a model exhibition method is provided, which is taken as an example for the server 104, and the method includes the following steps:
S202, acquiring interaction data of a user aiming at a target three-dimensional model, and determining display demand information of the target three-dimensional model according to the interaction data.
The target three-dimensional model may be a virtual model of power equipment in the power grid, for example, a power tower model, a power transmission line model, a power plant model, a transformer substation model, and the like. The user can perform interactive operation with the target three-dimensional model through the terminal, the interactive operation can comprise operations such as clicking, sliding and inputting of the user, and in the process of interaction between the user and the target three-dimensional model, the terminal records the interactive operation between the user and the target three-dimensional model, so that interactive data of the user aiming at the target three-dimensional model are obtained. The interaction data may include operation information, the operation information may include user click information, user sliding information, and user input information, the user click information may include a click time and a click position when the user performs a click operation, the user sliding information may include a sliding direction and a sliding distance when the user performs a sliding operation, and the user input information may include annotation information input by the user.
In the embodiment of the application, the terminal sends the interactive data of the user aiming at the target three-dimensional model to the server, and the server receives the interactive data of the user aiming at the target three-dimensional model sent by the terminal.
After the server acquires the interactive data of the user aiming at the target three-dimensional model, the server can determine the display requirement information of the target three-dimensional model according to the operation information in the interactive data. The display requirement information can be display information required when the target three-dimensional model is visually displayed, for example, display information required when the target three-dimensional model is displayed in detail, the display requirement information can comprise display effects, display parameters and the like, and the display effects can be display light effects, for example, the display light effects are bright and soft light effects. The display parameters may include display light source position, display light source intensity, and display light source color.
In one possible implementation manner, the server may determine an interaction mode of the user and the target three-dimensional model for the operation information in the interaction data, and determine display information required when the target three-dimensional model is visually displayed according to the interaction mode of the user and the target three-dimensional model.
In another possible implementation manner, the server may input the interaction data into a preset model, the preset model outputs a display tag corresponding to the interaction data, and display information required for visually displaying the target three-dimensional model is determined according to a mapping relationship between the display tag and the display information.
S204, determining the resource demand information of the target three-dimensional model according to the display demand information, and distributing processing resources corresponding to the resource demand information for the target three-dimensional model.
The resource requirement information of the target three-dimensional model is infrastructure resource information required by the server when the target three-dimensional model is processed, and the resource requirement information can comprise computing resource requirement information and storage resource requirement information.
In the embodiment of the application, the server can determine the computing resource demand information and the storage resource demand information of the target three-dimensional model according to the display demand information.
In one possible implementation manner, the server may analyze the display requirement information according to the display requirement information, obtain a plurality of sub-requirement information corresponding to the display requirement information, determine computing resource requirement information and storage resource requirement information required by each sub-requirement information, and determine the computing resource requirement information and the storage resource requirement information as resource requirement information of the target three-dimensional model.
In another possible implementation manner, the server may determine, according to the display requirement information, model resources required for displaying the requirement information, for example, model resources required for achieving a certain display effect in the display requirement information, determine, according to the model resources, computing resource requirement information and storage resource requirement information required for processing the model resources, and determine the computing resource requirement information and the storage resource requirement information as resource requirement information of the target three-dimensional model.
After the server determines the resource demand information of the target three-dimensional model, the server may allocate corresponding processing resources for the target three-dimensional model according to the computing resource demand information and the storage resource demand information, where the processing resources include computing resources and storage resources.
In one possible implementation manner, the server may obtain a current available infrastructure resource, allocate a computing resource with a size similar to the computing resource and a storage resource with a size similar to the storage resource from the available infrastructure resources according to the computing resource size corresponding to the computing resource demand information and the storage resource size corresponding to the storage resource demand information, and use the computing resource and the storage resource with a size similar to the storage resource to process the target three-dimensional model according to the resource demand information.
Therefore, the server can allocate processing resources corresponding to the resource demand information to each target three-dimensional model according to the display demand information corresponding to each target three-dimensional model, and the smoothness of processing the target three-dimensional model is improved.
S206, displaying the dynamic resources of the target three-dimensional model according to the processing resources so as to visually display the target three-dimensional model.
The dynamic resources of the target three-dimensional model refer to model resources required by display processing of the target three-dimensional model, wherein the dynamic resources can comprise model file resources, animation resources and texture resources, the dynamic resources are directly associated with the target three-dimensional model, and the dynamic resources are components necessary for creating and displaying the target three-dimensional model.
In the embodiment of the application, the server can utilize the processing resource to load the dynamic resource into the target three-dimensional model, for example, the animation resource is loaded into the target three-dimensional model, so that the target three-dimensional model can be displayed in an animation mode during display. Before loading the dynamic resource into the target three-dimensional model, the server can preferentially acquire the target three-dimensional model, optionally, the interaction data comprise the target three-dimensional model identification, and the server can acquire the target three-dimensional model corresponding to the identification according to the target three-dimensional model identification so as to process the target three-dimensional model.
In a possible implementation manner, the server may utilize a computing resource in the processing resource to load a model file resource, an animation resource and a texture resource in the dynamic resource into the target three-dimensional model, and utilize a storage resource in the processing resource to store the dynamic resource to be loaded into a corresponding storage space, so as to display the dynamic resource of the target three-dimensional model, and obtain the three-dimensional model to be displayed.
In another possible implementation manner, the server may perform adjustment processing on the target three-dimensional model according to whether the current infrastructure resources are sufficient, for example, in the case that the current infrastructure resources of the server are sufficient, perform adjustment processing on details of the target three-dimensional model to obtain an adjusted target three-dimensional model, and then, the server may utilize computing resources in the processing resources to load model file resources, animation resources and texture resources in the dynamic resources into the adjusted target three-dimensional model to obtain the three-dimensional model to be displayed.
After the three-dimensional model to be displayed is determined, the server can send the three-dimensional model to be displayed to the terminal so as to perform visual display on the three-dimensional model to be displayed through the terminal.
In the model display method, the interactive data of the user aiming at the target three-dimensional model is obtained, the display demand information of the target three-dimensional model is determined according to the interactive data, the resource demand information of the target three-dimensional model is determined according to the display demand information, processing resources corresponding to the resource demand information are allocated to the target three-dimensional model, and then the dynamic resources of the target three-dimensional model are displayed according to the processing resources, so that the target three-dimensional model is displayed visually. According to the method, display demand information of the target three-dimensional model is determined according to the interaction data, resource demand information is determined according to the display demand information, display demand information corresponding to different target three-dimensional models can be obtained for different target three-dimensional models, and the display demand information of different target three-dimensional models corresponds to different resource demand information, so that when corresponding processing resources are distributed for the target three-dimensional models according to the resource demand information, different processing resources can be distributed for the different target three-dimensional models by the server, and the distributed processing resources correspond to the display demand information of the target three-dimensional models, namely, each target three-dimensional model can be distributed to the processing resources corresponding to the resource demand information, and when dynamic resources of the target three-dimensional models are displayed and processed according to the processing resources, the problem of resource waste or delay caused by unreasonable processing resource distribution can be effectively avoided, and smoothness of the three-dimensional models in the display processing process is further improved.
The above embodiment refers to determining the resource requirement information of the target three-dimensional model according to the display requirement information. Next, an embodiment of determining the resource requirement information of the target three-dimensional model by the server 104 according to the presentation requirement information will be described.
Based on the embodiment shown in fig. 2, referring to fig. 3, the step S204 may include the following steps:
s302, determining dynamic resource reference information of the target three-dimensional model according to the display demand information.
The dynamic resource reference information of the target three-dimensional model refers to the basic quantity and basic types of dynamic resources required for meeting the display effect and the display parameters in the display demand information. For example, the dynamic resource reference information defines that a target three-dimensional model requires 2 model file resources, 1 animation resource, and 1 texture resource. The dynamic resource reference information includes model file resource information including a model file resource number, texture resource information including a texture resource number, and animation resource information including an animation resource number.
In the embodiment of the application, the server can determine the dynamic resource reference information of the target three-dimensional model according to the display effect and the display parameter in the display demand information.
In one possible implementation manner, the server may acquire the current available infrastructure resources, acquire all the pre-stored dynamic resources, for example, 1000 pre-stored dynamic resources, determine processing resources required by all the dynamic resources, determine dynamic resource information that can be processed by the current available infrastructure resources according to the current available infrastructure resources and the processing resources required by all the dynamic resources, determine a required dynamic resource type for supporting the presentation of the target three-dimensional model and the number of dynamic resources corresponding to each dynamic resource type based on the processable dynamic resource information, and thus determine the dynamic resource reference information of the target three-dimensional model.
In another possible implementation manner, the server may acquire dynamic resource information corresponding to the display requirement parameter, determine an allocation policy of a current available infrastructure resource of the server based on the current dynamic resource information, monitor an operation condition of the server under the allocation policy, and if the operation performance is reduced, redetermine the allocation policy until the monitoring server can stably operate, and determine dynamic resource reference information of the target three-dimensional model according to the allocation policy.
Thus, the basic types of dynamic resources and the basic quantity of the dynamic resources required by the target three-dimensional model can be determined according to the display demand information.
S304, determining resource demand information according to the dynamic resource reference information.
In the embodiment of the application, the server can determine the resource demand information corresponding to the display demand information according to the dynamic resource basic quantity and the dynamic resource basic type included in the dynamic resource reference information. The resource demand information is used to indicate computing resource demand and storage resource demand. The computing resource requirements may include a computing resource requirement size and the storage resource requirements may include a storage resource requirement size.
In one possible implementation manner, the server may acquire the basic number of dynamic resources and the basic type of dynamic resources in the dynamic reference information based on the dynamic resource reference information, determine the number of dynamic resources corresponding to each dynamic resource type, and determine the required size of computing resources and the required size of storage resources for each dynamic resource type, for example, the number of animation resource types is 3, and then the required size of computing resources and the required size of storage resources for each animation resource are the sum of the required size of computing resources and the required size of storage resources for each animation resource. After the server determines the computing resource requirement size and the storage resource requirement size required by each dynamic resource type, summing the computing resource requirement sizes required by each dynamic resource type to obtain computing resource requirements, and summing the storage resource requirement sizes required by each dynamic resource type to obtain storage resource requirements, thereby determining resource requirement information.
In another possible implementation manner, the server may obtain dynamic resource reference information of each target three-dimensional model, calculate resource statistics values required by simultaneous processing of the plurality of target three-dimensional models, allocate infrastructure resources according to whether the resource statistics values exceed available infrastructure resource statistics values, and determine resource demand information of each target three-dimensional model.
In this way, the server can determine the resource requirement information of the target three-dimensional model according to the dynamic resource reference information of the target three-dimensional model, and can determine the resource requirement information of the target three-dimensional model under the condition that each target three-dimensional model can obtain enough textures, animations and model file support.
The above embodiments refer to determining resource requirement information based on dynamic resource reference information. Next, an embodiment of determining resource demand information by the server 104 based on the dynamic resource reference information will be described.
Based on the embodiment shown in fig. 3, referring to fig. 4, the step S304 may include the following steps:
s402, determining a first dynamic resource type required by the target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information.
The first dynamic resource type is a dynamic resource type required by the plurality of target three-dimensional models, the first dynamic resource quantity is a dynamic resource quantity required by the plurality of target three-dimensional models, and the first dynamic resource type and the first dynamic resource quantity form a resource demand parameter. Illustratively, each target three-dimensional model requires 2 texture resources, 1 animation resource, and 1 model file resource. And obtaining resource demand parameters, 2000 texture resources, 1000 animation resources and 1000 model file resources according to the dynamic resource scheduling reference.
In the embodiment of the application, the server can determine the first dynamic resource types and the first dynamic resource quantity corresponding to each first dynamic resource type based on the dynamic resource reference information and the quantity of the target three-dimensional model. Optionally, the server may count the dynamic resource types and the number of dynamic resources in the dynamic resource reference information with the number of the target three-dimensional model to obtain the first dynamic resource types and the first dynamic resource numbers corresponding to each of the first dynamic resource types, that is, the resource demand parameters.
S404, if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is greater than a preset threshold, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type.
The statistics of the number of first dynamic resources corresponding to each first dynamic resource type may be a sum of the numbers of first dynamic resources corresponding to all the first dynamic resource types, and for example, the statistics is 4000 resources. The preset threshold is the number of resources that the server can process in parallel, e.g., 500 resources.
In the embodiment of the application, the server can judge whether the statistic value is larger than a preset threshold value, and if the statistic value is larger than the preset threshold value, the quantity of the resources in the characterization resource demand parameters is larger than the quantity of the resources which can be processed in parallel by the server; if the statistic value is smaller than the preset threshold value, the quantity of resources in the characterization resource demand parameter is smaller than the quantity of resources which can be processed in parallel by the server.
In the embodiment of the application, if the statistical value of the number of the first dynamic resources corresponding to each first dynamic resource type is greater than the preset threshold, the computing resources in the available infrastructure resources of the server need to be optimally allocated preferentially, and optionally, the server can optimally allocate the computing resources according to the priority of each target three-dimensional model or the service requirement corresponding to the target three-dimensional model. Illustratively, there are available for allocation computing resources that handle 500 resources, optimally allocating computing resources, allocating computing resources for handling 400 texture resources, 50 animation resources, and 50 model file resources. By optimally distributing the computing resources, the computing resource requirements in the resource requirement information of the target three-dimensional model can be determined, and the storage resource requirements adopt default settings.
After determining the computing resource requirements in the resource requirement information, the server may perform real-time performance detection on the computing resource configuration of the target three-dimensional model, where the performance detection is to perform real-time monitoring and evaluation on the operation effect of the three-dimensional model display system under the specific computing resource configuration. And if the real-time performance index of the computing resource configuration of the target three-dimensional model is lower than the standard threshold, adjusting the storage resource configuration. Illustratively, the standard threshold for the real-time performance index is set to 8. If the real-time performance index of the computing resource configuration is found to be lower than the standard threshold, adjustment of the storage resources is required. There are 100 memory resources available for adjustment, with 80 texture resources allocated memory space, 10 animation resources allocated memory space, and 10 model file resources allocated memory space.
And obtaining new storage resource configuration according to the adjustment result of the storage resources. And applying the new storage resource configuration to the target three-dimensional model, and performing performance evaluation again on the target three-dimensional model after the application of the new storage resource configuration to obtain an evaluation result, wherein the evaluation result meets the standard threshold value of the final performance state. The standard threshold for the final performance state is a pre-set evaluation criterion that measures whether the performance exhibited by the three-dimensional model after the application of the new storage resource configuration has reached an expected acceptable level. This threshold is typically set based on a number of performance metrics, which may include load speed, rendering quality, frame rate stability, memory footprint, interactive response, etc. If the performance evaluation result of the three-dimensional model after the new storage resource configuration is applied meets or exceeds the threshold, the performance state of the three-dimensional model can be considered to reach the expected standard. Next, the storage resource configuration in the final performance state is determined as storage resource requirements.
In this way, by the method, the resource demand information can be determined according to whether the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than the preset threshold value, and the resource demand information corresponding to the target three-dimensional model can be accurately obtained.
In the above embodiment, it is mentioned that the dynamic resource reference information of the target three-dimensional model is determined according to the display requirement information. Next, an embodiment of determining dynamic resource reference information of the target three-dimensional model by the server 104 according to the presentation requirement information will be described.
Based on the embodiment shown in fig. 3, referring to fig. 5, the step S302 may include the following steps:
S502, obtaining the second dynamic resource quantity and the second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter.
In the embodiment of the application, the display requirement information comprises a display effect and display parameters. The server can determine the second dynamic resource quantity and the second dynamic resource type corresponding to the display effect and the display parameter according to the mapping relation between the display effect and the display parameter and the dynamic resource information. The second dynamic resource quantity is the dynamic resource quantity required for displaying the display effect and the display parameter, and the second dynamic resource type is the dynamic resource type required for displaying the display effect and the display parameter.
S504, determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type.
The initial allocation policy includes an initial allocation policy of a second dynamic resource number and a second dynamic resource type, a resource priority of the second dynamic resource number and the second dynamic resource type, and an initial resource allocation policy, where the second dynamic resource number and the initial allocation policy of the second dynamic resource type refer to preset allocation of resource types and numbers, the second dynamic resource number and the resource priority of the second dynamic resource type refer to a level of resource priority processing, the initial resource allocation policy refers to a computing resource and a storage resource allocated for each second dynamic resource, and the second dynamic resource is a sum of all second dynamic resource numbers and dynamic resources corresponding to each dynamic resource type.
In the embodiment of the application, the server can randomly allocate initial dynamic resource basic quantity and dynamic resource basic type for the target three-dimensional model according to the second dynamic resource quantity and the second dynamic resource type, determine the resource priority of each second dynamic resource according to the second dynamic resource type, and allocate computing resources and storage resources for each second dynamic resource based on the initial dynamic resource basic quantity and the dynamic resource basic type.
S506, determining dynamic resource reference information according to the initial allocation strategy and the display effect.
In the embodiment of the application, the server can load the second dynamic resources into the target three-dimensional model based on the initial allocation strategy to obtain an initial display result, the server can judge whether the initial display result is consistent with the display effect, and if the initial display result is consistent with the display effect, the second dynamic resource quantity and the second dynamic resource type in the initial allocation strategy of the second dynamic resource quantity and the second dynamic resource type are determined as the dynamic resource basic quantity and the dynamic resource basic type in the dynamic resource reference information; and if the initial display result is inconsistent with the display effect, adjusting the initial allocation strategy, and determining dynamic resource reference information based on the adjusted initial allocation strategy.
Thus, by the method, the dynamic resource reference information can be determined based on the initial allocation strategy and the display effect, and the dynamic resource reference information can be accurately determined under the condition that the display effect is met.
The above embodiment refers to the process of displaying the dynamic resources of the target three-dimensional model according to the processing resources. Next, an embodiment of the server 104 performing the presentation processing on the dynamic resource of the target three-dimensional model according to the processing resource will be described.
Based on the embodiment shown in fig. 2, referring to fig. 6, the step S206 may include the following steps:
s602, determining the resource utilization rate according to the size of the processing resource.
The size of the processing resource includes the size of the computing resource and the size of the storage resource, and the server may use the ratio of the size of the computing resource to the total size of the processing resource of the server to obtain a resource utilization rate, for example, 80%.
In the embodiment of the application, the server determines the resource utilization rate to judge whether the currently available computing resources are enough to support the rendering of high detail level, and if the resources are limited, the detail level of the model needs to be reduced to ensure the smoothness of the rendering; conversely, if the computing resources are adequate, the level of detail of the model may be increased to reveal more detail.
And S604, if the resource utilization rate is smaller than the utilization rate threshold value, carrying out detail adjustment processing on the target three-dimensional model to obtain the target three-dimensional model with the adjusted details.
In the embodiment of the application, the server can determine the mode of carrying out detail adjustment processing on the target three-dimensional model based on the resource utilization rate. If the resource utilization rate is smaller than the utilization rate threshold value, the server carries out detail lifting adjustment processing on the target three-dimensional model; if the resource utilization rate is greater than or equal to the utilization rate threshold, the server performs detail reduction adjustment processing on the target three-dimensional model to obtain the target three-dimensional model with the detail adjusted.
In the following, an embodiment of the detail adjustment processing performed on the target three-dimensional model by the server is described, which may be implemented by the following steps:
And A1, determining a target detail level for carrying out detail adjustment processing on the target three-dimensional model according to the difference value between the resource utilization rate and the utilization rate threshold value.
The difference between the resource utilization rate and the utilization rate threshold value may be obtained by subtracting the utilization rate threshold value from the resource utilization rate, and the resource abundance or resource shortage is determined according to the difference. When the difference value is a positive number, the resource utilization rate is represented to be larger than the utilization rate threshold, the magnitude of the difference value is positively correlated with the resource tension degree, namely, the larger the difference value is, the larger the resource utilization rate is represented, and the higher the resource tension degree is; when the difference is a negative number, the utilization rate of the characterization resource is smaller than the utilization rate threshold, the absolute value of the difference is positively correlated with the resource abundance, namely, the larger the absolute value of the difference is, the smaller the utilization rate of the characterization resource is, and the higher the resource abundance is.
In the embodiment of the application, the server can determine the target detail level according to the resource shortage degree or the resource abundance degree, and the higher the resource shortage degree is, the lower the target detail level is; the higher the resource abundance, the higher the level of target detail. Illustratively, in the case of a high level of resource abundance, the target level of detail is set to 3, and in the case of a high level of resource shortage, the target level of detail is set to-3.
And step A2, performing detail adjustment on the target three-dimensional model by iteratively subdividing or screening out triangular patches of the target three-dimensional model.
In the embodiment of the application, the detail of the target three-dimensional model is improved and adjusted by iteratively subdividing the triangular patches of the target three-dimensional model; and reducing and adjusting the details of the target three-dimensional model by screening out the triangular patches of the target three-dimensional model. Hereinafter, a possible embodiment of performing detail-lifting adjustment on the target three-dimensional model by iteratively subdividing the triangular patches of the target three-dimensional model will be described.
Optionally, the server performs a first level of detail adjustment on the target three-dimensional model by iteratively subdividing the triangular patches. And analyzing whether the detail level of the target three-dimensional model after detail adjustment reaches the target detail level or not through a dynamic level detail adjustment module, and determining whether further adjustment is needed or not. And if the target three-dimensional model needs to be further adjusted, performing second detail adjustment on the target three-dimensional model. And carrying out logic verification on the target three-dimensional model subjected to the second adjustment. If the logic verification is passed, determining that the detail level of the target three-dimensional model meets the requirement. And if the logic verification is not passed, carrying out detail adjustment on the target three-dimensional model again.
Illustratively, one target three-dimensional model contains 100000 triangular patches. The target level of detail is 3. First, a first level of detail adjustment is performed on the target three-dimensional model, and each triangular patch will generate 4 new patches after the first subdivision. Thus, after the first level of detail adjustment, the target three-dimensional model will contain 400000 triangular patches. Next, the dynamic level detail adjustment module is used to analyze the target three-dimensional model after detail adjustment, and an index representing the detail level of the model is obtained by calculating the average normal vector length of each triangular patch, for example, the average normal vector length is 1, the detail level index of the model is 9, and the detail level index corresponding to the target detail level is between 8 and 12. The target three-dimensional model after the first detail adjustment is in the required range of the model detail level index, and the detail level of the model is determined not to be further adjusted. Then, the target three-dimensional model subjected to the first detail adjustment is logically verified, and whether each triangular patch in the model is closed or not is verified, namely whether all sides of each patch are connected to other patches or not is verified, and the verification result shows that all patches are closed. According to the result of the logic verification, the adjustment of the detail level is determined to meet the requirement, and the target three-dimensional model can be used. If the logic verification is not passed, the server adjusts the details of the target three-dimensional model again, so that the subdivision frequency can be increased, more detail-rich patches are generated, and the logic verification requirement is met.
S606, obtaining the three-dimensional model to be displayed according to the processing resources, the dynamic resources and the target three-dimensional model after detail adjustment.
In the embodiment of the application, the server can load the dynamic resource into the target three-dimensional model after detail adjustment by utilizing the processing resource so as to acquire the three-dimensional model to be displayed. Regarding the process of obtaining the three-dimensional model to be displayed, the above description of step S206 may be referred to, and the target three-dimensional model in step S206 may be replaced by a target three-dimensional model with adjusted details, which will not be described herein.
In this way, according to whether the computing resources are abundant or not, the detail adjustment can be performed on the target three-dimensional model to obtain the target three-dimensional model after the detail adjustment, under the condition of abundant resources, the target three-dimensional model with more abundant detail information can be obtained, under the condition of insufficient resources, the target three-dimensional model with less detail information can be obtained, and the basic fluency of the target three-dimensional model can be ensured, so that under the condition of allocated resources, the target three-dimensional model can perform high-efficiency, high-quality rendering and high fluency interactive display with proper detail.
In the above embodiment, it is mentioned that the three-dimensional model to be displayed is obtained according to the processing resource, the dynamic resource and the target three-dimensional model after detail adjustment. Next, an embodiment of the server 104 obtaining the three-dimensional model to be displayed according to the processing resource, the dynamic resource, and the target three-dimensional model after the detail adjustment will be described.
Based on the embodiment shown in fig. 6, referring to fig. 7, the step S606 may further include the following steps:
S702, obtaining a user adjustment requirement input by a user.
Wherein the user adjustment requirements include at least one of a detail adjustment requirement, a view screening requirement, and a distance screening requirement.
In the embodiment of the application, a user can input a detail adjustment requirement, a visual angle screening requirement or a distance screening requirement through a visual interface of the terminal, and the terminal sends at least one of the detail adjustment requirement, the visual angle screening requirement and the distance screening requirement to the server. The detail adjustment requirements can be obtained according to detail level controls displayed on a user operation visual interface, the detail level controls comprise a high-level control, a middle-level control and a low-level control, three different detail adjustment requirements are respectively corresponding to the detail adjustment requirements, and the detail adjustment requirements comprise a high-level adjustment requirement, a middle-level adjustment requirement and a low-level adjustment requirement. The visual angle screening requirement can be determined according to the specific position and orientation of the user when the user observes the target three-dimensional model in the virtual three-dimensional space, and the distance screening requirement can be obtained according to the distance of the user looking up the target three-dimensional model in the three-dimensional virtual space in the specific scene coordinate system.
And S704, screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model.
In the embodiment of the application, the server can carry out screening treatment on the target three-dimensional model after detail adjustment according to at least one of the detail adjustment requirement, the visual angle screening requirement and the distance screening requirement in the user adjustment requirement.
In one possible implementation, the user adjustment requirement includes a detail adjustment requirement, a view angle screening requirement or a distance screening requirement, and if the user adjustment requirement includes the detail adjustment requirement, the number of triangular patches corresponding to the detail adjustment requirement is obtained, and different detail adjustment requirements correspond to different numbers of triangular patches, for example, a high-level adjustment requirement, a middle-level adjustment requirement and a low-level adjustment requirement respectively correspond to 1000, 10000 and 100000 triangular patches. The server can adjust the target three-dimensional model after detail adjustment according to the triangular patches corresponding to the detail adjustment requirements. Illustratively, the detail adjustment requirement is a middle-level adjustment requirement, the model may be optimized according to the middle-level adjustment requirement, and only 10000 triangular patches are reserved. This can improve the display effect of the model and reduce the overhead of calculation and storage.
If the user adjustment requirement includes a view angle screening requirement, performing view angle screening on the target three-dimensional model after the detail adjustment according to the view angle requirement in the view angle screening requirement, for example, if the view angle requirement is a front view angle, screening the triangular patches of the target three-dimensional model after the detail adjustment, and reserving the triangular patches of the front view angle. Optionally, the server may perform screening by calculating an included angle between each triangular patch and the view angle in the target three-dimensional model after the detail adjustment. If the included angle is smaller than the included angle threshold, the triangular surface patch is considered to be the triangular surface patch of the front part of the model. The angle threshold may be 90 degrees. Illustratively, 8000 triangular facets are obtained after viewing angle screening.
If the user adjustment requirement includes a distance screening requirement, the triangular patches of the target three-dimensional model after the detail adjustment in the distance requirement range are screened according to the distance requirement in the distance screening requirement, for example, the distance screening requirement indicates that the triangular patches with the distance requirement in the range of 100 meters (100 meters in the specific scene coordinate system) are screened. Alternatively, the server may perform the filtering by calculating the distance of each triangular patch from the viewing angle. If the distance is smaller than the distance threshold, determining that the triangular patches are within the distance requirement range, and performing distance screening on the triangular patches with the distance smaller than 100 meters to obtain 5000 triangular patches.
In another possible implementation manner, the user adjustment requirement includes at least one of a detail adjustment requirement, a view angle screening requirement and a distance screening requirement, and the server may perform screening processing on the target three-dimensional model after the detail adjustment according to the sequence of each adjustment requirement, so as to obtain the target three-dimensional model after the screening processing. Illustratively, performing detail adjustment, view angle screening and distance screening on the target three-dimensional model after detail adjustment to obtain a target three-dimensional model after screening.
After the screened target three-dimensional model is obtained, the server can adjust parameters of the screened target three-dimensional model according to the screening result, and adjust colors, textures, illumination and the like of the model. This further optimizes the display of the model. Optionally, the server may also verify the target three-dimensional model after the screening process, and may verify the accuracy of the model by calculating the volume, surface area, or other properties of the model. And if the verification is passed, saving and outputting the model data which passes the verification. After detail adjustment, visual angle screening, distance screening and parameter adjustment, the obtained target three-dimensional model comprises 5000 triangular patches, the volume of which is 100 cubic meters, and the surface area of which is 50 square meters.
S706, loading the dynamic resources into the target three-dimensional model after screening processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In the embodiment of the present application, the server may utilize the processing resources to load the dynamic resources into the target three-dimensional model after the screening process to obtain the three-dimensional model to be displayed, and the process of obtaining the three-dimensional model to be displayed may refer to the description in the step S206, and the process of replacing the target three-dimensional model in the step S206 with the target three-dimensional model after the screening process may be omitted herein.
Therefore, the target three-dimensional model can be adjusted according to the adjustment requirement of the user, and the flexibility of displaying the target three-dimensional model is improved.
In the above embodiment, it is mentioned that the processing resource is utilized to load the dynamic resource into the target three-dimensional model after the screening processing, so as to obtain the three-dimensional model to be displayed. Next, an embodiment of processing the three-dimensional model after the screening process will be described before the server 104 loads the dynamic resource into the three-dimensional model after the screening process to obtain the three-dimensional model to be displayed.
Based on the embodiment shown in fig. 7, referring to fig. 8, the model display method in this embodiment may further include the following steps:
s802, determining model difference information according to the target three-dimensional model after screening processing and the target three-dimensional model after detail adjustment.
In the embodiment of the application, the server can calculate the difference between the three-dimensional model of the target after screening processing and the three-dimensional model of the target after detail adjustment, and each vertex position and texture coordinate to obtain model difference information. The model difference information includes vertex difference information and texture difference information. The server can determine vertex difference information according to the position difference between each vertex position of the target three-dimensional model after screening processing and each vertex position of the target three-dimensional model after detail adjustment. The server can also determine texture difference information according to the coordinate difference between the texture coordinates of the target three-dimensional model after screening processing and the target three-dimensional model after detail adjustment. And carrying out quantization weighting on the vertex difference information and the texture difference information to obtain a difference quantization value.
S804, carrying out appearance optimization processing on the target three-dimensional model after screening processing according to the model difference information to obtain the target three-dimensional model after optimization processing.
In the embodiment of the application, if the difference quantization value corresponding to the model difference information exceeds the preset difference threshold value, appearance optimization processing is performed on the target three-dimensional model after screening processing, wherein the appearance optimization processing comprises appearance adjustment processing and/or texture smoothing processing.
In one possible implementation manner, the server may perform texture smoothing on the target three-dimensional model after the screening processing according to the magnitude and direction of the difference, interpolate between two vertices according to the magnitude of the difference, thereby obtaining smoothed model data, determine a smoothing effect of the smoothed model data, obtain feedback information according to the smoothing effect, and perform interpolation processing on the smoothed model data according to the feedback information, so as to perform texture smoothing processing.
In another possible embodiment, the server may perform appearance adjustment processing on the three-dimensional model after the screening processing preferentially, and may perform appearance adjustment processing on the three-dimensional model after the screening processing through appearance adjustment processing such as color correction, sharpening, and blurring post-processing. The color correction may be to increase all vertex color values by 10%, meaning that the pixel value of each vertex is increased by 10%. In this way, the overall hue of the model can be changed. Sharpening may compare the value of each pixel with the values of its surrounding pixels and then increase or decrease the luminance value of the pixel depending on the degree of difference. In this way, the texture of the model may be made to look clearer and sharper. The post-blurring process may average the values of each pixel to blur the representation of the entire target three-dimensional model. In this way, the surface of the target three-dimensional model can be made softer. After appearance adjustment processing is performed on the target three-dimensional model after the screening processing, the server can determine model difference information between the target three-dimensional model after the appearance adjustment processing and the target three-dimensional model after the detail adjustment processing, so as to perform texture smoothing processing on the target three-dimensional model after the appearance adjustment processing according to the model difference information.
The three-dimensional model after the appearance adjustment is compared with the three-dimensional model after the detail adjustment, and a difference quantization value of each vertex position and texture coordinate between the three-dimensional model after the appearance adjustment and the three-dimensional model after the detail adjustment is calculated. If the difference quantization value exceeds a preset difference threshold value, for example, more than 1 unit, a linear interpolation method is adopted, and the interpolation intensity is adjusted according to the size and the direction of the difference, namely, interpolation is carried out between two vertexes according to the size of the difference, so that smoothed model data are obtained. Feedback information is obtained according to the smoothing effect, and the smoothed model data can be further adjusted according to the feedback information, for example, parameters of color correction, sharpening and blurring processing can be adjusted according to the direction and the size of the difference.
And after the appearance optimization processing is performed on the target three-dimensional model subjected to the screening processing to obtain the target three-dimensional model subjected to the optimization processing, optionally, the server can verify the target three-dimensional model subjected to the optimization processing to verify the accuracy and the integrity of the model. The server can calculate the volume difference between the optimized target three-dimensional model and the original model, and if the difference is smaller than a preset threshold value, for example, smaller than 1%, the optimized target three-dimensional model can be determined to be accurate and complete.
In addition, after obtaining the target three-dimensional model after the optimization processing, the server can utilize the processing resources. And loading the dynamic resources into the target three-dimensional model after the optimization treatment to obtain the three-dimensional model to be displayed. Regarding the process of obtaining the three-dimensional model to be displayed, the above description of step S206 may be referred to, and the target three-dimensional model in step S206 may be replaced by the target three-dimensional model after the optimization processing, which will not be described herein.
In this way, according to the three-dimensional model after screening and the three-dimensional model after detail adjustment, model difference information is determined, and the three-dimensional model after screening can be optimized according to the model difference information, so that the display effect of the three-dimensional model and the accuracy of the model are ensured.
In the above embodiments, visual display of a three-dimensional model to be displayed is mentioned. Next, an embodiment in which the server 104 visually displays the three-dimensional model to be displayed will be described. The mode display mode in this embodiment may further include the following steps:
And step B1, performing compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model subjected to compression coding treatment, and sending the target three-dimensional model subjected to compression coding treatment to a client.
The target three-dimensional model after compression coding is used for decoding and decompressing the target three-dimensional model after compression coding by the client to obtain a three-dimensional model to be displayed, and the three-dimensional model to be displayed is visually displayed.
In the following, a possible implementation of the compression processing of the three-dimensional model to be displayed by the server will be described.
And step B11, carrying out quality analysis on the three-dimensional model to be displayed to obtain the size of the model data and the quality value of the model data.
In the embodiment of the application, the server can perform quality analysis on the model data of the three-dimensional model to be displayed, acquire the size of the model data, and determine the quality value of the model data according to the model detail information. For example, a three-dimensional model to be displayed, the model data size is 8MB, and the model data quality value is 90.
And step B12, if the size of the model data is larger than the data threshold, performing dimension reduction on the model data of the three-dimensional model to be displayed to obtain the dimension-reduced model data.
For example, the data threshold is 6MB, and since the model data size is 8MB, which is larger than the data threshold of 6MB, the dimension reduction processing is required for the model data. Alternatively, the server may use a preset dimension reduction algorithm to reduce the dimension of the model data, for example, use a principal component analysis dimension reduction algorithm to reduce the dimension of the model data to 6.
And step B13, if the size of the model data corresponding to the model data after the dimension reduction processing is smaller than or equal to a data threshold value, compressing the model data after the dimension reduction processing to obtain compressed model data.
In the embodiment of the application, the size of the model data corresponding to the model data after the dimension reduction processing can be compared with the data threshold, and if the size of the model data corresponding to the model data after the dimension reduction processing is smaller than or equal to the data threshold, a preset compression algorithm is adopted to compress the model data after the dimension reduction processing, and the preset compression algorithm can be as follows. Illustratively, the model data after the dimension reduction processing is compressed by using an LZW (Lempel-Ziv-Welch) algorithm, and the size of the compressed data is 4MB.
And step B14, comparing the data size and the quality before and after compression, judging the compression effect, and adjusting the compression parameters according to the compression effect.
In the embodiment of the application, the compression difference can be determined according to the data size and the data quality of the model data after the dimension reduction processing and the data size and the data quality of the compression model data, and the compression effect is judged according to the compression difference size, wherein the compression difference size is positively correlated with the compression effect. If the compression difference exceeds the difference threshold, adjusting LZW algorithm parameters, and acquiring compression model data again according to the adjusted LZW algorithm compression model data. For example, the difference threshold is 5MB.
After the compression processing is performed on the three-dimensional model to be displayed, the server can also perform coding processing on the compressed three-dimensional model to be displayed. In the following, a possible implementation manner of the encoding process of the three-dimensional model to be displayed after the compression process by the server will be described.
Preprocessing the compressed three-dimensional model to be displayed, optimizing a data structure, converting the compressed model data of the three-dimensional model to be displayed into a character sequence through Huffman coding according to the characteristics of the three-dimensional model structure and the compressed data, and constructing a Huffman coding tree according to the occurrence frequency. And replacing each character of the model data with a corresponding Huffman code according to the Huffman code tree, and recording the code result. And determining the coding efficiency of the Huffman coding on the model data by calculating the difference between the length of the coded bit sequence and the length of the model data of the three-dimensional model to be displayed after compression processing. And if the coding efficiency is smaller than the efficiency threshold, adjusting the Huffman coding parameter and recoding until the coded model data with the coding efficiency larger than the efficiency threshold is obtained.
For example, the model data of the three-dimensional model to be displayed after the compression processing is taken as the original data, and the vertex coordinates thereof include (1, 2, 3), (4, 5, 6), (7, 8, 9), and the triangular patch index (0, 1, 2). First, preprocessing is performed on model data to optimize the data structure. A data structure, such as an edge table or a half-edge table, may be used to store the topology and vertex information of the model. This can reduce data redundancy and improve access efficiency. The model data is then converted into a character sequence using huffman coding, and a huffman coding tree is constructed from the frequency of occurrence. The vertex coordinate data is encoded as a character 'v', and the patch index data is encoded as a character 'f'. The original data sequence is "v1v2v3f0f1f2". And constructing a Huffman coding tree according to the occurrence frequency, replacing each character of the model data with a corresponding Huffman code, and recording the coding result. The encoded sequence is "010101010". The coding efficiency of Huffman coding on the model data is determined by calculating the difference between the length of the coded bit sequence and the length of the original model data. The original data length is 13 characters, the encoded data length is 11 characters, and the encoding efficiency= (original data length-encoded data length)/original data length, the encoding efficiency= (13-11)/13=15.38%. If the coding efficiency is smaller than the efficiency threshold, the Huffman coding parameter can be adjusted or other coding algorithms can be used, and the coding is re-coded, so that the coded model data with the coding efficiency larger than the efficiency threshold can be obtained.
And carrying out compression treatment on the three-dimensional model to be displayed to obtain a compressed three-dimensional model to be displayed, and then carrying out coding treatment on the compressed three-dimensional model to be displayed to obtain a target three-dimensional model after compression coding treatment. The server may then send the compression-encoded target three-dimensional model to the client.
In one possible implementation manner, the server may initialize the target three-dimensional model after the compression coding process through the network transmission module, and perform data transmission. The transmission rate is dynamically adjusted according to the transmission protocol and network conditions. In the data transmission process, the transmission state of each part of data is monitored in real time, and the receiving state of the client is monitored in real time. If the receiving state of the client shows incomplete receiving, retransmitting the partial data which is not received. The client verifies the received three-dimensional model data, performs preliminary display on the three-dimensional model data, and stores the preliminary displayed three-dimensional model data in a cache region of the client.
Illustratively, a compression-encoded three-dimensional model file is 100MB in size. The transmission is performed using the TCP protocol, and the transmission rate is dynamically adjusted according to the network conditions. Firstly, the three-dimensional model file after compression coding is sent to a client through a network transmission module, and the initial transmission rate is 1Mbps. And in the transmission process, monitoring the transmission state of each part of data in real time. In the transmission process, the data transmission of the first 30MB is smooth, but the packet loss condition occurs in the data transmission process of the later 70MB, and the client only receives 50MB of data. At the client, it is detected that the received data is incomplete, i.e. only a part of the data is received, and it is determined that the unreceived data part, i.e. the remaining 20MB, needs to be retransmitted. The server may retransmit the remaining 20MB of data based on the feedback from the client, which stores the remaining data in the client's buffer. The client verifies the received three-dimensional model data, so that the integrity and the correctness of the data are ensured, and the proportion of the data lost in the transmission process, namely, the data which is lost by 20MB in 70MB data can be calculated, so that the loss proportion is 28.5%. In addition, the dynamic adjustment condition of the transmission rate can be analyzed. In the transmission process, the fluctuation of the network bandwidth causes the transmission rate to drop from 1Mbps to 5Mbps and then rise to 5Mbps, so that the rate changes can be counted and the influence on the transmission effect can be analyzed.
After the target three-dimensional model after compression coding is sent to the client, the client can decode and decompress the target three-dimensional model after compression coding to obtain the three-dimensional model to be displayed, and the three-dimensional model to be displayed is visually displayed.
In one possible implementation, the client obtains the target three-dimensional model after compression encoding processing from the buffer, and verifies the integrity of the three-dimensional model data. And decoding the target three-dimensional model after the compression coding treatment to obtain three-dimensional model data in an intermediate format. And decompressing the three-dimensional model data in the intermediate format by adopting a decompression algorithm to obtain the three-dimensional model to be displayed. And detecting the data quality of the three-dimensional model to be displayed, and if the conditions of data loss and low quality exist, re-executing decompression operation. In addition, the client can also preprocess the three-dimensional model to be displayed, identify the data format of the three-dimensional model, and convert the data format of the three-dimensional model into a data format readable by the system if the data format is not in accordance with the current system. And finally, loading the three-dimensional model to be displayed, and displaying the three-dimensional model on a visual interface.
Illustratively, the client cached compressed encoded target three-dimensional model data size is 500KB. First, it is necessary to check the integrity of the three-dimensional model data, and the integrity is determined by checking the model data of the compression-encoded target three-dimensional model. Then, the target three-dimensional model after compression encoding is decoded to obtain three-dimensional model data in a middle format, and the size of the decoded three-dimensional model data is 1MB. Then, a decompression algorithm is adopted to decompress the three-dimensional model data in the intermediate format, for example, an LZ77 algorithm is adopted to obtain the three-dimensional model to be displayed, and the size of the decompressed data is 2MB. Detecting the data quality of the three-dimensional model to be displayed can calculate indexes such as average error or peak signal-to-noise ratio of the data to evaluate the data quality. For example, the average error is 1 and the peak signal-to-noise ratio is 50dB. If there is a data loss and low quality condition, the decompression operation may be re-performed until the requirements are met. In addition, the client performs preprocessing on the three-dimensional model to be displayed, the preprocessing comprises operations of removing invalid data, denoising and the like, and the data format of the three-dimensional model is identified, for example, the identified data format of the three-dimensional model is OBJ. If the identified format is not compatible with the current system, the data format of the three-dimensional model needs to be converted into a data format readable by the system, for example, the model in OBJ format is converted into FBX format. And finally, loading the three-dimensional model and displaying the three-dimensional model on a visual interface.
Therefore, after the three-dimensional model to be displayed is subjected to compression coding in the mode, the data size of the three-dimensional model to be displayed can be reduced, the three-dimensional model after compression coding has the characteristic of light weight, and the data transmission speed of the server when the three-dimensional model to be displayed is sent to the client can be improved, so that the fluency of the three-dimensional model in the display process is improved.
The above embodiments refer to determining presentation requirement information of a three-dimensional model of a target based on interaction data. Next, an embodiment of determining display requirement information of the target three-dimensional model by the server 104 according to the interaction data will be described.
Based on the embodiment shown in fig. 2, referring to fig. 9, the step S202 may include the following steps:
S902, analyzing and processing the interaction data, and determining an interaction mode corresponding to the interaction data.
Wherein the interaction pattern comprises a simple interaction pattern or a complex interaction pattern.
In the embodiment of the application, the server can analyze the user interaction data to acquire the complexity and frequency of interaction in the interaction data, and determine the interaction mode corresponding to the interaction data according to the complexity and frequency of interaction.
In a possible implementation manner, the server determines the complexity of interaction according to the interaction operation in the interaction data, wherein the interaction operation can comprise operations such as clicking, sliding and inputting by a user, if the interaction operation only comprises the clicking operation, the complexity is determined to be low, and if the interaction operation comprises the clicking operation and the sliding operation, the complexity is determined to be high. The server can also determine the interaction frequency according to the interaction operation information in the interaction data, determine the click frequency according to the click information of the user, and determine the sliding frequency according to the sliding information of the user. And determining an interaction mode according to the complexity and the interaction frequency, and optionally, if the complexity and/or the interaction frequency are high, determining the interaction mode as a complex interaction mode, otherwise, determining the interaction mode as a simple interaction mode.
Illustratively, a set of user interaction data is obtained, including user click, swipe, and enter actions. The interaction data are analyzed first, and the complexity and frequency of the interaction data are calculated. In the simple mode, the user performs only a click operation, while in the complex mode, the user performs a click and slide operation. Further analysis found that in the simple mode the user clicks on average 10 times per minute, whereas in the complex mode the user clicks on average 20 times per minute and the sliding frequency on average 5 times per minute. From the determination of the interaction pattern, the user's need for the scene can be inferred. For example, in complex modes, the user may need more detailed power device information and operational functions, thus requiring more model details to be presented and interoperation to be supported. In the simple mode, however, the user may be concerned only with the basic device status, and thus may employ a simplified presentation effect.
S904, determining display requirement information according to the interaction mode.
The display requirement information comprises display effects and display parameters corresponding to detail display requirements or display effects and display parameters corresponding to simple display requirements.
In the embodiment of the application, the server can analyze the display effect and the display parameters of the three-dimensional model required by the current scene according to the interaction mode. And acquiring three-dimensional model data according to the three-dimensional model display effect and the display parameters. And adopting a support vector machine algorithm, selecting a kernel function and parameters, training a support vector machine model, classifying three-dimensional model data by using the trained support vector machine model, and determining display demand information of the three-dimensional model.
Illustratively, the display effect criteria are set to bright and soft light effects based on the determination of the three-dimensional model display effect criteria and display parameters, which may include the position, intensity, color, etc. of the light source. And then, acquiring three-dimensional model data, training by using a support vector machine algorithm, selecting a Gaussian kernel function, setting parameters to be 5, classifying the three-dimensional model data by using a trained support vector machine model, and determining display requirement information.
Therefore, according to the mode, the display requirement of the user on the scene can be accurately analyzed according to the interaction mode of the interaction data, so that the display requirement information of the corresponding interaction mode is acquired under different interaction modes, the determined display requirement information can accurately correspond to the display requirement of the user on the scene, and the accuracy of distributing processing resources according to the display requirement can be improved.
In one embodiment, a model presentation method is provided for a server 104, the method comprising the steps of:
Step 1, acquiring interaction data of a user aiming at a target three-dimensional model;
Step 2, analyzing and processing the interaction data to determine an interaction mode corresponding to the interaction data;
Step 3, determining display requirement information according to the interaction mode, wherein the display requirement information comprises display effects and display parameters;
Step 4, obtaining a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter;
Step 5, determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type;
Step 6, determining dynamic resource reference information according to the initial allocation strategy and the display effect;
Step 7, determining a first dynamic resource type required by the target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information;
Step 8, if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is greater than a preset threshold value, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type;
Step 9, allocating processing resources corresponding to the resource demand information for the target three-dimensional model;
step 10, determining the resource utilization rate according to the size of the processing resource;
Step 11, if the resource utilization rate is smaller than the utilization rate threshold value, carrying out detail adjustment processing on the target three-dimensional model to obtain a target three-dimensional model after detail adjustment;
step 12, obtaining a user adjustment requirement input by a user;
Step 13, screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model;
step 14, determining model difference information according to the target three-dimensional model after screening treatment and the target three-dimensional model after detail adjustment;
step 15, carrying out appearance optimization treatment on the target three-dimensional model subjected to the screening treatment according to the model difference information to obtain an optimized target three-dimensional model;
Step 16, loading the dynamic resources into the target three-dimensional model after optimization processing by utilizing the processing resources to obtain a three-dimensional model to be displayed;
And step 17, performing compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model subjected to compression coding treatment, and sending the target three-dimensional model subjected to compression coding treatment to the client.
Hereinafter, the implementation of the above-described embodiment model presentation method will be exemplarily described.
The method comprises the steps of obtaining interactive data of a user aiming at a target three-dimensional model, analyzing and processing the interactive data, determining an interactive mode corresponding to the interactive data, and determining display requirement information according to the interactive mode, wherein the display requirement information comprises display effects and display parameters. After the display effect and the display parameters are determined, obtaining a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameters according to the display effect and the display parameters, determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type, determining dynamic resource reference information according to the initial allocation strategy and the display effect, determining a first dynamic resource type required by the target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information, and if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than a preset threshold value, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type, and allocating processing resources corresponding to the resource demand information for the target three-dimensional model. After the processing resources are determined, determining the resource utilization rate according to the size of the processing resources, if the resource utilization rate is smaller than the utilization rate threshold, carrying out detail adjustment processing on the target three-dimensional model to obtain a target three-dimensional model after detail adjustment, and obtaining the three-dimensional model to be displayed according to the processing resources, the dynamic resources and the target three-dimensional model after detail adjustment. Or on the basis of obtaining the target three-dimensional model after detail adjustment, obtaining a user adjustment requirement input by a user, screening the target three-dimensional model after detail adjustment according to the user adjustment requirement to obtain a target three-dimensional model after screening, and loading dynamic resources into the target three-dimensional model after screening by using processing resources to obtain the three-dimensional model to be displayed. In addition, model difference information can be determined according to the target three-dimensional model after screening processing and the target three-dimensional model after detail adjustment, appearance optimization processing is carried out on the target three-dimensional model after screening processing according to the model difference information, the target three-dimensional model after optimization processing is obtained, and dynamic resources are loaded into the target three-dimensional model after optimization processing by utilizing processing resources, so that the three-dimensional model to be displayed is obtained. And finally, carrying out compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model after compression coding treatment, and sending the target three-dimensional model after compression coding treatment to a client.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a model display device for realizing the model display method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the model display device provided below may be referred to above for the limitation of the model display method, which is not repeated here.
In one embodiment, as shown in fig. 10, there is provided a model display device including: an acquisition module 1001, an allocation module 1002, and a processing module 1003, wherein:
the acquisition module 1001 is configured to acquire interaction data of a user for a target three-dimensional model, and determine display requirement information of the target three-dimensional model according to the interaction data;
The allocation module 1002 is configured to determine resource requirement information of the target three-dimensional model according to the display requirement information, and allocate processing resources corresponding to the resource requirement information to the target three-dimensional model;
and the processing module 1003 is used for performing display processing on the dynamic resources of the target three-dimensional model according to the processing resources so as to perform visual display on the target three-dimensional model.
In another embodiment, another model display device is provided, and the allocation module 1002 includes a first determining unit and a second determining unit, where:
The first determining unit is used for determining dynamic resource reference information of the target three-dimensional model according to the display demand information, wherein the dynamic resource reference information comprises model file resource information, texture resource information and animation resource information;
and the second determining unit is used for determining resource demand information according to the dynamic resource reference information, wherein the resource demand information is used for indicating the computing resource demand and the storage resource demand.
Optionally, the second determining unit is specifically configured to: determining a first dynamic resource type required by a target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information; if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than a preset threshold value, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type.
Optionally, the display requirement information includes a display effect and a display parameter, and the first determining unit is specifically configured to: acquiring a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter; determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type, wherein the initial allocation strategy comprises the second dynamic resource quantity and the initial allocation strategy of the second dynamic resource type, the second dynamic resource quantity, the resource priority of the second dynamic resource type and the initial resource allocation strategy; and determining dynamic resource reference information according to the initial allocation strategy and the display effect.
In another embodiment, another model display device is provided, and the processing module 1003 includes a resource determining unit, a detail adjusting unit, and a display processing unit, where:
a resource determining unit, configured to determine a resource utilization rate according to a size of a processing resource;
the detail adjusting unit is used for carrying out detail adjustment processing on the target three-dimensional model if the resource utilization rate is smaller than the utilization rate threshold value to obtain a target three-dimensional model after detail adjustment;
the display processing unit is used for acquiring the three-dimensional model to be displayed according to the processing resources, the dynamic resources and the target three-dimensional model after detail adjustment.
Optionally, the display processing unit is specifically configured to: acquiring a user adjustment requirement input by a user, wherein the user adjustment requirement comprises at least one of a detail adjustment requirement, a visual angle screening requirement and a distance screening requirement; screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model; and loading the dynamic resources into the target three-dimensional model after screening processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
Optionally, the display processing unit is further specifically configured to: determining model difference information according to the target three-dimensional model after screening and the target three-dimensional model after detail adjustment; performing appearance optimization treatment on the target three-dimensional model subjected to the screening treatment according to the model difference information to obtain an optimized target three-dimensional model; correspondingly, the method for utilizing the processing resources, loading the dynamic resources into the target three-dimensional model after screening processing to obtain the three-dimensional model to be displayed, comprises the following steps: and loading the dynamic resources into the target three-dimensional model after optimization processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In another embodiment, another model display device is provided, and the device further includes a sending module based on the embodiment, wherein:
the sending module is used for carrying out compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model after the compression coding treatment, sending the target three-dimensional model after the compression coding treatment to the client, decoding and decompressing the target three-dimensional model after the compression coding treatment by the client to obtain the three-dimensional model to be displayed, and carrying out visual display on the three-dimensional model to be displayed.
In another embodiment, another model display device is provided, and the obtaining module 1001 includes an analyzing unit and a requirement determining unit, where:
The analysis unit is used for analyzing and processing the interaction data and determining an interaction mode corresponding to the interaction data, wherein the interaction mode comprises a simple interaction mode or a complex interaction mode;
The demand determining unit is used for determining display demand information according to the interaction mode, wherein the display demand information comprises a display effect and a display parameter corresponding to the detail display demand or a display effect and a display parameter corresponding to the simple display demand.
The various modules in the model display device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, a computer device is provided, which may be a terminal or a server, for example, and the internal structure thereof may be as shown in fig. 11. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store dynamic resources and model data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a model presentation method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 11 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
Acquiring interactive data of a user aiming at a target three-dimensional model, and determining display demand information of the target three-dimensional model according to the interactive data; according to the display demand information, determining resource demand information of the target three-dimensional model, and distributing processing resources corresponding to the resource demand information for the target three-dimensional model; and displaying the dynamic resources of the target three-dimensional model according to the processing resources so as to visually display the target three-dimensional model.
In one embodiment, the processor when executing the computer program further performs the steps of:
Determining dynamic resource reference information of the target three-dimensional model according to the display demand information, wherein the dynamic resource reference information comprises model file resource information, texture resource information and animation resource information; and determining resource demand information according to the dynamic resource reference information, wherein the resource demand information is used for indicating the computing resource demand and the storage resource demand.
In one embodiment, the processor when executing the computer program further performs the steps of:
Determining a first dynamic resource type required by a target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information; if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than a preset threshold value, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type.
In one embodiment, the processor when executing the computer program further performs the steps of:
Acquiring a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter; determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type, wherein the initial allocation strategy comprises the second dynamic resource quantity and the initial allocation strategy of the second dynamic resource type, the second dynamic resource quantity, the resource priority of the second dynamic resource type and the initial resource allocation strategy; and determining dynamic resource reference information according to the initial allocation strategy and the display effect.
In one embodiment, the processor when executing the computer program further performs the steps of:
Determining the resource utilization rate according to the size of the processing resource; if the resource utilization rate is smaller than the utilization rate threshold value, carrying out detail adjustment processing on the target three-dimensional model to obtain a target three-dimensional model with the adjusted details; and acquiring the three-dimensional model to be displayed according to the processing resources, the dynamic resources and the target three-dimensional model subjected to detail adjustment.
In one embodiment, the processor when executing the computer program further performs the steps of:
Acquiring a user adjustment requirement input by a user, wherein the user adjustment requirement comprises at least one of a detail adjustment requirement, a visual angle screening requirement and a distance screening requirement; screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model; and loading the dynamic resources into the target three-dimensional model after screening processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the processor when executing the computer program further performs the steps of:
Determining model difference information according to the target three-dimensional model after screening and the target three-dimensional model after detail adjustment; performing appearance optimization treatment on the target three-dimensional model subjected to the screening treatment according to the model difference information to obtain an optimized target three-dimensional model; correspondingly, the method for utilizing the processing resources, loading the dynamic resources into the target three-dimensional model after screening processing to obtain the three-dimensional model to be displayed, comprises the following steps: and loading the dynamic resources into the target three-dimensional model after optimization processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the processor when executing the computer program further performs the steps of:
performing compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model after the compression coding treatment, sending the target three-dimensional model after the compression coding treatment to a client, and using the target three-dimensional model after the compression coding treatment for decoding and decompressing the target three-dimensional model after the compression coding treatment by the client to obtain the three-dimensional model to be displayed and performing visual display on the three-dimensional model to be displayed.
In one embodiment, the processor when executing the computer program further performs the steps of:
analyzing and processing the interaction data to determine an interaction mode corresponding to the interaction data, wherein the interaction mode comprises a simple interaction mode or a complex interaction mode; and determining display requirement information according to the interaction mode, wherein the display requirement information comprises display effects and display parameters corresponding to detail display requirements or display effects and display parameters corresponding to simple display requirements.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Acquiring interactive data of a user aiming at a target three-dimensional model, and determining display demand information of the target three-dimensional model according to the interactive data; according to the display demand information, determining resource demand information of the target three-dimensional model, and distributing processing resources corresponding to the resource demand information for the target three-dimensional model; and displaying the dynamic resources of the target three-dimensional model according to the processing resources so as to visually display the target three-dimensional model.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining dynamic resource reference information of the target three-dimensional model according to the display demand information, wherein the dynamic resource reference information comprises model file resource information, texture resource information and animation resource information; and determining resource demand information according to the dynamic resource reference information, wherein the resource demand information is used for indicating the computing resource demand and the storage resource demand.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining a first dynamic resource type required by a target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information; if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than a preset threshold value, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter; determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type, wherein the initial allocation strategy comprises the second dynamic resource quantity and the initial allocation strategy of the second dynamic resource type, the second dynamic resource quantity, the resource priority of the second dynamic resource type and the initial resource allocation strategy; and determining dynamic resource reference information according to the initial allocation strategy and the display effect.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining the resource utilization rate according to the size of the processing resource; if the resource utilization rate is smaller than the utilization rate threshold value, carrying out detail adjustment processing on the target three-dimensional model to obtain a target three-dimensional model with the adjusted details; and acquiring the three-dimensional model to be displayed according to the processing resources, the dynamic resources and the target three-dimensional model subjected to detail adjustment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring a user adjustment requirement input by a user, wherein the user adjustment requirement comprises at least one of a detail adjustment requirement, a visual angle screening requirement and a distance screening requirement; screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model; and loading the dynamic resources into the target three-dimensional model after screening processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining model difference information according to the target three-dimensional model after screening and the target three-dimensional model after detail adjustment; performing appearance optimization treatment on the target three-dimensional model subjected to the screening treatment according to the model difference information to obtain an optimized target three-dimensional model; correspondingly, the method for utilizing the processing resources, loading the dynamic resources into the target three-dimensional model after screening processing to obtain the three-dimensional model to be displayed, comprises the following steps: and loading the dynamic resources into the target three-dimensional model after optimization processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
performing compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model after the compression coding treatment, sending the target three-dimensional model after the compression coding treatment to a client, and using the target three-dimensional model after the compression coding treatment for decoding and decompressing the target three-dimensional model after the compression coding treatment by the client to obtain the three-dimensional model to be displayed and performing visual display on the three-dimensional model to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing and processing the interaction data to determine an interaction mode corresponding to the interaction data, wherein the interaction mode comprises a simple interaction mode or a complex interaction mode; and determining display requirement information according to the interaction mode, wherein the display requirement information comprises display effects and display parameters corresponding to detail display requirements or display effects and display parameters corresponding to simple display requirements.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
Acquiring interactive data of a user aiming at a target three-dimensional model, and determining display demand information of the target three-dimensional model according to the interactive data; according to the display demand information, determining resource demand information of the target three-dimensional model, and distributing processing resources corresponding to the resource demand information for the target three-dimensional model; and displaying the dynamic resources of the target three-dimensional model according to the processing resources so as to visually display the target three-dimensional model.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining dynamic resource reference information of the target three-dimensional model according to the display demand information, wherein the dynamic resource reference information comprises model file resource information, texture resource information and animation resource information; and determining resource demand information according to the dynamic resource reference information, wherein the resource demand information is used for indicating the computing resource demand and the storage resource demand.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining a first dynamic resource type required by a target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information; if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than a preset threshold value, determining resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter; determining an initial allocation strategy according to the second dynamic resource quantity and the second dynamic resource type, wherein the initial allocation strategy comprises the second dynamic resource quantity and the initial allocation strategy of the second dynamic resource type, the second dynamic resource quantity, the resource priority of the second dynamic resource type and the initial resource allocation strategy; and determining dynamic resource reference information according to the initial allocation strategy and the display effect.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining the resource utilization rate according to the size of the processing resource; if the resource utilization rate is smaller than the utilization rate threshold value, carrying out detail adjustment processing on the target three-dimensional model to obtain a target three-dimensional model with the adjusted details; and acquiring the three-dimensional model to be displayed according to the processing resources, the dynamic resources and the target three-dimensional model subjected to detail adjustment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Acquiring a user adjustment requirement input by a user, wherein the user adjustment requirement comprises at least one of a detail adjustment requirement, a visual angle screening requirement and a distance screening requirement; screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model; and loading the dynamic resources into the target three-dimensional model after screening processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining model difference information according to the target three-dimensional model after screening and the target three-dimensional model after detail adjustment; performing appearance optimization treatment on the target three-dimensional model subjected to the screening treatment according to the model difference information to obtain an optimized target three-dimensional model; correspondingly, the method for utilizing the processing resources, loading the dynamic resources into the target three-dimensional model after screening processing to obtain the three-dimensional model to be displayed, comprises the following steps: and loading the dynamic resources into the target three-dimensional model after optimization processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
performing compression coding treatment on the three-dimensional model to be displayed to obtain a target three-dimensional model after the compression coding treatment, sending the target three-dimensional model after the compression coding treatment to a client, and using the target three-dimensional model after the compression coding treatment for decoding and decompressing the target three-dimensional model after the compression coding treatment by the client to obtain the three-dimensional model to be displayed and performing visual display on the three-dimensional model to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing and processing the interaction data to determine an interaction mode corresponding to the interaction data, wherein the interaction mode comprises a simple interaction mode or a complex interaction mode; and determining display requirement information according to the interaction mode, wherein the display requirement information comprises display effects and display parameters corresponding to detail display requirements or display effects and display parameters corresponding to simple display requirements.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (13)

1. A model presentation method, the method comprising:
Acquiring interaction data of a user aiming at a target three-dimensional model, and determining display demand information of the target three-dimensional model according to the interaction data;
According to the display demand information, determining resource demand information of the target three-dimensional model, and distributing processing resources corresponding to the resource demand information for the target three-dimensional model;
and displaying the dynamic resources of the target three-dimensional model according to the processing resources so as to visually display the target three-dimensional model.
2. The method of claim 1, wherein determining the resource requirement information of the target three-dimensional model according to the presentation requirement information comprises:
Determining dynamic resource reference information of the target three-dimensional model according to the display demand information, wherein the dynamic resource reference information comprises model file resource information, texture resource information and animation resource information;
and determining the resource demand information according to the dynamic resource reference information, wherein the resource demand information is used for indicating the computing resource demand and the storage resource demand.
3. The method of claim 1, wherein said determining said resource requirement information from said dynamic resource reference information comprises:
determining a first dynamic resource type required by the target three-dimensional model and a first dynamic resource quantity corresponding to each first dynamic resource type according to the dynamic resource reference information;
And if the statistical value of the first dynamic resource quantity corresponding to each first dynamic resource type is larger than a preset threshold value, determining the resource demand information according to each first dynamic resource type and the first dynamic resource quantity corresponding to each first dynamic resource type.
4. The method according to claim 1, wherein the display requirement information includes a display effect and a display parameter, and the determining the dynamic resource reference information of the target three-dimensional model according to the display requirement information includes:
Acquiring a second dynamic resource quantity and a second dynamic resource type corresponding to the display effect and the display parameter according to the display effect and the display parameter;
Determining an initial allocation policy according to the second dynamic resource quantity and the second dynamic resource type, wherein the initial allocation policy comprises the initial allocation policy of the second dynamic resource quantity and the second dynamic resource type, the resource priority of the second dynamic resource quantity and the second dynamic resource type and the initial resource allocation policy;
and determining the dynamic resource reference information according to the initial allocation strategy and the display effect.
5. The method according to claim 1, wherein the exposing the dynamic resource of the target three-dimensional model according to the processing resource comprises:
determining a resource utilization rate according to the size of the processing resource;
if the resource utilization rate is smaller than the utilization rate threshold value, carrying out detail adjustment processing on the target three-dimensional model to obtain a target three-dimensional model with the adjusted details;
and acquiring the three-dimensional model to be displayed according to the processing resource, the dynamic resource and the target three-dimensional model after detail adjustment.
6. The method according to claim 5, wherein the obtaining the three-dimensional model to be displayed according to the processing resource, the dynamic resource and the target three-dimensional model after detail adjustment includes:
Acquiring a user adjustment requirement input by a user, wherein the user adjustment requirement comprises at least one of a detail adjustment requirement, a visual angle screening requirement and a distance screening requirement;
screening the target three-dimensional model subjected to detail adjustment according to the user adjustment requirement to obtain a screened target three-dimensional model;
and loading the dynamic resources into the target three-dimensional model after screening processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
7. The method according to claim 6, wherein the loading the dynamic resource into the target three-dimensional model after the screening process by using the processing resource, before obtaining the three-dimensional model to be displayed, the method further comprises:
determining model difference information according to the target three-dimensional model after screening and the target three-dimensional model after detail adjustment;
performing appearance optimization treatment on the target three-dimensional model subjected to the screening treatment according to the model difference information to obtain an optimized target three-dimensional model;
Correspondingly, using the processing resource, loading the dynamic resource into the target three-dimensional model after screening processing to obtain the three-dimensional model to be displayed, including:
and loading the dynamic resources into the target three-dimensional model after optimization processing by utilizing the processing resources to obtain the three-dimensional model to be displayed.
8. The method according to any one of claims 5-7, further comprising:
Performing compression coding on the three-dimensional model to be displayed to obtain a target three-dimensional model after the compression coding, and sending the target three-dimensional model after the compression coding to a client, wherein the target three-dimensional model after the compression coding is used for decoding and decompressing the target three-dimensional model after the compression coding by the client to obtain the three-dimensional model to be displayed, and performing visual display on the three-dimensional model to be displayed.
9. The method of claim 1, wherein determining presentation demand information for the target three-dimensional model from the interaction data comprises:
Analyzing and processing the interaction data, and determining an interaction mode corresponding to the interaction data, wherein the interaction mode comprises a simple interaction mode or a complex interaction mode;
And determining the display requirement information according to the interaction mode, wherein the display requirement information comprises a display effect and a display parameter corresponding to the detail display requirement or a display effect and a display parameter corresponding to the simple display requirement.
10. A model display device, the device comprising:
the acquisition module is used for acquiring interaction data of a user aiming at a target three-dimensional model and determining display demand information of the target three-dimensional model according to the interaction data;
the distribution module is used for determining the resource demand information of the target three-dimensional model according to the display demand information and distributing processing resources corresponding to the resource demand information for the target three-dimensional model;
And the processing module is used for carrying out display processing on the dynamic resources of the target three-dimensional model according to the processing resources so as to carry out visual display on the target three-dimensional model.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 9.
CN202410523175.4A 2024-04-28 2024-04-28 Model display method, device, apparatus, storage medium and program product Pending CN118331740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410523175.4A CN118331740A (en) 2024-04-28 2024-04-28 Model display method, device, apparatus, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410523175.4A CN118331740A (en) 2024-04-28 2024-04-28 Model display method, device, apparatus, storage medium and program product

Publications (1)

Publication Number Publication Date
CN118331740A true CN118331740A (en) 2024-07-12

Family

ID=91764221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410523175.4A Pending CN118331740A (en) 2024-04-28 2024-04-28 Model display method, device, apparatus, storage medium and program product

Country Status (1)

Country Link
CN (1) CN118331740A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118981381A (en) * 2024-10-21 2024-11-19 杭州电子科技大学 Model replacement method, device, equipment and medium applied to chemical process software

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118981381A (en) * 2024-10-21 2024-11-19 杭州电子科技大学 Model replacement method, device, equipment and medium applied to chemical process software

Similar Documents

Publication Publication Date Title
US10728553B2 (en) Visual quality preserving quantization parameter prediction with deep neural network
US6819793B1 (en) Color distribution for texture and image compression
EP2005393B1 (en) High quality image processing
US8644627B2 (en) Using resolution numbers to determine additional component values
WO2017190691A1 (en) Picture compression method and apparatus
US8571339B2 (en) Vector-based image processing
US20230082809A1 (en) Method and data processing system for lossy image or video encoding, transmissionand decoding
KR20090005197A (en) Image processing
CN104243992B (en) Image processing apparatus and image processing method
CN118331740A (en) Model display method, device, apparatus, storage medium and program product
US8837842B2 (en) Multi-mode processing of texture blocks
CN114241350A (en) Video coding test sequence determination method, related device and computer program product
CN117915088A (en) Video processing method, video processing device, electronic equipment and computer readable storage medium
CN101919248A (en) Byte representation for enhanced image compression
WO2023179710A1 (en) Coding method and terminal
Terrace et al. Unsupervised conversion of 3D models for interactive metaverses
CN108668170B (en) Image information processing method and device, and storage medium
WO2024234593A1 (en) Data encoding method and apparatus, data decoding method and apparatus, computer device, and storage medium
US11515961B2 (en) Encoding data arrays
CN114742943A (en) Three-dimensional model attribute image simplification method and device based on rate distortion optimization
Munkberg et al. Practical HDR texture compression
US12322031B1 (en) Systems and methods for reducing point cloud and texture data using adapted splatting techniques
US7468733B2 (en) Method and system for improving color reduction
CN116437162B (en) An information transmission method, device, display and storage medium
CN119011849A (en) Code rate control method, device, computer equipment, storage medium and computer program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination