Disclosure of Invention
In view of this, embodiments of the present application provide a loading method, a display method, a vehicle, and a storage medium for a three-dimensional model.
The application provides a loading method of a three-dimensional model, which comprises the following steps:
classifying the model information of the three-dimensional model according to a preset rule to obtain first model information and second model information, wherein the first model information is used for presenting main body information of the three-dimensional model, and the second model information is used for presenting detail information of the three-dimensional model;
loading the first model information to generate a first model;
and loading the second model information on the basis of the first model to generate the three-dimensional model under the condition that a preset condition is met.
In some embodiments, the loading method further comprises:
acquiring environmental information of the three-dimensional model;
the loading the first model information to generate a first model comprises:
loading the first model information and the environment information to generate the first model.
In some embodiments, said loading said second model information on the basis of said first model to generate said three-dimensional model if a predetermined condition is satisfied comprises:
detecting the processing load of the loading method;
loading the second model information on the basis of the first model to generate the three-dimensional model when the processing load is less than a predetermined threshold.
In some embodiments, the second model information includes a plurality of second model sub-information, and the loading method includes:
acquiring interaction frequency aiming at a plurality of pieces of second model sub information;
and determining the weights of the plurality of pieces of second model sub information according to the interaction frequency.
In some embodiments, said loading said second model information on the basis of said first model to generate said three-dimensional model if a predetermined condition is satisfied comprises:
and loading the plurality of pieces of second model sub information on the basis of the first model from high to low in sequence according to the weight.
In some embodiments, the loading method comprises:
and placing a preset amount of second model sub-information into a model information cache from high to low according to the weight.
In some embodiments, said loading said second model information on the basis of said first model to generate said three-dimensional model when said processing load is less than a predetermined threshold comprises:
and loading the second model sub-information from the model information cache.
In some embodiments, the loading method comprises:
determining the weights of a plurality of pieces of second model sub information every predetermined period;
and resetting the model information cache according to the weight.
The application provides a display method of a three-dimensional model, which is used for a vehicle-mounted display device and comprises the following steps:
classifying the model information of the three-dimensional model according to a preset rule to obtain first model information and second model information, wherein the first model information is used for presenting main body information of the three-dimensional model, and the second model information is used for presenting detail information of the three-dimensional model;
loading the first model information to generate a first model;
controlling the vehicle-mounted display device to display the first model;
loading the second model information on the basis of the first model to generate the three-dimensional model if a predetermined condition is satisfied;
and controlling the vehicle-mounted display device to display the three-dimensional model.
The present application provides a vehicle comprising a processor configured to:
classifying the model information of the three-dimensional model according to a preset rule to obtain first model information and second model information, wherein the first model information is used for presenting main body information of the three-dimensional model, and the second model information is used for presenting detail information of the three-dimensional model;
loading the first model information to generate a first model;
and loading the second model information on the basis of the first model to generate the three-dimensional model under the condition that a preset condition is met.
A non-transitory computer-readable storage medium containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the loading method or the display method is provided.
In the loading method, the display method, the vehicle and the storage medium of the three-dimensional model in the embodiment of the application, when the three-dimensional model is loaded, the model information of the three-dimensional model is classified according to the preset rule, the main body information for presenting the basic frame of the three-dimensional model is preferentially loaded, the three-dimensional model can be presented for a user in a short time, compared with the method of presenting the three-dimensional model after loading all the model information, the time of waiting for loading a large amount of model information by the user is shortened, the user experience is improved, and for equipment with limited processing capacity, the speed of loading the three-dimensional model can be improved.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
Referring to fig. 1, the present application provides a loading method of a three-dimensional model, including:
s10: classifying the model information of the three-dimensional model according to a preset rule to obtain first model information and second model information;
s20: loading the first model information to generate a first model;
s30: and loading the second model information on the basis of the first model to generate the three-dimensional model under the condition that a preset condition is met.
Referring to fig. 2, the present embodiment provides a vehicle 100. The vehicle 100 includes a processor 12. The processor 12 is configured to classify model information of the three-dimensional model according to a predetermined rule to obtain first model information and second model information, and to load the first model information to generate the first model, and to load the second model information on the basis of the first model to generate the three-dimensional model if a predetermined condition is satisfied. The processor 12 may be a processor 12 independently provided for controlling a loading device of the three-dimensional model, or may be a processor 12 of a vehicle driving system, which is not limited herein.
Referring to fig. 3, an embodiment of the present application further provides a loading device 110 for a three-dimensional model, and a loading method for a three-dimensional model of an embodiment of the present application may be implemented by the control device 110.
Specifically, the control device 110 includes an acquisition module 111, a classification module 112, and a loading module 113. S10 may be implemented by the classification module 112 and S20 and S30 may be implemented by the loading module 113. In other words, the classification module 112 is configured to classify model information of the three-dimensional model according to a predetermined rule to obtain first model information and second model information, and the loading module 113 is configured to load the first model information to generate the first model, and to load the second model information on the basis of the first model to generate the three-dimensional model if a predetermined condition is satisfied.
Specifically, before classifying the model information of the three-dimensional model, the model information of the three-dimensional model is obtained.
In some embodiments, the model information for the three-dimensional model may be obtained directly from the local. Specifically, when the triggering condition for loading the three-dimensional model is monitored, local three-dimensional model information associated with the triggering condition for loading the three-dimensional model is locally called. The three-dimensional model loading triggering condition refers to a preset triggering condition for the processor to load the three-dimensional model, and in a specific technical implementation, the triggering condition for the three-dimensional model loading may be that an operation on the terminal meets a certain condition. For example, for a three-dimensional figure, the trigger condition for loading the three-dimensional model may be set to receive the wake-up message for calling out the three-dimensional figure when the three-dimensional figure needs to be presented. For another example, the triggering condition for loading the three-dimensional model may also be set to meet the display condition of the three-dimensional image, for example, when all tasks of the current scene are completed and the three-dimensional image needs to be displayed for the next prompt. At this time, local three-dimensional model information associated with the current three-dimensional model loading trigger condition is acquired locally. In the embodiment, the three-dimensional model information can be acquired from the local database, and when the network condition is not good, the three-dimensional model information which does not need to be networked can be quickly acquired, and a corresponding model is generated, so that the display efficiency of the three-dimensional model can be improved.
In other embodiments, model information for the three-dimensional model may be obtained from a server. Specifically, when the condition that the triggering condition for loading the three-dimensional model is met is monitored, a request is sent to the server, and the three-dimensional model information returned by the server based on the request is received. At this time, three-dimensional model information associated with a trigger condition of the current three-dimensional model loading is acquired from the server. In this embodiment, for some three-dimensional model information that can be obtained through networking, the three-dimensional model information can be obtained from the server database, and corresponding models are generated, so that the display efficiency of the three-dimensional model can be improved.
It will be appreciated that in particular embodiments, the three-dimensional model information may also be obtained from both the local and server. Specifically, when the condition that the triggering condition for loading the three-dimensional model is met is monitored, the associated local three-dimensional model information is called locally, a request is sent to the server, and the three-dimensional model information returned by the server is received. Therefore, the three-dimensional model acquisition efficiency can be further improved, the waiting time of a user is shortened, and the interactive experience is improved.
And after the model information of the three-dimensional model is obtained, classifying the model information according to a preset rule. According to the requirements under different scenes, a research and development staff specifically sets a predetermined rule for classifying the three-dimensional model information. In this embodiment, the model information of the three-dimensional model is divided into main information and detail information, the main information forms a basic frame of the three-dimensional model, and the detail information is used for displaying the form and the action of the three-dimensional model, so that the three-dimensional model is more detailed and real.
The first model information is used for presenting main body information of the three-dimensional model, that is, information such as space, outline, brightness and the like which is required to be presented preferentially when the three-dimensional model is presented and is indispensable for constructing the three-dimensional model. The subject information includes, but is not limited to, vertex information, side information, face information, texture coordinate information, lighting environment information, etc. of the three-dimensional model. Wherein the vertex information represents position information of each vertex of the three-dimensional model in a three-dimensional space. The side information converges a plurality of vertex information on the surface of the three-dimensional model, and the side information represents position information of each side of the three-dimensional model in a three-dimensional space. The surface information converges a plurality of pieces of side information on a surface of the three-dimensional model, and the surface information represents position information of each surface of the three-dimensional model in a three-dimensional space. The texture of the three-dimensional model is a two-dimensional image file, the texture image can be mapped to the surface of the three-dimensional model through texture mapping, the mapping mode is texture coordinates, and the texture coordinate information represents position information when the texture image is mapped to the surface of the three-dimensional model. The lighting environment information can highlight the main body, render atmosphere and generally control the picture effect of the three-dimensional model on a macroscopic level. The subject information can be considered as an essential element constituting the three-dimensional model, and needs to be presented at the first time when the three-dimensional model is presented.
Referring to fig. 4, in some embodiments, when the vehicle-mounted display screen needs to display a three-dimensional image of an object, the vehicle-mounted display screen needs to immediately display main body information of the object, that is, information of vertices, lines, light environment and the like of the object, and at this time, the vehicle processor obtains first model information of the three-dimensional model of the object to generate a corresponding first model.
Since the first model information does not include the detail information of the three-dimensional model of the object and the first model information includes a relatively small amount of data, the time required to load the first model information is shorter than the time required to load all the information of the three-dimensional model, and the first model of the object can be generated faster. Therefore, for some processors with limited performance and which do not specially process the three-dimensional model, the loading time of the three-dimensional model can be shortened, and the user experience is improved.
The second model information is used for presenting the detail information of the three-dimensional model, that is, the information which is not required to be presented at the first time when the three-dimensional model is presented. The detail information includes, but is not limited to, limb movement information of the three-dimensional model, texture information of facial expressions, interior information, and the like. The display of the detail information can enable the three-dimensional model in the display screen to be more detailed and real, but the detail information basically does not influence the normal use of a user when the three-dimensional model is displayed, so that the detail information does not need to be presented at the first time when the three-dimensional model is displayed.
Referring to fig. 5, in case that a predetermined condition is satisfied, second model information is loaded on the basis of the first model to generate a three-dimensional model. In some embodiments, information such as limb movement of a three-dimensional object is classified as detail information, information such as vertex coordinate information and face information of the three-dimensional object is classified as main body information, the limb movement of the three-dimensional object cannot be separately displayed when the object is not generated, and the limb movement needs to be displayed by taking the three-dimensional object as a carrier. That is, the second model information is loaded on the basis of the first model.
Therefore, the method can ensure that the detail information is displayed together with the main body information when the detail information needs to be presented, reduces the memory consumption of the processor, optimizes the resource allocation of the processor to a greater extent, and improves the loading rate of the three-dimensional model.
Further, the subject for classifying the three-dimensional model information may be a developer or a processor.
In some examples, the three-dimensional model information is classified by research personnel, specifically, the research personnel divides the three-dimensional model information into first model information and second model information according to a classification rule, so that the information classification standard is more flexible, the classification result is more practical, the three-dimensional model information is reasonably classified, and the loading rate of the three-dimensional model can be increased.
In other examples, the three-dimensional model information is classified by the processor in the process of loading the model, specifically, the classification rule is made into a corresponding program and is preset in the processor, and the processor automatically classifies the three-dimensional model information according to the program setting, so that the speed of classifying the three-dimensional model information can be increased, and the loading rate of the three-dimensional model can be increased correspondingly.
In the loading method, the loading device 110 and the vehicle 100 of the three-dimensional model according to the embodiment of the application, when the three-dimensional model is loaded, the model information of the three-dimensional model is classified according to the predetermined rule, the main body information for presenting the basic frame of the three-dimensional model is preferentially loaded, the three-dimensional model can be presented for a user in a short time, compared with the case that the three-dimensional model is presented after all model information is loaded, the time for the user to wait for loading a large amount of model information is shortened, the user experience is improved, and for equipment with limited processing capacity, the speed for loading the three-dimensional model can be improved.
Referring to fig. 6, in some embodiments, the loading method further includes:
s40: acquiring environmental information of the three-dimensional model;
s20 includes:
s201: the first model information and the environment information are loaded to generate a first model.
In some embodiments, S40 may be implemented by the obtaining module 111, and S201 may be implemented by the loading module 113. In other words, the obtaining module 111 is configured to obtain environment information of the three-dimensional model, and the loading module 113 is configured to load the first model information and the environment information to generate the first model.
In some embodiments, the processor 12 is configured to obtain environmental information for the three-dimensional model, and to load the first model information and the environmental information to generate the first model.
Specifically, the environment information of the three-dimensional model may be background environment information exhibited by the three-dimensional model, such as lighting information, bounding box information, and the like. Because the background environments of the three-dimensional models in different scenes are different, in order to reduce the bearing capacity of the first model information of the three-dimensional models to a greater extent and shorten the loading time, the embodiment synthesizes the environment information in a dynamic adding mode. The dynamic adding mode can adapt to the requirements of displaying environments in different scenes, respectively obtains environment information of different three-dimensional models, generates the displaying environment of the three-dimensional models according to the environment information, and improves the loading rate of the three-dimensional models.
In some embodiments, first model information for a three-dimensional model is added to a model information queue. When the three-dimensional model is generated, corresponding environment information is synthesized in a code dynamic adding mode according to different scenes, for example, light is added into the environment, the environment information is initialized, and the display environment of the three-dimensional model is generated. After the environment initialization is completed, first model information needing to be presented is found from the model information queue, a first model is generated, and the first model and the presentation environment generated by the environment information are presented together.
Compared with the mode of adding the environment information to the first model information, the display environment dynamic synthesis method and the display environment dynamic synthesis device can dynamically synthesize the display environments in different scenes, avoid the first model information from being too complicated, greatly reduce the bearing capacity of the first model information and shorten the loading time of the three-dimensional model.
Referring to fig. 7, in some embodiments, the loading method further includes:
s301: detecting the processing load of the loading method;
s302: when the processing load is less than a predetermined threshold, second model information is loaded on the basis of the first model to generate a three-dimensional model.
In some embodiments, S301 and S302 may be implemented by the loading module 113. In other words, the loading module 113 is configured to detect a processing load of the loading method, and to load the second model information on the basis of the first model to generate the three-dimensional model when the processing load is smaller than a predetermined threshold.
In some embodiments, the processor 12 is configured to detect a processing load of the loading method, and to load the second model information on the basis of the first model to generate the three-dimensional model when the processing load is less than a predetermined threshold.
Specifically, the process of detecting the load of the loading method specifically includes:
sampling processor data for the first time;
second sampling of processor data;
calculating the processing load of a processor;
it is determined whether the processing load is less than a predetermined threshold.
The data sampled for the first time of the processor data are the operation duration aT0 and the idle duration iT0 of the processor, and the data sampled for the second time of the processor data are the operation duration aT1 and the idle duration iT1 of the processor. The processing load of the processor is the ratio of the use time length of the processor in unit time to the running time length, wherein the use time length is (aT1-aT0) - (iT1-iT0), and the running time length is aT1-aT 0.
The predetermined threshold of the processing load may be set according to the heat generation condition of the processor, or may be set according to the core voltage of the processor, and the specific manner is not limited. In some embodiments, when the temperature of the processor is 30 degrees celsius higher than the ambient temperature, the processing load value of the corresponding processor is the predetermined threshold. In other embodiments, when the core voltage of the processor is too high or too low, which may affect the system stability, the processing load value of the corresponding processor is the predetermined threshold.
In this embodiment, the processing load threshold of the processor may be set to 50%, that is, when the processor is idle for half or more of the time during the operation, the second model information is loaded on the basis of the first model to generate the three-dimensional model.
Therefore, the load of the processor can be reduced, the instability of the system caused by overhigh peak value of the processor is avoided, the stability of the system is ensured, and meanwhile, the loading rate of the three-dimensional model can be guaranteed.
The matching threshold of the processor may be set according to parameters such as the arithmetic processing capability of the processor and the arithmetic temperature environment, and the numerical value is not limited, and may be, for example, 60% or 70%.
Referring to fig. 8, in some embodiments, the second model information includes a plurality of second model sub-information, and the loading method includes:
s50: acquiring interaction frequency aiming at a plurality of second model sub-information;
s60: and determining the weights of the plurality of second model sub-information according to the interaction frequency.
In certain embodiments, S50 and S60 may be implemented by the obtaining module 111. In other words, the obtaining module 111 is configured to obtain an interaction frequency for the plurality of second model sub information, and determine a weight of the plurality of second model sub information according to the interaction frequency.
In some embodiments, the processor 12 is configured to obtain interaction frequencies for the plurality of second model sub-information, and to determine weights for the plurality of second model sub-information according to the interaction frequencies.
Specifically, the second model information includes a plurality of second model sub information, and loading each model sub information may result in a corresponding second sub model. The second model sub information and the second sub model may be in a one-to-one correspondence relationship, for example, one second model sub information is set corresponding to one second sub model.
Further, the weight of the sub information of the second model has different obtaining methods under different application scenes.
In some embodiments, the user has not triggered the three-dimensional model, that is, the processor loads the three-dimensional model for the first time, and at this time, the processor has not stored therein the default weight of the sub-information of the second model specifically for the interaction frequency of the user with the second sub-model, and the processor obtains the default weight of the sub-information of the second model from a large amount of user habit statistical data. For example, the user habit statistics data of a three-dimensional character represents the relationship between the triggered limb action of the three-dimensional character and the default weight of the corresponding second model sub-information as follows:
second model sub-information
|
Weight of
|
Movement of the half body
|
12
|
Voice wake-up action of left-falling limb
|
11
|
Voice listening movement of limb left-leaning
|
11
|
Voice and text conversion broadcasting action for left-leaning limbs
|
10
|
Voice wake-up action of right limb inclination
|
9
|
Voice listening movement of right limb inclination
|
9
|
Voice and text conversion broadcasting action for right-leaning limbs
|
8
|
Command response action
|
7
|
Whole body movement
|
6
|
Belly touching action
|
5
|
Touch head action
|
4
|
Touch hand motion
|
3
|
Touch leg action
|
2
|
Receive a push action
|
1
|
Touching ear action
|
0 |
In some embodiments, after the user initiates triggering of the three-dimensional model, the processor adds 1 to the default weight of the corresponding second model sub-information every multiple times the second sub-model is triggered. For example, when the user has not started using the application, the weight of the whole body motion is lower according to the default weight obtained from the user habit statistics. The user triggers the whole body action of the three-dimensional image for a plurality of times, and the weight corresponding to the whole body action is increased by 1 every time the whole body action is triggered.
Therefore, the weight can be adjusted according to the use habits of each user, the weight arrangement can be more in line with the habits of specific users, the habit statistical data of the users can be enriched, the default weight of the sub-information of the second model is more reasonable, the information of the second model can be loaded more quickly, and the waiting time of the users is shortened.
Referring to fig. 9, in some embodiments, S30 includes:
s303: and loading a plurality of pieces of second model sub information on the basis of the first model from high to low in sequence according to the weight.
In some embodiments, S303 may be implemented by the loading module 113. In other words, the loading module 113 is configured to load the plurality of pieces of second model sub information on the basis of the first model in order from top to bottom according to the weight.
In some embodiments, the processor 12 is configured to load the plurality of second model sub-information on the basis of the first model in a sequence from high to low according to the weight.
Specifically, in the second model information, the weights of the second sub-model information are different from each other, and therefore, the second model sub-information having a larger weight can be preferentially loaded. In some embodiments, the bust motion may be the most weighted, followed by a voice wake-up motion with the limb leaning to the left, followed by a voice wake-up motion with the limb leaning to the right, and thus, the bust motion may be set to the first preferentially loaded second model sub-information, the voice wake-up motion with the limb leaning to the left may be set to the second preferentially loaded second model sub-information, the voice wake-up motion with the limb leaning to the right may be set to the third preferentially loaded second model sub-information, and so on.
Therefore, the second model sub-information which is more likely to be used can be loaded more quickly, and the time for loading the three-dimensional model is shortened. Meanwhile, the system more conforms to the use habit of the user, reasonably utilizes system resources and ensures the stability of the system.
Referring to fig. 10, in some embodiments, the loading method further includes:
s70: and placing a predetermined number of second model sub-information into the model information cache from high to low according to the weight.
In some embodiments, S70 may be implemented by the load module 113. In other words, the loading module 113 is configured to place a predetermined number of second model sub-information into the model information cache from high to low according to the weight.
In some embodiments, the processor 12 is configured to place a predetermined number of second model sub-information into the model information cache from high to low according to the weight.
Specifically, the model information cache is used for storing the second model sub information, and the structure of the model information cache includes the second model sub information, a second model sub information storage path, and a second model sub information use weight. When the second sub-model is generated according to the second model sub-information for the first time, a cache corresponding to the second model sub-information is generated in the system, and the cache information of the second model sub-information is added to the model information cache by using a specific function.
For example, when the user triggers the whole body action of the three-dimensional image for the first time, the system automatically generates a cache corresponding to the whole body action, and stores the sub-information, the storage path and the use weight corresponding to the whole body action in the model information cache. Therefore, the loaded model information is convenient to reuse, the memory consumption of the processor is reduced, the resource allocation of the processor can be optimized to a greater extent, and the loading time of the three-dimensional model is shortened.
Similarly, the model information cache stores a large amount of cache information of the second model sub information, and the cache information is arranged in order from high to low according to the weight. The specific number of the second model sub information caches stored in the model information cache is not limited, and can be selected according to the performance and the application of each processor. In consideration of the memory consumption of the processor, in the embodiment, the model information cache stores the cache information of the 10 pieces of second model sub information with the largest weight, that is, the model information cache can realize that the 10 pieces of second model sub information which are most frequently triggered by the user are more quickly called.
Therefore, when the method is specifically implemented, the required second model sub-information can be found in the model information cache relatively quickly, system resources can be reasonably utilized, the phenomenon that the memory occupation peak value is too high due to too much model information cache is avoided, the stability of the system is ensured, the use habit of a user is better met, and the information which is used most often can be rapidly loaded.
Referring to fig. 11, in some embodiments, S30 further includes:
s304: and loading the second model sub-information from the model information cache.
In some embodiments, S304 may be implemented by the loading module 113. Or, the loading module 113 is configured to load the second model sub information from the model information cache.
In some embodiments, processor 12 is configured to load the second model sub-information from the model information cache.
Specifically, the second model sub information is stored in the model information cache, and when the user triggers, the corresponding second model sub information is loaded from the model information cache.
In some embodiments, if the model information cache stores corresponding second model sub-information, the second model sub-information is called to quickly load the corresponding second sub-model.
In other embodiments, the second model sub-information is reloaded if the corresponding second model sub-information is not stored in the model information cache, and the second model sub-information is weighted and arranged after being loaded and is added to the model information cache again, so that the user can call the second model sub-information when triggering the second sub-model next time.
Referring to fig. 12, in some embodiments, the loading method further includes:
s80: determining the weights of a plurality of second model sub-information every predetermined period;
s90: and resetting the model information cache according to the weight.
In some embodiments, S80 may be implemented by the obtaining module 111 and S90 may be implemented by the loading module 113. In other words, the obtaining module 111 is configured to determine weights of the plurality of second model sub information at predetermined intervals, and the loading module 113 is configured to reset the model information cache according to the weights.
In some embodiments, the processor 12 is configured to determine weights of the plurality of second model sub-information every predetermined period, and to reset the model information cache according to the weights.
Specifically, the second sub-model weight ranking in the model information cache may be dynamically updated in real time, or may be updated at a predetermined periodic frequency, and the specific manner is not limited.
In some examples, the second sub-model weight ordering in the model information cache may be updated at a frequency of a predetermined period. The predetermined period may be determined according to the natural day, the natural month, or the number of times the user triggers the second submodel. For example, the weight of each second model sub-information is updated every 7 days with a period of 7 days, and the model information cache is reset according to the weight. For another example, it is set that each time the user triggers the second sub-model 100 times is a period, the weight of each piece of second model sub-information is updated once when the number of triggers reaches 100, and the model information cache is reset according to the weight. And calling a specific function to recover the resource of the second model sub-information which is ranked later, and deleting the cache information of the second sub-model so as to save the memory of the system operation. Therefore, for equipment with ordinary processing capacity, the updating rate of the second sub-model weight sequencing in the model information cache can be maintained, too much memory of the system is not occupied, more system resources are used for loading, the time of waiting for loading by a user can be shortened, and the user experience is improved.
In other examples, the second sub-model weight ordering in the model information cache may be dynamically updated in real-time. According to the frequency of triggering the second submodel by a user, the cache information of the preset number of second model submodel information stored in the model information cache is dynamically updated in real time, the second submodel weight sequence in the model information cache is synchronously updated every time the second submodel is triggered, and the model information cache only stores the first N pieces of second model submodel information (N is more than or equal to 1) which are triggered most frequently. And calling a specific function to recover the resource of the second model sub-information which is ranked later, and deleting the cache information of the second sub-model so as to save the memory of the system operation. Therefore, the second sub-model weight sequencing in the model information cache is updated in real time, the triggering tendency of the user can be known in time, and the requirements of the user can be met flexibly.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform a method of processing a three-dimensional model as described in any of the embodiments above.
The embodiment of the application also provides a vehicle. The vehicle includes a memory and one or more processors, one or more programs being stored in the memory and configured to be executed by the one or more processors. The program includes a processing method for executing the three-dimensional model according to any one of the above embodiments.
The processor may be used to provide computational and control capabilities to support the operation of the entire vehicle. The memory of the vehicle provides an environment for the computer readable instructions in the memory to operate.
Referring to fig. 13, an embodiment of the present application further provides a display method of a three-dimensional model, which is used for a vehicle-mounted display device, and the display method includes:
s10': classifying the model information of the three-dimensional model according to a preset rule to obtain first model information and second model information;
s20': loading the first model information to generate a first model;
s30': controlling the vehicle-mounted display device to display the first model;
s40': loading second model information on the basis of the first model to generate a three-dimensional model in the case that a predetermined condition is satisfied;
s50': and controlling the vehicle-mounted display device to display the three-dimensional model.
The display method of the three-dimensional model can be realized by the vehicle.
According to the display method of the three-dimensional model, when the three-dimensional model is loaded, the model information of the three-dimensional model is classified according to the preset rules, the main body information used for presenting the basic frame of the three-dimensional model is preferentially loaded, the three-dimensional model can be presented for a user in a short time, compared with the mode that the three-dimensional model is presented after all model information is loaded, the time for the user to wait for loading a large amount of model information is shortened, the user experience is improved, and for equipment with limited processing capacity, the speed for loading the three-dimensional model can be improved.
It should be noted that, the display method of the three-dimensional model of the present application, including all the implementation manners of the loading method of the three-dimensional model, is not repeated herein, and for related contents, please refer to the explanation of the related parts.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.