CN111724469A - Loading method and display method of three-dimensional model, vehicle and storage medium - Google Patents

Loading method and display method of three-dimensional model, vehicle and storage medium Download PDF

Info

Publication number
CN111724469A
CN111724469A CN202010598799.4A CN202010598799A CN111724469A CN 111724469 A CN111724469 A CN 111724469A CN 202010598799 A CN202010598799 A CN 202010598799A CN 111724469 A CN111724469 A CN 111724469A
Authority
CN
China
Prior art keywords
model
information
loading
dimensional model
dimensional
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
CN202010598799.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.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Internet of Vehicle Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Internet of Vehicle Technology Co Ltd filed Critical Guangzhou Xiaopeng Internet of Vehicle Technology Co Ltd
Priority to CN202010598799.4A priority Critical patent/CN111724469A/en
Publication of CN111724469A publication Critical patent/CN111724469A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a loading method of a three-dimensional model. The loading method 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; in the case where a predetermined condition is satisfied, second model information is loaded on the basis of the first model to generate a three-dimensional model. According to the loading method and the display method of the three-dimensional model, the vehicle and the storage medium of the three-dimensional model, when the three-dimensional model is loaded, the main body information used for presenting the basic framework of the three-dimensional model is preferentially loaded, the three-dimensional model can be presented for a user in a short time, 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.

Description

Loading method and display method of three-dimensional model, vehicle and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a loading method, a display method, a vehicle, and a storage medium for a three-dimensional model.
Background
Compared with a plane image, the three-dimensional image of the object has stronger stereoscopic impression and vividness, and the user experience is better in man-machine interaction. The presentation of the three-dimensional object image needs to be realized by loading a corresponding three-dimensional model through a system, and along with the increase of the complexity of the image, model information needing to be loaded is more and more, the loading time is longer and longer, the time for a user to wait for the loading of the model is also longer and longer, and the interactive experience is poorer.
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.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart diagram illustrating a method for loading a three-dimensional model according to some embodiments of the present disclosure.
FIG. 2 is a schematic illustration of a vehicle according to certain embodiments of the present application.
FIG. 3 is a block diagram of a loading device according to some embodiments of the present application.
FIG. 4 is a schematic diagram of a scenario in accordance with certain embodiments of the present application.
FIG. 5 is a schematic diagram of a scenario in accordance with certain embodiments of the present application.
FIG. 6 is a flow chart illustrating a loading method according to some embodiments of the present application
FIG. 7 is a flow diagram illustrating a loading method according to some embodiments of the present application.
FIG. 8 is a flow diagram illustrating a loading method according to some embodiments of the present application.
FIG. 9 is a flow diagram illustrating a loading method according to some embodiments of the present application.
FIG. 10 is a flow diagram illustrating a loading method according to some embodiments of the present application.
FIG. 11 is a flow diagram illustrating a loading method according to some embodiments of the present application.
FIG. 12 is a flow diagram illustrating a loading method according to some embodiments of the present application.
FIG. 13 is a schematic flow chart diagram illustrating a method for displaying a three-dimensional model according to some embodiments of the present application.
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.

Claims (11)

1. A loading method of a three-dimensional model is characterized by comprising 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.
2. The loading method according to claim 1, further comprising:
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.
3. The loading method according to claim 1, wherein the loading the second model information on the basis of the first model to generate the three-dimensional model in the case where 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.
4. The loading method according to claim 1 or 3, wherein the second model information includes a plurality of second model sub information, the loading method including:
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.
5. The loading method according to claim 4, wherein the loading the second model information on the basis of the first model to generate the three-dimensional model in the case where 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.
6. The loading method according to claim 5, wherein 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.
7. The loading method according to claim 6, wherein said 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 value comprises:
and loading the second model sub-information from the model information cache.
8. The loading method according to claim 7, wherein 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.
9. A display method of a three-dimensional model for a vehicle-mounted display device is characterized by comprising 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.
10. 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.
11. A non-transitory computer-readable storage medium of computer-executable instructions that, when executed by one or more processors, cause the processors to perform the loading method of any one of claims 1-8 or the display method of claim 9.
CN202010598799.4A 2020-06-28 2020-06-28 Loading method and display method of three-dimensional model, vehicle and storage medium Pending CN111724469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010598799.4A CN111724469A (en) 2020-06-28 2020-06-28 Loading method and display method of three-dimensional model, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010598799.4A CN111724469A (en) 2020-06-28 2020-06-28 Loading method and display method of three-dimensional model, vehicle and storage medium

Publications (1)

Publication Number Publication Date
CN111724469A true CN111724469A (en) 2020-09-29

Family

