Model processing method, device and electronic equipment
By simplifying and replacing the target objects in the 3D model design scene, the problems of lagging and crashes caused by excessive resource consumption in the 3D model design scene are solved, and the fluency and performance of the design operation are improved.
Patent Information
- Application Number
- CN202410808681.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-21
AI Technical Summary
When there are a large number of 3D models in the 3D model design scene, it is easy to cause freezes or crashes, affecting the smoothness of the design operation.
When specific conditions are met, the 3D model of the target object is simplified, a simplified second model is generated, and the original model is replaced in the design scene, keeping the second model in an uneditable state to reduce the amount of data and improve loading. and processing speed.
It effectively avoids lags and crashes caused by excessive resource consumption in 3D model design scenarios, and improves the fluency and overall performance of design operations.
Smart Images

Figure CN118379437B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a model processing method, device and electronic device. Background Art
[0002] When there are a large number of 3D models in the 3D model design scene, there will be freezes or even crashes, which will make the designer unable to continue the design operation. Therefore, how to ensure the smoothness of design operations when there are a large number of 3D models in the 3D model design scene becomes a technical problem to be solved. Summary of the invention
[0003] The present invention provides a model processing method, device and electronic device.
[0004] According to one aspect of the present disclosure, a model processing method is provided, comprising:
[0005] In a case where a first trigger condition is met, determining a first model of each of the one or more first target objects in the three-dimensional model design scene;
[0006] Based on the first model of each first target object, obtaining a second model of each first target object, wherein the second model of each first target object is obtained by simplifying the first model of each first target object;
[0007] Render the second model of each first target object, delete the first model of each first target object in the three-dimensional model design scene, and display the second model of each first target object at the position of the first model of each first target object, keeping the second model of each first target object in an uneditable state.
[0008] According to another aspect of the present disclosure, there is provided a model processing method, comprising:
[0009] Receiving relevant information of a first model of each first target object among one or more first target objects sent by a target device;
[0010] Simplifying the first model of each first target object to obtain a second model of each first target object;
[0011] The second model of each first target object is sent to the target device.
[0012] According to another aspect of the present disclosure, there is provided a model processing device, comprising:
[0013] A first model determination module, configured to determine a first model of each of the one or more first target objects in the three-dimensional model design scene when a first trigger condition is met;
[0014] A first simplification module of the first model, used for obtaining a second model of each first target object based on the first model of each first target object, wherein the second model of each first target object is obtained by simplifying the first model of each first target object;
[0015] The second model display module is used to render the second model of each first target object, delete the first model of each first target object in the three-dimensional model design scene, and display the second model of each first target object at the position of the first model of each first target object, keeping the second model of each first target object in an uneditable state.
[0016] According to another aspect of the present disclosure, there is provided a model processing device, comprising:
[0017] A first model receiving module, configured to receive relevant information of a first model of each first target object in one or more first target objects sent by a target device;
[0018] A second simplification module for the first model, used for simplifying the first model of each first target object to obtain a second model of each first target object;
[0019] The second model sending module is used to send the second model of each first target object to the target device.
[0020] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0021] at least one processor; and
[0022] a memory communicatively connected to the at least one processor; wherein,
[0023] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of any embodiment of the present disclosure.
[0024] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method according to any embodiment of the present disclosure.
[0025] By adopting the above scheme, based on the first model of each first target object, the second model of each first target object after being simplified is obtained, and the first model of each first target object is deleted in the three-dimensional model design scene, and the second model of each first target object is displayed in the position of the first model of each first target object. In this way, the first model of the first target object can be replaced with the simplified second model of the first target object in the three-dimensional model design scene, and the simplified second model has a smaller data volume, and is loaded and processed faster in the three-dimensional model design scene, which can improve the operating efficiency and response speed of the three-dimensional model design scene, thereby avoiding the occurrence of freezes or even crashes when there are a large number of three-dimensional models in the three-dimensional model design scene, and improving the fluency of design operations.
[0026] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0028] Figure 1 is a schematic flow chart of a model processing method according to an embodiment of the present disclosure;
[0029] Figure 2 is a schematic flow chart of a model processing method according to another embodiment of the present disclosure;
[0030] Figure 3 is a schematic block diagram of a model processing device according to an embodiment of the present disclosure;
[0031] Figure 4 is a schematic block diagram of a model processing device according to another embodiment of the present disclosure;
[0032] Figure 5 is a schematic block diagram of a model processing device according to another embodiment of the present disclosure;
[0033] Figure 6 is a schematic block diagram of a model processing device according to yet another embodiment of the present disclosure;
[0034] Figure 7 It is a block diagram of an electronic device used to implement the model processing method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0036] The first embodiment of the present disclosure provides a model processing method, such as Figure 1 As shown, including:
[0037] S110, when a first trigger condition is met, determining a first model of each of the one or more first target objects in the three-dimensional model design scene;
[0038] S120, obtaining a second model of each first target object based on the first model of each first target object, wherein the second model of each first target object is obtained by simplifying the first model of each first target object;
[0039] S130, rendering the second model of each first target object, deleting the first model of each first target object in the three-dimensional model design scene, and displaying the second model of each first target object at the position of the first model of each first target object, keeping the second model of each first target object in an uneditable state.
[0040] The model processing method of the embodiment of the present disclosure can be executed by a target device, which can be an electronic device. The electronic device can be a terminal or a server. Exemplarily, the electronic device can be a terminal device with computing capabilities. Exemplarily, the electronic device can be a server in the cloud; the server can be a single server, or can be one or more servers in a server cluster, or can be a server in a distributed system (or can be called a computing node). It should be understood that the above is only an exemplary description of an electronic device, and the actual processing may not be limited to the devices mentioned in the above examples. As long as the electronic device can execute the model processing method provided in this embodiment, it is within the protection scope of this embodiment.
[0041] By adopting the above scheme, based on the first model of each first target object, the second model of each first target object after being simplified is obtained, and the first model of each first target object is deleted in the three-dimensional model design scene, and the second model of each first target object is displayed in the position of the first model of each first target object. In this way, the first model of the first target object can be replaced with the simplified second model of the first target object in the three-dimensional model design scene, and the simplified second model has a smaller data volume, and is loaded and processed faster in the three-dimensional model design scene, which can improve the operating efficiency and response speed of the three-dimensional model design scene, thereby avoiding the occurrence of freezes or even crashes when there are a large number of three-dimensional models in the three-dimensional model design scene, and improving the fluency of design operations.
[0042] The three-dimensional model design scene may be: a design scene involving a three-dimensional model with three-dimensional space features created using an application. For example, in the field of interior decoration, it is used to construct a three-dimensional model of a building and its interior space, as well as a design scene for a three-dimensional model of office furniture and / or a three-dimensional model of living furniture in an interior space. This is only an exemplary explanation, and the three-dimensional model design scene can also be: in the field of industrial design, it is used for the appearance and structural design of products, such as the styling design scene of automobiles, home appliances, etc. Or in the field of film and television and game production, create design scenes such as characters, maps, props, etc. It can be understood that as long as it involves a three-dimensional model design scene, it is within the scope of this application, and no one is listed here.
[0043] Among them, the first model of the first target object can be: a three-dimensional model of the first target object. For example: in the field of interior decoration, the three-dimensional model of the first target object can be a three-dimensional model of a table, a three-dimensional model of a chair, a three-dimensional model of a coffee table, a three-dimensional model of a wardrobe, etc., which are not exhaustively listed here. The three-dimensional model of the first target object can also be called an unfrozen three-dimensional model of the first target object or an original three-dimensional model of the first target object. In the following implementation, the meanings expressed by the unfrozen model and the original three-dimensional model are the same as those of the first model.
[0044] The first model refers to the complete three-dimensional model that is initially constructed and has not been simplified. It is understandable that the first model contains the most comprehensive and detailed attribute data of the first target object, and may be relatively complex and rich in terms of data volume and detail.
[0045] Before determining the first model of each of the one or more first target objects in the three-dimensional model design scene, it also includes: judging whether a first trigger condition is met, and if the first trigger condition is met, determining the first model of each of the one or more first target objects in the three-dimensional model design scene; if the first trigger condition is not met, not determining the first model of each of the one or more first target objects in the three-dimensional model design scene, that is, not executing subsequent steps.
[0046] In some possible implementations, when a first trigger condition is satisfied, determining the first model of each of one or more first target objects in the three-dimensional model design scene includes: when a selection operation on a candidate first model of the one or more first target objects is detected in a first area in the three-dimensional model design scene, determining that the first trigger condition is satisfied, and using the candidate first model of each of the one or more first target objects as the first model of each first target object.
[0047] When or before the process of determining whether the first area in the three-dimensional model design scene detects the selection operation of the candidate first model of the one or more first target objects, the three-dimensional model design scene needs to be in an editable state. The three-dimensional model design scene being in an editable state may be a state that allows the user to perform various operations on the first model in the three-dimensional model design scene, and the various operations include at least one of the following: adding, deleting, moving, deforming, selecting, etc., and may also be other operations, which are not exhaustively listed here for the sake of brevity.
[0048] The first area may be: an area where the candidate first models of the one or more first target objects are located. The first area may be a first position or a first range.
[0049] Optionally, when a selection operation on a candidate first model of the one or more first target objects is detected in the first area in the three-dimensional model design scene, it is determined that the first trigger condition is met. It may be that when a click operation on a candidate first model of the first target object is detected at the first position in the three-dimensional model design scene and a confirmation operation on the freeze option is detected, it is determined that the first trigger condition is met.
[0050] Optionally, when a selection operation on the candidate first models of the one or more first target objects is detected in the first area in the three-dimensional model design scene, it is determined that the first trigger condition is met, which may be: when a box selection operation on the first range is detected in the three-dimensional model design scene, it is determined whether there are one or more candidate first models of the first target objects within the first range; when one or more candidate first models of the first target objects exist within the first range and a confirmation operation on the freeze option is detected, it is determined that the first trigger condition is met.
[0051] Among them, when there are one or more candidate first models of the first target object within the first scope and a confirmation operation for the freeze option is detected, it is determined that the first trigger condition is met, including: when there are only one or more candidate first models of the first target object within the first scope, there are no one or more second models of other target objects, and a confirmation operation for the freeze option is detected, it is determined that the first trigger condition is met.
[0052] By adopting the above solution, when the first area in the three-dimensional model design scene detects the selection operation of the candidate first model of the one or more first target objects, it is determined that the first trigger condition is met, and the candidate first model of each first target object is used as the first model of each first target object. In this way, the first model of the first target object can be determined in the three-dimensional model design scene according to the actual needs of the user, thereby improving the user experience.
[0053] In some possible implementations, the first trigger condition includes at least one of the following: the processing resource occupancy rate of the target device is greater than a first threshold, the storage resource occupancy rate of the target device is greater than a second threshold, the update time of the three-dimensional model design scene is greater than an update threshold, and the frame rate of the three-dimensional model design scene is less than a frame rate threshold.
[0054] The processing resources of the target device may be: processing resources allocated to the three-dimensional model design scene among all processing resources of the target device, or all processing resources of the target device.
[0055] The entire processing resources of the target device may be: processing resources of a CPU (Central Processing Unit) and / or processing resources of a GPU (graphics processing unit) of the target device.
[0056] The storage resources of the target device may be: storage resources allocated to the three-dimensional model design scene among all storage resources of the target device, or all storage resources of the target device.
[0057] The entire storage resource of the target device may be a RAM (Random Access Memory) of the target device.
[0058] The update time of the 3D model design scene may be: the time interval for updating and displaying the 3D model design scene on the target device.
[0059] The frame rate of the 3D model design scene may be: the number of frames rendered by the 3D model design scene per unit time, wherein the unit time may be 1 second, 2 seconds, or longer or shorter, which will not be described in detail here.
[0060] In this embodiment, before determining whether the first trigger condition is met, the three-dimensional model design scene may be in a loading state or an editable state.
[0061] The three-dimensional model design scene being in a loading state may be a process state in which the data of the first model and / or the second model is completely loaded into the three-dimensional model design scene. During this process, the user cannot operate the first model and / or the second model, such as adding, deleting, moving, deforming, selecting, etc.
[0062] By adopting the above solution, subsequent operations can be triggered when the processing resource utilization rate of the target device is too high, and / or the storage resource utilization rate is too high, and / or the update time is too long, and / or the frame rate is too low. This can avoid system freezes, crashes, and other problems due to excessive resource consumption or slow refresh of the 3D model design scene, thereby ensuring the stable operation of the 3D model design scene and improving overall performance.
[0063] In some possible implementations, determining the first model of each of the one or more first target objects in the three-dimensional model design scene when the first trigger condition is met includes: selecting the first model of each of the one or more first target objects that meet the first preset condition in the three-dimensional model design scene when the first trigger condition is met, wherein the first preset condition includes at least one of the following: the difference between the last operation time and the current time is greater than the first time threshold, and the operation frequency is less than the first frequency threshold.
[0064] The method of selecting, in a three-dimensional model design scene, the first model of each of the one or more first target objects that meet the first preset condition when the first trigger condition is met, includes at least one of the following: obtaining historical operation records of candidate first models of one or more first target objects in the three-dimensional model design scene when the first trigger condition is met; and when it is determined that there is at least one candidate first model of the first target object that meets the first preset condition based on the historical operation records of the candidate first models of one or more first target objects in the three-dimensional model design scene, using the candidate first model of the at least one first target object as the first model of each of the one or more first target objects.
[0065] The historical operation record includes at least one of the following: transformation operation record, editing operation record, material adjustment operation record, texture adjustment operation record, combination operation or split operation record, animation setting operation record, parameter adjustment operation record, etc. For example, the transformation operation may be translation, rotation, scaling and other operations, the editing operation may be a modification operation of vertices, edges and faces, the material adjustment operation may be a material replacement operation, the texture adjustment operation may be a texture replacement operation, the combination operation or split operation may be an operation of combining or splitting model elements, the animation setting operation may be an animation keyframe setting, path setting and other operations, and the parameter adjustment operation may be a modification of a specific parameter. I will not go into details here.
[0066] The step of determining at least one candidate first model of the first target object that meets the first preset condition based on the historical operation records of the candidate first models of one or more first target objects in the three-dimensional model design scene may include at least one of the following:
[0067] Based on the historical operation records of the candidate first models of one or more first target objects in the three-dimensional model design scene, determine the last operation time of the candidate first model of each of the one or more first target objects in the three-dimensional model design scene; when the difference between the last operation time of the candidate first model of any first target object in the one or more first target objects in the three-dimensional model design scene and the current time is greater than a first time threshold, use the candidate first model of the any first target object as one of the candidate first models of the at least one first target object, wherein the last operation time may be: the time corresponding to the last historical operation record in the historical operation record;
[0068] Based on the historical operation records of the candidate first models of one or more first target objects in the three-dimensional model design scene, the operation frequency of the candidate first model of each of the one or more first target objects in the three-dimensional model design scene is determined; when the operation frequency of the candidate first model of any first target object in the one or more first target objects in the three-dimensional model design scene is less than a first frequency threshold, the candidate first model of the arbitrary first target object is used as one of the candidate first models of the at least one first target object, wherein the operation frequency may be: the number of operation records per unit time in the historical operation records, and the unit time may be set according to actual conditions.
[0069] If it is determined that there is no candidate first model of at least one first target object that meets the first preset condition based on the historical operation records of the candidate first models of one or more first target objects in the three-dimensional model design scene, subsequent steps are not executed.
[0070] By adopting the above solution, the first model of the first target object whose difference between the last operation time and the current time is greater than the first time threshold and / or whose operation frequency is less than the first frequency threshold is determined in the three-dimensional model design scene. In this way, an inactive first model can be determined in the three-dimensional model design scene, and a first model that needs to be subsequently processed can be determined more accurately.
[0071] In some possible implementations, obtaining the second model of each first target object based on the first model of each first target object includes one of the following: simplifying the first model of each first target object among the one or more first target objects to obtain the second model of each first target object; sending relevant information of the first model of each first target object among the one or more first target objects to a server, and receiving the second model of each first target object from the server.
[0072] The sending of relevant information of the first model of each first target object to the server and receiving the second model of each first target object from the server may be: sending an instruction to the server for obtaining the second model of each first target object corresponding to the first model of each first target object, wherein the instruction carries an identifier of the first model of each first target object.
[0073] The receiving the second model of each first target object among the one or more first target objects from the server may be: receiving the second model of each first target object from the server, and the correspondence between the identifiers of the second model of each first target object and the first model of each first target object.
[0074] In this embodiment, after receiving the second model of each of the one or more first target objects from the server, it may include: determining the correspondence between the second model of each first target object and the first model of each first target object based on the correspondence between the identifiers of the second model of each first target object and the first model of each first target object.
[0075] By adopting the above solution, the target device simplifies the first model of each first target object to obtain the second model of each first target object, or sends the relevant information of the first model of each first target object to the server and receives the second model of each first target object from the server. In this way, the simplification of the first model by the target device or the simplification of the first model by the server can be realized, and the diversity of the simplification of the first model can be improved.
[0076] In one embodiment, the simplifying the first model of each first target object to obtain the second model of each first target object includes one of the following: simplifying the attribute data of the first model of the ith first target object to obtain the second model of the ith first target object, wherein i is an integer greater than or equal to 1, and the ith first target object is one of the one or more first target objects; using the minimum bounding box of the first model of the ith first target object as the second model of the ith first target object; obtaining the second model of the ith first target object based on the projection of the first model of the ith first target object in a specified direction.
[0077] The attribute data may include at least one of the following: geometric data, texture data, material data, animation data, etc. For example, the geometric data may be used to determine the shape and structure of the first target model, the texture data may be information such as the pattern and color of the surface of the first target model, the material data may be the properties of the material of the first target model such as glossiness, transparency, reflectivity, etc., and the animation data may be motion data of the first target model for realizing dynamic effects, etc. For the sake of brevity, they will not be described one by one here.
[0078] Simplifying the attribute data of the first model of the ith first target object to obtain the second model of the ith first target object may include at least one of the following: deleting the texture data of the first model of the ith first target object to obtain the second model of the ith first target object; deleting the material data of the first model of the ith first target object to obtain the second model of the ith first target object; deleting the animation data of the first model of the ith first target object to obtain the second model of the ith first target object; replacing the texture data of the first model of the ith first target object with specified texture data to obtain the second model of the ith first target object; replacing the material data of the first model of the ith first target object with specified material data to obtain the second model of the ith first target object; simplifying the geometric data of the first model of the ith first target object to obtain the second model of the ith first target object.
[0079] It can be understood that the specified material data is simple material data, and the specified texture data is simple texture data. The simple material data may be material data that is smaller than the material data of the first model of the i-th first target object, and the simple texture data may be texture data that is smaller than the texture data of the first model of the i-th first target object.
[0080] The method of simplifying the geometric data of the first model of the i-th first target object to obtain the second model of the i-th first target object may include: using the outer contour geometric data of the first model of the i-th first target object in the geometric data of the first model of the i-th first target object as the second model of the i-th first target object.
[0081] The method of using the minimum bounding box of the first model of the i-th first target object as the second model of the i-th first target object may include: using a specific geometric shape that closely surrounds the first model of the i-th first target object as the second model of the i-th first target object. For example, in the case where the specific geometric shape is a cuboid, it may be: determining the minimum and maximum coordinate values on each coordinate axis (such as the horizontal axis, the vertical axis, and the depth axis) in the first model of the i-th first target object, and constructing a cuboid with the minimum coordinate value in each coordinate axis as a vertex and the maximum coordinate value as a relative vertex. The cuboid is the minimum bounding box of the first model of the i-th first target object. This is only an exemplary description, and the specific method of calculating the bounding box can be set according to actual conditions, and will not be listed here one by one.
[0082] The method of obtaining the second model of the i-th first target object based on the projection of the first model of the i-th first target object in the specified direction may be: obtaining a two-dimensional plane based on the projection of the first model of the i-th first target object in the specified direction; and using the two-dimensional plane as the second model of the i-th first target object. This method may also be called box flattening. The specified direction may be a direction perpendicular to the ground in the three-dimensional model design scene.
[0083] By adopting the above scheme, the attribute data of the first model of the first target object is simplified to obtain the first model of the first target object, or the minimum bounding box of the first model of the first target object is used as the second model of the first target object, or the second model of the first target object is obtained based on the projection of the first model of the first target object in a specified direction. In this way, the amount of data of the simplified second model can be smaller, and the loading and processing speed in the three-dimensional model design scene can be faster, which can improve the operating efficiency and response speed of the three-dimensional model design scene, thereby avoiding the situation where there are a large number of three-dimensional models in the three-dimensional model design scene, and even crashes.
[0084] In some possible implementations, rendering the second model of each of the one or more first target objects includes: determining the perspective information of the second model of each of the one or more first target objects based on the current perspective information of the first model of each of the one or more first target objects; and rendering the second model of each first target object based on the perspective information of the second model of each first target object.
[0085] The rendering of the second model of each first target object may be: rendering the second model of each first target object in the three-dimensional model design scene, that is, displaying the second model of each first target object in the three-dimensional model design scene, wherein the rendering or displaying method may include at least one of the following: lighting calculation, material representation, geometry processing, texture mapping, shadow generation, reflection and refraction calculation, rendering perspective, etc. The specific rendering method or display method can be set according to actual conditions and is not limited here.
[0086] The determining the viewing angle information of the second model of each first target object based on the current viewing angle information of the first model of each first target object may include: determining the direction, pitch angle, and rotation angle of the first model of the nth first target object based on the current viewing angle information of the first model of the nth first target object; using the direction, pitch angle, and rotation angle of the first model of the nth first target object as the viewing angle information of the second model of the nth first target object, where n is an integer greater than or equal to 1, and the nth first target object is one of one or more first target objects, wherein the method for determining the viewing angle information of the second model of each first target object is the same as the method for determining the viewing angle information of the second model of the nth first target object.
[0087] Rendering the second model of each first target object based on the viewing angle information of the second model of each first target object may include: rendering the second model of the nth first target object based on the direction, pitch angle, and rotation angle included in the viewing angle information of the second model of the nth first target object. The method of rendering the second model of each first target object is the same as that of rendering the second model of the nth first target object, which will not be described in detail here.
[0088] In this embodiment, after rendering the second model of each first target object, the second model of each first target object is kept in a non-editable state in the three-dimensional model design scene. Specifically, the non-editable state may include at least one of the following: in response to detecting an editing operation on the second model of the first target object, refusing to process the editing operation; displaying a prompt message that the second model of the first target object is non-editable in a designated area; not displaying the editing function of the second model of the first target object in the editing function area, wherein the designated area and the editing function area may be areas in the three-dimensional model design scene, and the designated area and the editing function area may be the same or different.
[0089] By adopting the above solution, based on the current perspective information of the first model of each of the one or more first target objects, the perspective information of the second model of each of the first target objects is determined; based on the perspective information of the second model of each of the first target objects, the second model of each of the first target objects is rendered. In this way, the second model of the first target object can maintain the same perspective as the first model of the first target object, thereby improving the user experience.
[0090] In some possible implementations, the method further includes at least one of the following: storing the first model of the one or more first target objects in the storage space of the target device; and sending the first model of the one or more first target objects to a server.
[0091] It can be understood that saving the first model of the one or more first target objects in the storage space of the target device is different from saving the first model of the one or more first target objects in the three-dimensional model design scene, that is, if the first model of the one or more first target objects is deleted in the three-dimensional model design scene, the first model of the one or more first target objects saved in the storage space of the target device still exists.
[0092] The storage space of the target device may be at least one of the following: the storage space of the hard disk of the target device, the storage space of the RAM of the target device, the storage space of the flash disk of the target device, etc., wherein the hard disk may be a mechanical hard disk or a solid-state hard disk, and may also be other storage space of the target device, which are not listed one by one here.
[0093] By adopting the above solution, the first model of the one or more first target objects is saved in the storage space of the target device, and / or the first model of the one or more first target objects is sent to the server. In this way, the first model can be saved in the storage space of the target device and in the server at the same time, which increases the security and reliability of the first model data.
[0094] In some possible implementations, the method further includes: when a second trigger condition is met, determining a second model of each of one or more second target objects in the three-dimensional model design scene; obtaining a first model of each second target object corresponding to the second model of each second target object; rendering the first model of each second target object, deleting the second model of each second target object in the three-dimensional model design scene, and displaying the first model of each second target object at the position of the second model of each second target object, keeping the first model of each second target object in an editable state.
[0095] The second model of each of the one or more second target objects may include: the second model of each of the one or more first target objects and the second models of other target objects, wherein the second models of the other target objects are obtained in the same way as the second model of the first target object, which will not be repeated here.
[0096] Keeping the first model of each second target object in an editable state may include at least one of the following: in response to monitoring an editing operation on the first model of the second target object, executing a processing editing operation; displaying a prompt message that the first model of the second target object is editable in a designated area; and displaying the editing function of the first model of the second target object in an editing function area.
[0097] By adopting the above scheme, when the second trigger condition is met, the second model of each second target object among one or more second target objects is determined in the three-dimensional model design scene; the first model of each second target object corresponding to the second model of each second target object is obtained, the second model of each second target object is deleted in the three-dimensional model design scene, the first model of each second target object is displayed at the position of the second model of each second target object, and the first model of each second target object is kept in an editable state. In this way, the simplified second model can be restored to the first model before simplification when necessary, so that the user can continue to edit the first model, thereby improving the flexibility of design and user experience.
[0098] In some possible implementations, when the second trigger condition is met, determining the second model of each of the one or more second target objects in the three-dimensional model design scene includes one of the following: when a selection operation on the candidate second models of the one or more second target objects is detected in the second area of the three-dimensional model design scene, determining that the second trigger condition is met, and using the candidate second model of each of the one or more second target objects as the second model of each second target object; when an editing operation on the candidate first model of any first target object is detected in the third area of the three-dimensional model design scene, determining that the second trigger condition is met, and using the candidate second model of each of the one or more second target objects in the third area as the second model of each second target object.
[0099] When or before the execution determines whether the second trigger condition is met, the three-dimensional model design scene needs to be in an editable state.
[0100] The second area may be: an area where the candidate second models of the one or more second target objects are located. The second area may be a second position or a second range.
[0101] The third area may be a range where the candidate second models of the one or more second target objects in the 3D model design scene are located. For example, in the field of interior decoration, the 3D model design scene may include multiple rooms, where the room where the candidate second model is located may be the third area.
[0102] Optionally, when a selection operation on a candidate second model of the one or more second target objects is detected in the second area in the three-dimensional model design scene, it is determined that the second trigger condition is met. It may be that when a click operation on a candidate second model of the second target object is detected at the second position in the three-dimensional model design scene and a confirmation operation on the unfreeze option is detected, it is determined that the second trigger condition is met.
[0103] Optionally, when a selection operation on the candidate second models of the one or more second target objects is detected in the second area in the three-dimensional model design scene, it is determined that the second trigger condition is met, which may be: when a box selection operation on the second range is detected in the three-dimensional model design scene, it is determined whether there are one or more candidate second models of the second target objects within the second range; when one or more candidate second models of the second target objects exist within the second range and a confirmation operation on the unfreeze option is detected, it is determined that the second trigger condition is met.
[0104] Among them, when there are one or more candidate second models of the second target object within the second range and a confirmation operation for the unfreeze option is detected, it is determined that the second trigger condition is met, including: when there are only one or more candidate second models of the second target object within the second range, there are no one or more first models of other target objects, and a confirmation operation for the unfreeze option is detected, it is determined that the second trigger condition is met.
[0105] In this embodiment, before determining the second model of each of the one or more second target objects in the three-dimensional model design scene, it may also include: judging whether a second trigger condition is met, and if the second trigger condition is met, determining the second model of each of the one or more second target objects in the three-dimensional model design scene; if the second trigger condition is not met, not determining the second model of each of the one or more second target objects in the three-dimensional model design scene, that is, not executing the candidate step.
[0106] By adopting the above scheme, when a selection operation of the candidate second models of the one or more second target objects is detected in the second area of the three-dimensional model design scene, the candidate second model of each second target object in the one or more second target objects is used as the second model of each second target object; or, when an editing operation of the candidate first model of any first target object is detected in the third area of the three-dimensional model design scene, the candidate second model of each second target object in the one or more second target objects in the third area is used as the second model of each second target object. In this way, the second model of the second target object is determined according to the user's selection operation, or the second model of the second target object is determined based on the area of the user's editing operation, and the second model of the second target object can be accurately determined according to the user's operation intention, thereby improving user experience and efficiency.
[0107] In some possible implementations, obtaining the first model of each second target object corresponding to the second model of each second target object includes one of the following: obtaining the first model of the jth second target object corresponding to the second model of the jth second target object from the storage space of the target device, where j is an integer greater than or equal to 1, and the jth second target object is one of the one or more second target objects; obtaining the first model of the jth second target object corresponding to the second model of the jth second target object from the server.
[0108] In this embodiment, the method of obtaining the first model of each second target object corresponding to the second model of each second target object includes one of the following: if the first model of the jth second target object corresponding to the second model of the jth second target object exists in the storage space of the target device, obtaining the first model of the jth second target object corresponding to the second model of the jth second target object from the storage space of the target device; if the first model of the jth second target object corresponding to the second model of the jth second target object does not exist in the storage space of the target device, obtaining the first model of the jth second target object corresponding to the second model of the jth second target object from the server. The method of obtaining the first model of each second target object corresponding to the second model of each second target object is the same as the method of obtaining the first model of the jth second target object corresponding to the second model of the jth second target object, which will not be described in detail here.
[0109] By adopting the above solution, the first model corresponding to the second model of the second target object is obtained from the storage space of the target device, or the first model corresponding to the second model of the second target object is obtained from the server. In this way, multiple acquisition paths are provided, increasing the possibility of obtaining the first model, and even if there is a problem locally or a temporary abnormality in the connection with the server, there is still a chance to obtain the required first model, thereby improving reliability.
[0110] In some possible implementations, rendering the first model of each second target object includes: determining the perspective information of the first model of each second target object based on the current perspective information of the second model of each second target object; and rendering the first model of each second target object based on the perspective information of the first model of each second target object.
[0111] The rendering of the first model of each second target object may include: rendering the first model of each second target object in the three-dimensional model design scene, that is, displaying the first model of each second target object in the three-dimensional model design scene, wherein the rendering or displaying method may include at least one of the following: lighting calculation, material representation, geometry processing, texture mapping, shadow generation, reflection and refraction calculation, rendering perspective, etc. The specific rendering method or display method can be set according to actual conditions and is not limited here.
[0112] The determining the viewing angle information of the first model of each second target object based on the current viewing angle information of the second model of each second target object may include: determining the direction, pitch angle, and rotation angle of the second model of the mth second target object based on the current viewing angle information of the second model of the mth second target object; using the direction, pitch angle, and rotation angle of the second model of the mth second target object as the viewing angle information of the first model of the mth second target object, where m is an integer greater than or equal to 1, and the mth second target object is one of one or more second target objects, wherein the method for determining the viewing angle information of the first model of each second target object is the same as the method for determining the viewing angle information of the first model of the mth second target object.
[0113] Rendering the first model of each second target object based on the viewing angle information of the first model of each second target object may include: rendering the first model of the mth second target object based on the direction, pitch angle, and rotation angle included in the viewing angle information of the first model of the mth second target object. The method of rendering the first model of each second target object is the same as that of rendering the first model of the mth second target object, which will not be described in detail here.
[0114] By adopting the above solution, the perspective information of the first model of each second target object is determined based on the current perspective information of the second model of each second target object; and the first model of each second target object is rendered based on the perspective information of the first model of each second target object. In this way, the first model of the second target object and the second model of the second target object can maintain the same perspective, thereby improving the user experience.
[0115] The first embodiment of the present disclosure provides a model processing method, such as Figure 2 As shown, including:
[0116] S210, receiving relevant information of a first model of each first target object among one or more first target objects sent by a target device;
[0117] S220, simplifying the first model of each first target object to obtain a second model of each first target object;
[0118] S230: Send the second model of each first target object to the target device.
[0119] The model processing method of the embodiment of the present disclosure can be executed by an electronic device. Exemplarily, the electronic device can be a server in the cloud; the server can be a single server, or can be one or more servers in a server cluster, or can be a server in a distributed system (or can be called a computing node). It should be understood that the above is only an exemplary description of an electronic device, and the actual processing may not be limited to the devices mentioned in the above examples. As long as the electronic device can execute the model processing method provided in this embodiment, it is within the protection scope of this embodiment.
[0120] In this implementation, the method further includes: receiving the first models of the one or more first target objects and identifiers of the first models of the one or more first target objects sent by the target device.
[0121] The receiving of relevant information about the first model of each first target object in one or more first target objects sent by the target device includes: receiving an instruction sent by the target device to obtain the second model of each first target object corresponding to the first model of each first target object in the one or more first target objects, wherein the instruction carries an identifier of the first model of each first target object.
[0122] The sending the second model of each first target object to the target device may include: sending the second model of each first target object and the corresponding relationship between the identifiers of the second model of each first target object and the first model of each first target object to the target device.
[0123] By adopting the above solution, relevant information of the first model of each first target object in the first target object sent by the target device is received; the first model of the first target object is simplified to obtain the second model of the first target object; and the second model of the first target object is sent to the target device. In this way, the second model simplified from the first model can be generated by the server, and the efficiency of the simplification process of the first model can be improved.
[0124] In one possible implementation, the simplifying the first model of each first target object to obtain the second model of each first target object includes one of the following: simplifying the attribute data of the first model of the kth first target object to obtain the second model of the kth first target object, wherein k is an integer greater than or equal to 1, and the kth first target object is one of the one or more first target objects; using the minimum bounding box of the first model of the kth first target object as the second model of the kth first target object; and projecting the first model of the kth first target object in a specified direction to obtain the second model of the kth first target object.
[0125] The simplification process of the first model of each first target object to obtain the second model of each first target object is the same as the above-mentioned implementation mode, which will not be described in detail here.
[0126] By adopting the above scheme, the attribute data of the first model of the first target object is simplified to obtain the first model of the first target object, or the minimum bounding box of the first model of the first target object is used as the second model of the first target object, or the second model of the first target object is obtained based on the projection of the first model of the first target object in a specified direction. In this way, the amount of data of the simplified second model can be smaller, and the loading and processing speed in the three-dimensional model design scene can be faster, which can improve the operating efficiency and response speed of the three-dimensional model design scene, thereby avoiding the situation where there are a large number of three-dimensional models in the three-dimensional model design scene, and even crashes.
[0127] Figure 3 FIG. 3 is a schematic block diagram of a model processing device 300 provided in an embodiment of the present disclosure. Figure 3 As shown, including:
[0128] A first model determination module 301 is used to determine a first model of each of the one or more first target objects in the three-dimensional model design scene when a first trigger condition is met;
[0129] A first simplification module 302 of the first model is used to obtain a second model of each first target object based on the first model of each first target object, wherein the second model of each first target object is obtained by simplifying the first model of each first target object;
[0130] The second model display module 303 is used to render the second model of each first target object, delete the first model of each first target object in the three-dimensional model design scene, and display the second model of each first target object at the position of the first model of each first target object, keeping the second model of each first target object in an uneditable state.
[0131] The first simplification module of the first model is used to perform one of the following: simplifying the first model of each first target object to obtain the second model of each first target object; sending relevant information of the first model of each first target object to the server, and receiving the second model of each first target object from the server.
[0132] The first simplification module of the first model is used to perform one of the following: simplifying the attribute data of the first model of the i-th first target object to obtain the second model of the i-th first target object, wherein i is an integer greater than or equal to 1, and the i-th first target object is one of the one or more first target objects; using the minimum bounding box of the first model of the i-th first target object as the second model of the i-th first target object; obtaining the second model of the i-th first target object based on the projection of the first model of the i-th first target object in a specified direction.
[0133] The first model determination module is used to determine that a first trigger condition is satisfied when a selection operation of a candidate first model of the one or more first target objects is detected in the first area in the three-dimensional model design scene, and to use the candidate first model of each first target object in the one or more first target objects as the first model of each first target object.
[0134] The first trigger condition includes at least one of the following: the processing resource occupancy rate of the target device is greater than a first threshold, the storage resource occupancy rate of the target device is greater than a second threshold, the update time of the three-dimensional model design scene is greater than an update threshold, and the frame rate of the three-dimensional model design scene is less than a frame rate threshold.
[0135] The first model determination module is used to select the first model of each first target object among one or more first target objects that meet the first preset condition in the three-dimensional model design scene when the first trigger condition is met, wherein the first preset condition includes at least one of the following: the difference between the last operation time and the current time is greater than the first time threshold, and the operation frequency is less than the first frequency threshold.
[0136] like Figure 4 As shown, the model processing device 300 further includes a first model storage module 401, which is used to perform at least one of the following:
[0137] storing the first models of the one or more first target objects in a storage space of the target device;
[0138] The first models of the one or more first target objects are sent to a server.
[0139] The second model display module is used to determine the viewing angle information of the second model of each first target object based on the current viewing angle information of the first model of each first target object; and render the second model of each first target object based on the viewing angle information of the second model of each first target object.
[0140] like Figure 5 As shown, the model processing device 300 further includes:
[0141] A second model determination module 501, configured to determine a second model of each of the one or more second target objects in the three-dimensional model design scene when a second trigger condition is met;
[0142] A first model acquisition module 502, configured to acquire a first model of each second target object corresponding to the second model of each second target object;
[0143] The first model display module 503 is used to render the first model of each second target object, delete the second model of each second target object in the three-dimensional model design scene, and display the first model of each second target object at the position of the second model of each second target object, and keep the first model of each second target object in an editable state.
[0144] The first model acquisition module is used to perform one of the following:
[0145] Acquire, from the storage space of the target device, a first model of the j-th second target object corresponding to the second model of the j-th second target object, wherein j is an integer greater than or equal to 1, and the j-th second target object is one of the one or more second target objects;
[0146] The first model of the j-th second target object corresponding to the second model of the j-th second target object is obtained from the server.
[0147] The second model determination module is used to perform one of the following:
[0148] In a case where a selection operation of a candidate second model of the one or more second target objects is detected in the second area in the three-dimensional model design scene, determining that the second trigger condition is satisfied, and using the candidate second model of each second target object in the one or more second target objects as the second model of each second target object;
[0149] When an editing operation on a candidate first model of any first target object is detected in the third area in the three-dimensional model design scene, it is determined that the second trigger condition is satisfied, and the candidate second model of each second target object among one or more second target objects in the third area is used as the second model of each second target object.
[0150] The first model display module is used to determine the viewing angle information of the first model of each second target object based on the current viewing angle information of the second model of each second target object; and render the first model of each second target object based on the viewing angle information of the first model of each second target object.
[0151] Figure 6 FIG. 6 is a schematic block diagram of a model processing device 600 provided in an embodiment of the present disclosure. Figure 6 As shown, including:
[0152] The first model receiving module 601 is used to receive relevant information of the first model of each first target object in one or more first target objects sent by the target device;
[0153] A first model second simplification module 602, used for simplifying the first model of each first target object to obtain a second model of each first target object;
[0154] The second model sending module 603 is configured to send the second model of each first target object to the target device.
[0155] The second simplified module of the first model is used to perform one of the following:
[0156] Simplifying the attribute data of the first model of the kth first target object to obtain the second model of the kth first target object, wherein k is an integer greater than or equal to 1, and the kth first target object is one of the one or more first target objects;
[0157] Using the minimum bounding box of the first model of the k-th first target object as the second model of the k-th first target object;
[0158] The first model of the kth first target object is projected in a specified direction to obtain a second model of the kth first target object.
[0159] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0160] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0161] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0162] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable electronic devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0163] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0164] A number of components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information / data with other electronic devices through a computer network such as the Internet and / or various telecommunication networks.
[0165] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the above method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the above method in any other appropriate manner (e.g., by means of firmware).
[0166] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0167] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0168] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or electronic device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or electronic device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage electronic device, a magnetic storage electronic device, or any suitable combination of the foregoing.
[0169] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0170] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0171] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0172] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0173] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A model processing method, comprising: When a first trigger condition is met, determining a first model of each of the one or more first target objects in the three-dimensional model design scene; Based on the first model of each first target object, obtaining a second model of each first target object, wherein the second model of each first target object is obtained by simplifying the first model of each first target object; Render the second model of each first target object, delete the first model of each first target object in the three-dimensional model design scene, and display the second model of each first target object in the position of the first model of each first target object, keeping the second model of each first target object in an uneditable state.
2. The method according to claim 1, wherein The obtaining of the second model of each first target object based on the first model of each first target object includes one of the following: Simplifying the first model of each first target object to obtain a second model of each first target object; The relevant information of the first model of each first target object is sent to the server, and the second model of each first target object is received from the server.
3. The method according to claim 2, wherein: The simplifying the first model of each first target object to obtain the second model of each first target object includes one of the following: Simplifying the attribute data of the first model of the i-th first target object to obtain a second model of the i-th first target object, where i is an integer greater than or equal to 1, and the i-th first target object is one of the one or more first target objects; Using the minimum bounding box of the first model of the i-th first target object as the second model of the i-th first target object; Based on the projection of the first model of the i-th first target object in a specified direction, a second model of the i-th first target object is obtained.
4. The method according to claim 1, wherein The step of determining, in a three-dimensional model design scene, a first model of each of the one or more first target objects when the first trigger condition is satisfied includes: When a selection operation of a candidate first model of the one or more first target objects is detected in the first area in the three-dimensional model design scene, it is determined that the first trigger condition is met, and the candidate first model of each first target object in the one or more first target objects is used as the first model of each first target object.
5. The method according to claim 1, wherein The first trigger condition includes at least one of the following: the processing resource occupancy rate of the target device is greater than a first threshold, the storage resource occupancy rate of the target device is greater than a second threshold, the update time of the three-dimensional model design scene is greater than an update threshold, and the frame rate of the three-dimensional model design scene is less than a frame rate threshold.
6. The method according to claim 5, wherein: The step of determining, in a three-dimensional model design scene, a first model of each of the one or more first target objects when the first trigger condition is satisfied, includes: When the first trigger condition is met, the first model of each first target object among one or more first target objects that meet the first preset condition is selected in the three-dimensional model design scene, wherein the first preset condition includes at least one of the following: the difference between the last operation time and the current time is greater than the first time threshold, and the operation frequency is less than the first frequency threshold.
7. The method according to claim 1, further comprising at least one of the following: Saving the first models of the one or more first target objects in a storage space of the target device; The first models of the one or more first target objects are sent to a server.
8. The method according to claim 1, wherein The rendering of the second model of each first target object includes: Determining perspective information of a second model of each first target object based on current perspective information of the first model of each first target object; The second model of each first target object is rendered based on the viewing angle information of the second model of each first target object.
9. The method according to any one of claims 1 to 8, further comprising: When a second trigger condition is met, determining a second model of each of the one or more second target objects in the three-dimensional model design scene; Acquire the first model of each second target object corresponding to the second model of each second target object; Render the first model of each second target object, delete the second model of each second target object in the three-dimensional model design scene, and display the first model of each second target object in the position of the second model of each second target object, keeping the first model of each second target object in an editable state.
10. The method according to claim 9, wherein obtaining the first model of each second target object corresponding to the second model of each second target object comprises one of the following: Acquire the first model of the j-th second target object corresponding to the second model of the j-th second target object from the storage space of the target device, wherein: j is an integer greater than or equal to 1, and the j-th second target object is one of the one or more second target objects; Obtain from the server the first model of the j-th second target object corresponding to the second model of the j-th second target object.
11. The method according to claim 9, wherein The determining, in the three-dimensional model design scene, of a second model of each of the one or more second target objects when the second trigger condition is satisfied, includes one of the following: When a selection operation of a candidate second model of the one or more second target objects is detected in the second area of the three-dimensional model design scene, determining that the second trigger condition is satisfied, and using the candidate second model of each second target object in the one or more second target objects as the second model of each second target object; When an editing operation on a candidate first model of any first target object is detected in the third area in the three-dimensional model design scene, it is determined that the second trigger condition is met, and the candidate second model of each second target object in one or more second target objects in the third area is used as the second model of each second target object.
12. The method according to claim 9, wherein The rendering of the first model of each second target object includes: Determining the perspective information of the first model of each second target object based on the current perspective information of the second model of each second target object; The first model of each second target object is rendered based on the viewing angle information of the first model of each second target object.
13. A model processing device comprising: A first model determination module is configured to determine a first model of each of the one or more first target objects in the three-dimensional model design scene when a first trigger condition is met; a first simplification module for the first model, configured to obtain a second model of each first target object based on the first model of each first target object, wherein the second model of each first target object is obtained by simplifying the first model of each first target object; The second model display module is used to render the second model of each first target object, delete the first model of each first target object in the three-dimensional model design scene, and display the second model of each first target object in the position of the first model of each first target object, keeping the second model of each first target object in an uneditable state.
14. The apparatus according to claim 13, further comprising: a second model determination module, configured to determine, in the three-dimensional model design scene, a second model of each of the one or more second target objects when a second trigger condition is satisfied; A first model acquisition module, configured to acquire a first model of each second target object corresponding to the second model of each second target object; The first model display module is used to render the first model of each second target object, delete the second model of each second target object in the three-dimensional model design scene, and display the first model of each second target object in the position of the second model of each second target object, keeping the first model of each second target object in an editable state.
15. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 12.
16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-12.
Citation Information
Patent Citations
Accuracy-retaining 3D model simplifying method
CN105303607A
Model editing and constructing method, related equipment and computer storage medium
CN113052981A
Three-dimensional model simplification method and device, computer equipment and computer storage medium
CN114241151A
Virtual reality scene display method and device, electronic equipment and readable storage medium
CN114387402A
Model display method, equipment and device, electronic equipment and storage medium
CN114529648A