ID=72569348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010598799.4A Pending CN111724469A (en) 2020-06-28 2020-06-28 Loading method and display method of three-dimensional model, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN111724469A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114647462A (en) * 2022-05-23 2022-06-21 深圳市中视典数字科技有限公司 Three-dimensional model data lightweight loading method and system
CN116310226A (en) * 2023-05-16 2023-06-23 深圳大学 Three-dimensional object hierarchical model generation method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050058877A (en) * 2003-12-12 2005-06-17 한국전자통신연구원 Apparatus and method for motion data processing
US8471849B1 (en) * 2012-03-19 2013-06-25 Google Inc. Prioritization of display of portions of three-dimensional object models
CN105741349A (en) * 2016-01-29 2016-07-06 北京京能高安屯燃气热电有限责任公司 Loading method and device of complex three-dimensional model in three-dimensional virtual simulation
CN106485789A (en) * 2016-09-14 2017-03-08 乐视控股(北京)有限公司 A kind of 3D model loading method and its device
CN107992661A (en) * 2017-11-27 2018-05-04 中车工业研究院有限公司 CAD modeling datas streaming method, server and client side
CN108597028A (en) * 2018-04-11 2018-09-28 北京邮电大学 A kind of method, apparatus and equipment of continuous load Web AR objects
CN108733478A (en) * 2017-04-21 2018-11-02 深圳萤火虫数字图像有限公司 Three dimensional image processing method and device
CN110162726A (en) * 2019-05-09 2019-08-23 腾讯科技(深圳)有限公司 Loading method, device and the storage medium of page resource
CN111049870A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Application downloading and sending method, device and system
CN111047676A (en) * 2018-10-12 2020-04-21 中国移动通信集团广西有限公司 Image rendering method and device and storage medium
CN111292387A (en) * 2020-01-16 2020-06-16 广州小鹏汽车科技有限公司 Dynamic picture loading method and device, storage medium and terminal equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050058877A (en) * 2003-12-12 2005-06-17 한국전자통신연구원 Apparatus and method for motion data processing
US8471849B1 (en) * 2012-03-19 2013-06-25 Google Inc. Prioritization of display of portions of three-dimensional object models
CN105741349A (en) * 2016-01-29 2016-07-06 北京京能高安屯燃气热电有限责任公司 Loading method and device of complex three-dimensional model in three-dimensional virtual simulation
CN106485789A (en) * 2016-09-14 2017-03-08 乐视控股(北京)有限公司 A kind of 3D model loading method and its device
CN108733478A (en) * 2017-04-21 2018-11-02 深圳萤火虫数字图像有限公司 Three dimensional image processing method and device
CN107992661A (en) * 2017-11-27 2018-05-04 中车工业研究院有限公司 CAD modeling datas streaming method, server and client side
CN108597028A (en) * 2018-04-11 2018-09-28 北京邮电大学 A kind of method, apparatus and equipment of continuous load Web AR objects
CN111047676A (en) * 2018-10-12 2020-04-21 中国移动通信集团广西有限公司 Image rendering method and device and storage medium
CN111049870A (en) * 2018-10-15 2020-04-21 华为技术有限公司 Application downloading and sending method, device and system
CN110162726A (en) * 2019-05-09 2019-08-23 腾讯科技(深圳)有限公司 Loading method, device and the storage medium of page resource
CN111292387A (en) * 2020-01-16 2020-06-16 广州小鹏汽车科技有限公司 Dynamic picture loading method and device, storage medium and terminal equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑维欣: "基于WebGL的轻量级PBR技术研究与实现", 《万方学位论文数据库》, 18 January 2019 (2019-01-18), pages 2 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114647462A (en) * 2022-05-23 2022-06-21 深圳市中视典数字科技有限公司 Three-dimensional model data lightweight loading method and system
CN116310226A (en) * 2023-05-16 2023-06-23 深圳大学 Three-dimensional object hierarchical model generation method, device, equipment and storage medium
CN116310226B (en) * 2023-05-16 2023-08-18 深圳大学 Three-dimensional object hierarchical model generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108010112B (en) Animation processing method, device and storage medium
US11513820B2 (en) Method for resource allocation, terminal, and computer-readable storage medium
US11412153B2 (en) Model-based method for capturing images, terminal, and storage medium
CN110209501A (en) Frequency adjusting method, device, terminal and the storage medium of graphics processor
CN107180444B (en) A kind of animation producing method, device, terminal and system
CN108664651B (en) Pattern recommendation method, device and storage medium
US10474574B2 (en) Method and apparatus for system resource management
CN108646906A (en) Frame per second method of adjustment, device, storage medium and intelligent terminal
CN111724469A (en) Loading method and display method of three-dimensional model, vehicle and storage medium
CN114968521A (en) Distributed rendering method and device
CN107633013A (en) Page picture generation method, device and computer-readable recording medium
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN112927332A (en) Skeletal animation updating method, device, equipment and storage medium
US11102397B2 (en) Method for capturing images, terminal, and storage medium
CN107071284A (en) A kind of photographic method and terminal
CN112489172A (en) Method, system, electronic device and storage medium for producing skeleton animation
CN116721007A (en) Task control method, system and device, electronic equipment and storage medium
CN112135056A (en) Shooting method, shooting device, electronic equipment and storage medium
CN114885199B (en) Real-time interaction method, device, electronic equipment, storage medium and system
CN114092608B (en) Expression processing method and device, computer readable storage medium and electronic equipment
CN113384893A (en) Data processing method and device and computer readable storage medium
CN113763552A (en) Three-dimensional geographic model display method and device, computer equipment and storage medium
CN109064416B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112348955A (en) Object rendering method
CN114816597A (en) Content display method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou Xiaopeng Automatic Driving Technology Co.,Ltd.

Address before: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Xiaopeng Internet of vehicles Technology Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20201207

Address after: 510640 No.8 Songgang street, Cencun, Tianhe District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU XIAOPENG MOTORS TECHNOLOGY Co.,Ltd.

Address before: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Xiaopeng Automatic Driving Technology Co.,Ltd.

TA01 Transfer of patent application right