Three-dimensional modeling method, three-dimensional modeling device, electronic equipment and server
By building low-quality models on electronic devices and using the server's high-quality modeling material library to render panoramas, the problems of limited modeling efficiency and visual effects of virtual reality models were solved, and efficient modeling effects were achieved.
Patent Information
- Application Number
- CN202111670675.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In the existing technology, the modeling efficiency and visual effects of virtual reality models are limited by the hardware performance of local devices, and it is impossible to improve the modeling efficiency while ensuring the visual effects.
By building a low-quality first model on an electronic device and sending the material configuration information to the server, a high-precision second model is built using the server's high-quality modeling material library, rendering is performed to obtain a panorama, and finally the panorama is baked and mapped onto the first model.
The modeling efficiency and visual effects are improved, and the modeling efficiency of the terminal is improved while ensuring the visual effects.
Smart Images

Figure CN114332327B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of virtual reality technology, and specifically relates to a three-dimensional modeling method, a three-dimensional modeling device, an electronic device, and a server. Background Art
[0002] Virtual reality technology simulates virtual environments to create an immersive experience. Existing VR models are typically created using local 3D design software. However, due to limitations in local device hardware performance, this often fails to guarantee efficient modeling while maintaining visual quality. Summary of the Invention
[0003] The purpose of the embodiments of the present application is to provide a three-dimensional modeling method, a three-dimensional modeling device, an electronic device and a server, which improve the visual effect of the first model and achieve the goal of improving the modeling efficiency of the terminal while ensuring the visual effect of the first model.
[0004] In a first aspect, an embodiment of the present application provides a three-dimensional modeling method, comprising: establishing a first model in response to a three-dimensional model configuration instruction; obtaining material configuration information in the first model; sending the material configuration information to a server so that the server establishes a second model based on the material configuration information, and enables the server to render the second model to obtain a panoramic image; receiving the panoramic image sent by the server; baking the panoramic image into the first model; wherein the accuracy of the second model is higher than that of the first model.
[0005] In the second aspect, an embodiment of the present application provides a three-dimensional modeling method, including: receiving material configuration information sent by an electronic device; establishing a second model based on the material configuration information; rendering the second model to obtain a panoramic image; and sending the panoramic image to the electronic device so that the electronic device bakes the panoramic image into the first model.
[0006] In a third aspect, an embodiment of the present application provides a three-dimensional modeling device, comprising: a first modeling module, for establishing a first model in response to a three-dimensional model configuration instruction; an acquisition module, for acquiring material configuration information in the first model; a first sending module, for sending the material configuration information to a server, so that the server establishes a second model according to the material configuration information, and enables the server to render the second model to obtain a panoramic image; a first receiving module, for receiving the panoramic image sent by the server; a mapping module, for baking the panoramic image into the first model; wherein, the accuracy of the second model is higher than that of the first model.
[0007] In a fourth aspect, an embodiment of the present application provides a three-dimensional modeling device, including: a second receiving module for receiving material configuration information sent by an electronic device; a second modeling module for establishing a second model based on the material configuration information; a rendering module for rendering the second model to obtain a panoramic image; and a second sending module for sending the panoramic image to the electronic device so that the electronic device bakes the panoramic image into the first model.
[0008] In a fifth aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or inputs that can be run on the processor, and when the programs or inputs are executed by the processor, the steps of the three-dimensional modeling method of the first aspect are implemented.
[0009] In a sixth aspect, an embodiment of the present application provides a server comprising a processor and a memory, wherein the memory stores programs or inputs that can be run on the processor, and when the programs or inputs are executed by the processor, the steps of the three-dimensional modeling method of the second aspect are implemented.
[0010] In the seventh aspect, an embodiment of the present application provides a readable storage medium, which stores a program or input. When the program or input is executed by a processor, the steps of the three-dimensional modeling method of the first aspect and the second aspect are implemented.
[0011] In an embodiment of the present application, a low-quality first model is established by a 3D editor in an electronic device, thereby improving the modeling efficiency of the electronic device. A high-quality second model corresponding to the first model is established on a server, and the server renders the second model to obtain a high-quality panoramic image. The electronic device bakes the high-quality panoramic image returned by the server onto the first model, thereby improving the visual effect of the first model. This ensures that the visual effect of the first model is maintained while also improving the modeling efficiency of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 One of the flow charts of the three-dimensional modeling method provided in the embodiment of the present application is shown;
[0013] Figure 2 The second flowchart of the three-dimensional modeling method provided in the embodiment of the present application is shown;
[0014] Figure 3 The third flowchart of the three-dimensional modeling method provided in the embodiment of the present application is shown;
[0015] Figure 4 FIG4 shows a fourth flow chart of the three-dimensional modeling method provided in an embodiment of the present application;
[0016] Figure 5FIG5 shows a fifth flow chart of the three-dimensional modeling method provided in an embodiment of the present application;
[0017] Figure 6 FIG6 shows a sixth flow chart of the three-dimensional modeling method provided in an embodiment of the present application;
[0018] Figure 7 FIG7 shows a flow chart of the three-dimensional modeling method provided in an embodiment of the present application;
[0019] Figure 8 FIG8 shows an eighth flow chart of the three-dimensional modeling method provided in an embodiment of the present application;
[0020] Figure 9 One of the structural block diagrams of the three-dimensional modeling device provided in an embodiment of the present application is shown;
[0021] Figure 10 The second structural block diagram of the three-dimensional modeling device provided in an embodiment of the present application is shown;
[0022] Figure 11 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;
[0023] Figure 12 The following is a structural block diagram of a server provided in an embodiment of the present application;
[0024] Figure 13 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0026] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0027] The following is combined with Figures 1 to 13, the three-dimensional modeling method, three-dimensional modeling device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0028] In an embodiment of the present application, a three-dimensional modeling method is provided. Figure 1 FIG. 1 shows one of the flow charts of the three-dimensional modeling method provided in the embodiment of the present application, such as Figure 1 As shown, the 3D modeling method includes:
[0029] Step 102, establishing a first model in response to the three-dimensional model configuration instruction;
[0030] Step 104: Obtain material configuration information in the first model;
[0031] Step 106: Send the material configuration information to the server, so that the server creates a second model according to the material configuration information, and renders the second model to obtain a panoramic image;
[0032] Step 108, receiving the panoramic image sent by the server;
[0033] Step 110: Bake the panoramic image onto the first model.
[0034] Among them, the accuracy of the second model is higher than that of the first model.
[0035] Embodiments of the present application provide a 3D modeling method for use in an electronic device, which may be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device, or the like. The electronic device stores a 3D editor. A user executes 3D model configuration instructions on the 3D editor to create a first model locally on the electronic device. It is understood that the modeling materials stored in the 3D editor are all low-quality, and therefore the resulting first model is a low-quality model. During the modeling process, the electronic device records the modeling material configuration information for the first model and, after the first model is completed, transmits the material configuration information for the first model to a server. The server stores a library of high-quality modeling materials. After receiving the material configuration information from the electronic device, the server searches the library for corresponding high-quality modeling materials based on the material configuration information. A second model (high-quality model) is then created using the high-quality modeling materials. The second model differs from the first model in terms of model quality, but all other parameters are identical. The server renders the high-quality second model to obtain a panoramic image of the second model, which the server then transmits back to the electronic device. After receiving the panoramic image, the electronic device bakes the panoramic image onto the first model. It is understandable that since the panorama is obtained by rendering the high-quality second model by the server, the panorama has a better visual effect. Baking the panorama onto the low-quality first model can improve the visual effect of the first model.
[0036] Specifically, the modeling material library is stored in the server and the electronic device respectively, wherein the accuracy of the modeling materials in the modeling material library stored in the server is higher than the modeling materials in the modeling material library stored in the electronic device. Since the accuracy of the first model established by the electronic device using low-precision modeling materials is low, the efficiency of the electronic device in modeling the first model can be improved. The server can establish a second model with higher accuracy based on the material configuration information corresponding to the first model, and then transmit the higher-definition panoramic image rendered according to the second model back to the electronic device. The electronic device improves the visual effect of the first model by baking the higher-definition panoramic image onto the first model. During data interaction between the electronic device and the server, the electronic device only needs to send the material configuration information to the server, and the server only needs to send the rendered panoramic image. The model material does not need to be transmitted throughout the process, thereby improving data transmission efficiency.
[0037] In an embodiment of the present application, a low-quality first model is established by a 3D editor in an electronic device, thereby improving the modeling efficiency of the electronic device. A high-quality second model corresponding to the first model is established on a server, and the server renders the second model to obtain a high-quality panoramic image. The electronic device bakes the high-quality panoramic image returned by the server onto the first model, thereby improving the visual effect of the first model. This ensures that the visual effect of the first model is maintained while also improving the modeling efficiency of the terminal.
[0038] In some embodiments of the present application, Figure 2 The second flow chart of the three-dimensional modeling method provided in the embodiment of the present application is shown as follows: Figure 2 As shown, in response to the three-dimensional model configuration instruction, a first model is established, including:
[0039] Step 202: searching for a first modeling material in a first material library according to the three-dimensional model configuration instruction;
[0040] The first material library is a local material library of the electronic device;
[0041] Step 204: Create a first model using a first modeling material.
[0042] In an embodiment of the present application, a user inputs a 3D model configuration instruction into an electronic device, and the electronic device, in response to the 3D model configuration instruction, calls a first modeling material from a local first material library. The 3D model configuration instruction includes a search index and modeling information for the first modeling material. The electronic device can find the first modeling material required for modeling in the first material library based on the search index and build a first model according to the modeling information. The first modeling material is generally of lower quality, and specifically, may have a smaller number of facets.
[0043] Specifically, a user can call a 3D editor in an electronic device to display a modeling interface. In the modeling interface, the user can select a first modeling material from a first material library and edit the model using the first modeling material, thereby completing the modeling of the first model. During the user's editing of the first modeling material, the electronic device records corresponding editing information, which includes the positional relationship of multiple first modeling materials and material information of the first modeling materials. After the modeling of the first model is completed, the electronic device generates corresponding material configuration information based on the editing information.
[0044] In the embodiment of the present application, the user establishes the first model by calling the first modeling material in the local first material library without downloading the modeling material from the server, thereby achieving independence from the network environment in the electronic device modeling process, reducing the time required for the electronic device to establish the first model, and improving modeling efficiency.
[0045] In some embodiments of the present application, Figure 3 The third flow chart of the three-dimensional modeling method provided in the embodiment of the present application is shown as follows: Figure 3 As shown, in response to the three-dimensional model configuration instruction, before establishing the first model, the method further includes:
[0046] Step 302: Send a material download request to the server, so that the server generates a first material library based on the second material library;
[0047] The modeling materials in the second material library correspond one-to-one to the materials in the first material library;
[0048] Step 304: Receive the first material library sent by the server, and store the first material library in a local storage area.
[0049] The accuracy of the modeling materials in the second material library is higher than the accuracy of the modeling materials in the first material library.
[0050] In an embodiment of the present application, a second material library is stored in the server, and the model materials in the second material library are all high-precision model materials. Before the user models the first model through the electronic device, the user sends a material download request to the server through the electronic device. In response to the material download request, the server reduces the precision of each material model in the second material library, obtains low-precision modeling materials that correspond one-to-one to the modeling materials in the second material library, and generates the first material library based on the above low-precision modeling materials. The server transmits the generated first material library back to the electronic device, and the electronic device stores the received first material in the local storage area of the electronic device.
[0051] It is worth noting that the modeling materials in the first material library correspond one-to-one to the modeling materials in the second material library, and the accuracy of the modeling materials in the first material library is lower than that of the modeling materials in the second material library.
[0052] Specifically, the server performs face reduction processing on the modeling materials in the second material library to reduce the precision of the modeling materials in the second material library, thereby obtaining the modeling materials in the first material library.
[0053] In some embodiments, when the electronic device runs the 3D editor for the first time, it sends a material download request to the server to download the first material library.
[0054] In these embodiments, the electronic device does not need to download the first material library each time before starting modeling, which further saves the time required for the electronic device to build the first model.
[0055] In an embodiment of the present application, the electronic device sends a material download request to the server. The server can generate a low-quality first material library from the high-quality second material library stored in the server, and return the first material library to the electronic device, thereby achieving the effect of configuring the first material library in the electronic device.
[0056] In some embodiments of the present application, Figure 4 FIG4 shows a flow chart of the three-dimensional modeling method provided in an embodiment of the present application. Figure 4 As shown, obtaining the material configuration information in the first model includes:
[0057] Step 402: extracting modeling material information and material location information from the first model;
[0058] Step 404: Generate material configuration information based on the modeling material information and the material location information.
[0059] In an embodiment of the present application, modeling material information and material location information are obtained from a first model. The server can search a second material library for a corresponding second modeling material based on the modeling material information. The second modeling material corresponds one-to-one with the first modeling material, and the material accuracy of the second modeling material is higher than that of the first modeling material. The server can model the second model based on the material location information and the second modeling material.
[0060] In some embodiments, when a user models the first model through a three-dimensional editor in an electronic device, the electronic device records modeling material information and material position information during the modeling process in real time.
[0061] In these embodiments, the electronic device directly records the modeling material information and material location information during the modeling process. When the electronic device completes the modeling of the first model, the collection of the modeling material information and material location information has been completed. There is no need to detect the first model after the modeling is completed, which improves the efficiency of extracting the modeling material information and material location information.
[0062] In some other embodiments, when the user performs secondary editing on the historical model obtained by historical modeling through a 3D editor to detect the first model, after the electronic device completes modeling of the first model, the electronic device reads the modeling material information and material location information in the first model.
[0063] In these embodiments, the electronic device extracts the modeling material information and material location information in the first model after modeling is completed, so that when the electronic device edits the historical model a second time, all material configuration information in the first model can be obtained.
[0064] The embodiment of the present application obtains the modeling material information and material location information in the first model, so that the server can search for the corresponding second modeling material in the second material library according to the modeling material information, and models the second model according to the material location information and the second modeling material, so that the second model established by the server is completely corresponding to the first model established by the electronic device, thereby improving the modeling accuracy of the second model and reducing the error in the subsequent baking of the panoramic image.
[0065] In an embodiment of the present application, a three-dimensional modeling method is provided. Figure 5 The fifth flow chart of the three-dimensional modeling method provided in the embodiment of the present application is shown as follows: Figure 5 As shown, the 3D modeling method includes:
[0066] Step 502: receiving material configuration information sent by the electronic device;
[0067] Step 504: establishing a second model according to the material configuration information;
[0068] Step 506, rendering the second model to obtain a panoramic image;
[0069] Step 508: Send the panoramic image to the electronic device, so that the electronic device bakes the panoramic image into the first model.
[0070] The three-dimensional modeling method provided in the embodiment of the present application is applied to a server, and the server stores a high-quality modeling material library. After the server receives the material configuration information sent by the electronic device, it searches for the corresponding high-quality modeling material in the high-quality modeling material library according to the material configuration information, and then establishes a second model (high-quality model) through the high-quality modeling material, wherein the second model differs from the first model in model quality, and the other parameters are exactly the same. The server renders the high-quality second model to obtain a panoramic image of the second model, and the server transmits the panoramic image back to the electronic device. After the electronic device receives the panoramic image, it bakes the panoramic image onto the first model. It can be understood that since the panorama is a panorama obtained by the server rendering the high-quality second model, the panorama has a better visual effect. Baking the panorama onto the low-quality first model can improve the visual effect of the first model.
[0071] The electronic device stores a 3D editor. A user executes 3D model configuration instructions on the 3D editor to create a first model locally on the electronic device. It is understood that the modeling materials stored in the 3D editor are all low-quality modeling materials, and therefore the first model obtained by modeling is a low-quality model. The electronic device records the modeling material configuration information of the first model during the modeling process and sends the material configuration information of the first model to the server after the first model is completed.
[0072] Specifically, the modeling material library is stored in the server and the electronic device respectively, wherein the accuracy of the modeling materials in the modeling material library stored in the server is higher than the modeling materials in the modeling material library stored in the electronic device. Since the accuracy of the first model established by the electronic device using low-precision modeling materials is low, the efficiency of the electronic device in modeling the first model can be improved. The server can establish a second model with higher accuracy based on the material configuration information corresponding to the first model, and then transmit the higher-definition panoramic image rendered according to the second model back to the electronic device. The electronic device improves the visual effect of the first model by baking the higher-definition panoramic image onto the first model. During data interaction between the electronic device and the server, the electronic device only needs to send the material configuration information to the server, and the server only needs to send the rendered panoramic image. The model material does not need to be transmitted throughout the process, thereby improving data transmission efficiency.
[0073] In an embodiment of the present application, a low-quality first model is established by a 3D editor in an electronic device, thereby improving the modeling efficiency of the electronic device. A high-quality second model corresponding to the first model is established on a server, and the server renders the second model to obtain a high-quality panoramic image. The electronic device bakes the high-quality panoramic image returned by the server onto the first model, thereby improving the visual effect of the first model. This ensures that the visual effect of the first model is maintained while also improving the modeling efficiency of the terminal.
[0074] In some embodiments of the present application, Figure 6 FIG6 shows a flow chart of the three-dimensional modeling method provided in the embodiment of the present application, as shown in FIG6 Figure 6 As shown, the second model is established according to the material configuration information, including:
[0075] Step 602: Determine modeling material information and material location information in the second model based on the material configuration information;
[0076] Step 604: searching for a second modeling material in a second material library according to the modeling material information;
[0077] Step 606: Create a second model based on the second modeling material according to the material position information.
[0078] In an embodiment of the present application, the modeling material information and material location information included in the material configuration information transmitted by the electronic device can be obtained by the server based on the material configuration information. The server can search for a corresponding second modeling material in a second material library based on the modeling material information. The second modeling material corresponds one-to-one with the first modeling material, and the material accuracy of the second modeling material is higher than that of the first modeling material. The server can model the second model based on the material location information and the second modeling material.
[0079] In an embodiment of the present application, the server can search for the corresponding second modeling material in the second material library based on the modeling material information in the material configuration information, and model the second model based on the material position information and the second modeling material in the material configuration information, so that the second model established by the server is completely corresponding to the first model established by the electronic device, thereby improving the modeling accuracy of the second model and reducing the error in the subsequent baking of the panoramic map.
[0080] In some embodiments of the present application, Figure 7 FIG. 7 shows a flow chart of the three-dimensional modeling method provided in an embodiment of the present application. Figure 7 As shown, the three-dimensional modeling method further includes:
[0081] Step 702: receiving a material download request sent by an electronic device, and generating a first material library based on the second material library;
[0082] The modeling materials in the second material library correspond one-to-one to the materials in the first material library;
[0083] Step 704: Send the first material library to the electronic device, so that the electronic device stores the first material library in a local storage area.
[0084] The accuracy of the modeling materials in the second material library is higher than the accuracy of the modeling materials in the first material library.
[0085] The server stores a second material library, and the model materials in the second material library are all high-precision model materials. Before the user models the first model through the electronic device, the user sends a material download request to the server through the electronic device. In response to the material download request, the server reduces the precision of each material model in the second material library, obtains low-precision modeling materials that correspond one-to-one to the modeling materials in the second material library, and generates the first material library based on the above low-precision modeling materials. The server transmits the generated first material library back to the electronic device, and the electronic device stores the received first material in the local storage area of the electronic device.
[0086] It is worth noting that the modeling materials in the first material library correspond one-to-one to the modeling materials in the second material library, and the accuracy of the modeling materials in the first material library is lower than that of the modeling materials in the second material library.
[0087] Specifically, the server performs face reduction processing on the modeling materials in the second material library to reduce the precision of the modeling materials in the second material library, thereby obtaining the modeling materials in the first material library.
[0088] In some embodiments, when the electronic device runs the 3D editor for the first time, it sends a material download request to the server to download the first material library.
[0089] In these embodiments, the electronic device does not need to download the first material library each time before starting modeling, which further saves the time required for the electronic device to build the first model.
[0090] In an embodiment of the present application, the server receives a material download request sent by the electronic device. The server can generate a low-quality first material library from the high-quality second material library stored in the server, and transmit the first material library back to the electronic device, thereby achieving the effect of configuring the first material library in the electronic device.
[0091] In some embodiments of the present application, Figure 8 FIG8 shows a flow chart of the three-dimensional modeling method provided in an embodiment of the present application. Figure 8 As shown, before rendering the second model to obtain the panoramic image, the following steps are also included:
[0092] Step 802, obtaining preset lighting information and preset material map;
[0093] Step 804: configure the preset material map and preset lighting information in the second model.
[0094] In an embodiment of the present application, after the server completes modeling of the second model according to the material configuration information, it adds a light source to the second model and performs material mapping on the second model to make the visual effect of the second model better.
[0095] In some embodiments, the preset lighting information and the preset material map are sent to the server via the electronic device.
[0096] In these embodiments, the server configures the scene light source in the second model based on the lighting information sent by the electronic device, and then configures the preset material map sent by the electronic device on the second model, so that the user can configure the light source and material map for the second model according to actual needs, so that the panoramic image rendered according to the second model better meets the user's needs.
[0097] In some other embodiments, the server stores universal preset lighting information and preset material maps, and configures the universal preset lighting information and preset material maps in the second model.
[0098] In these embodiments, after the server completes modeling of the second model, it can automatically add light sources and materials to the second model according to common preset lighting information and preset material maps, thereby simplifying the user's operation steps and improving modeling efficiency.
[0099] In the embodiment of the present application, after the server completes modeling of the second model, the server configures the preset lighting information and preset material map in the second model, so that the panorama rendered according to the second model has the light source information and material information. The panorama is baked and mapped to the first model by an electronic device to improve the visual effect of the first model.
[0100] The 3D modeling method provided in the embodiment of the present application can be executed by a 3D modeling device. In the embodiment of the present application, a method for a 3D modeling device to perform model rendering is used as an example to illustrate the 3D modeling device provided in the embodiment of the present application.
[0101] In some embodiments of the present application, a three-dimensional modeling device is provided. Figure 9 One of the structural block diagrams of the three-dimensional modeling device provided in the embodiment of the present application is shown. Figure 9 As shown, the three-dimensional modeling device 900 includes:
[0102] A first modeling module 902 is configured to establish a first model in response to a three-dimensional model configuration instruction;
[0103] The acquisition module 904 is used to acquire the material configuration information in the first model:
[0104] A first sending module 906 is configured to send the material configuration information to a server, so that the server can create a second model according to the material configuration information, and render the second model to obtain a panoramic image;
[0105] A first receiving module 908 is configured to receive the panoramic image sent by the server;
[0106] A mapping module 910 is used to bake the panoramic image into the first model;
[0107] The accuracy of the second model is higher than that of the first model.
[0108] In an embodiment of the present application, a low-quality first model is established by a 3D editor in an electronic device, thereby improving the modeling efficiency of the electronic device. A high-quality second model corresponding to the first model is established on a server, and the server renders the second model to obtain a high-quality panoramic image. The electronic device bakes the high-quality panoramic image returned by the server onto the first model, thereby improving the visual effect of the first model. This ensures that the visual effect of the first model is maintained while also improving the modeling efficiency of the terminal.
[0109] In some embodiments of the present application, the three-dimensional modeling device 900 further includes:
[0110] A first search module, configured to search for a first modeling material in a first material library according to the three-dimensional model configuration instruction;
[0111] The first material library is a local material library of the electronic device;
[0112] The first modeling module 902 is further configured to establish a first model using a first modeling material.
[0113] In the embodiment of the present application, the user establishes the first model by calling the first modeling material in the local first material library without downloading the modeling material from the server, thereby achieving independence from the network environment in the electronic device modeling process, reducing the time required for the electronic device to establish the first model, and improving modeling efficiency.
[0114] In some embodiments of the present application, the first sending module 906 is configured to send a material download request to the server, so that the server generates a first material library based on the second material library, and the modeling materials in the second material library correspond one-to-one to the materials in the first material library;
[0115] The first receiving module 908 is further configured to receive the first material library sent by the server and store the first material library in the local storage area.
[0116] The accuracy of the modeling materials in the second material library is higher than the accuracy of the modeling materials in the first material library.
[0117] In an embodiment of the present application, the electronic device sends a material download request to the server. The server can generate a low-quality first material library from the high-quality second material library stored in the server, and return the first material library to the electronic device, thereby achieving the effect of configuring the first material library in the electronic device.
[0118] In some embodiments of the present application, the three-dimensional modeling device 900 further includes:
[0119] An extraction module, configured to extract modeling material information and material location information from the first model;
[0120] The generation module is used to generate material configuration information based on modeling material information and material location information.
[0121] The embodiment of the present application obtains the modeling material information and material location information in the first model, so that the server can search for the corresponding second modeling material in the second material library according to the modeling material information, and models the second model according to the material location information and the second modeling material, so that the second model established by the server is completely corresponding to the first model established by the electronic device, thereby improving the modeling accuracy of the second model and reducing the error in the subsequent baking of the panoramic image.
[0122] In some embodiments of the present application, a three-dimensional modeling device is provided. Figure 10 The second structural block diagram of the three-dimensional modeling device provided in the embodiment of the present application is shown as follows: Figure 10 As shown, the three-dimensional modeling device 1000 includes:
[0123] The second receiving module 1002 is configured to receive material configuration information sent by the electronic device;
[0124] A second modeling module 1004, configured to establish a second model according to the material configuration information;
[0125] A rendering module 1006 is configured to render the second model to obtain a panoramic image;
[0126] The second sending module 1008 is configured to send the panoramic image to the electronic device, so that the electronic device bakes the panoramic image into a first model.
[0127] In an embodiment of the present application, a low-quality first model is established by a 3D editor in an electronic device, thereby improving the modeling efficiency of the electronic device. A high-quality second model corresponding to the first model is established on a server, and the server renders the second model to obtain a high-quality panoramic image. The electronic device bakes the high-quality panoramic image returned by the server onto the first model, thereby improving the visual effect of the first model. This ensures that the visual effect of the first model is maintained while also improving the modeling efficiency of the terminal.
[0128] In some embodiments of the present application, the three-dimensional modeling device 1000 further includes:
[0129] a determination module, configured to determine modeling material information and material position information in the second model according to the material configuration information;
[0130] A second search module, configured to search for a second modeling material in a second material library according to the modeling material information;
[0131] The second modeling module 1004 is further configured to establish a second model based on the second modeling material according to the material location information.
[0132] In an embodiment of the present application, the server can search for the corresponding second modeling material in the second material library based on the modeling material information in the material configuration information, and model the second model based on the material position information and the second modeling material in the material configuration information, so that the second model established by the server is completely corresponding to the first model established by the electronic device, thereby improving the modeling accuracy of the second model and reducing the error in the subsequent baking of the panoramic map.
[0133] In some embodiments of the present application, the second receiving module 1002 is further configured to receive a material download request sent by an electronic device, generate a first material library based on the second material library, and the modeling materials in the second material library correspond one-to-one to the materials in the first material library;
[0134] The second sending module 1008 is further configured to send the first material library to the electronic device, so that the electronic device stores the first material library in a local storage area.
[0135] Among them, the accuracy of the modeling materials in the second material library is higher than the accuracy of the modeling materials in the first material library
[0136] In an embodiment of the present application, the server receives a material download request sent by the electronic device. The server can generate a low-quality first material library from the high-quality second material library stored in the server, and transmit the first material library back to the electronic device, thereby achieving the effect of configuring the first material library in the electronic device.
[0137] In some embodiments of the present application, the three-dimensional modeling device 1000 further includes:
[0138] Acquisition module, used to obtain preset lighting information and preset material maps;
[0139] The configuration module is used to configure the preset material map and preset lighting information in the second model.
[0140] In the embodiment of the present application, after the server completes modeling of the second model, the server configures the preset lighting information and preset material map in the second model, so that the panorama rendered according to the second model has the light source information and material information. The panorama is baked and mapped to the first model by an electronic device to improve the visual effect of the first model.
[0141] The three-dimensional modeling device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be an electronic device or a device other than an electronic device. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0142] The three-dimensional modeling device in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0143] The three-dimensional modeling device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.
[0144] Alternatively, as Figure 11 As shown, an embodiment of the present application also provides an electronic device 1100, which includes a processor 1102 and a memory 1104. The memory 1104 stores a program or input that can be run on the processor 1102. When the program or input is executed by the processor 1102, the various steps of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0145] Alternatively, as Figure 12 As shown, an embodiment of the present application further provides a server 1200, which includes a processor 1202 and a memory 1204. The memory 1204 stores a program or input that can be run on the processor 1202. When the program or input is executed by the processor 1202, the various steps of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0146] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
[0147] Figure 13 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0148] The electronic device 1300 includes but is not limited to components such as a radio frequency unit 1301 , a network module 1302 , an audio output unit 1303 , an input unit 1304 , a sensor 1305 , a display unit 1306 , a user input unit 1307 , an interface unit 1308 , a memory 1309 , and a processor 1310 .
[0149] Those skilled in the art will understand that the electronic device 1300 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1310 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0150] The processor 1310 is configured to establish a first model in response to a three-dimensional model configuration instruction;
[0151] Processor 1310 is configured to obtain material configuration information in the first model:
[0152] The processor 1310 is configured to send the material configuration information to a server, so that the server creates a second model according to the material configuration information, and renders the second model to obtain a panoramic image;
[0153] The processor 1310 is configured to receive the panoramic image sent by the server;
[0154] The processor 1310 is configured to bake the panoramic image into the first model;
[0155] The accuracy of the second model is higher than that of the first model.
[0156] In an embodiment of the present application, a low-quality first model is established by a 3D editor in an electronic device, thereby improving the modeling efficiency of the electronic device. A high-quality second model corresponding to the first model is established on a server, and the server renders the second model to obtain a high-quality panoramic image. The electronic device bakes the high-quality panoramic image returned by the server onto the first model, thereby improving the visual effect of the first model. This ensures that the visual effect of the first model is maintained while also improving the modeling efficiency of the terminal.
[0157] Furthermore, the processor 1310 is configured to search for a first modeling material in a first material library according to the three-dimensional model configuration instruction;
[0158] The first material library is a local material library of the electronic device;
[0159] The processor 1310 is configured to create a first model using a first modeling material.
[0160] In the embodiment of the present application, the user establishes the first model by calling the first modeling material in the local first material library without downloading the modeling material from the server, thereby achieving independence from the network environment in the electronic device modeling process, reducing the time required for the electronic device to establish the first model, and improving modeling efficiency.
[0161] Furthermore, the processor 1310 is configured to send a material download request to the server, so that the server generates a first material library based on the second material library, where the modeling materials in the second material library correspond one-to-one to the materials in the first material library;
[0162] The processor 1310 is configured to receive a first material library sent by a server and store the first material library in a local storage area.
[0163] The accuracy of the modeling materials in the second material library is higher than the accuracy of the modeling materials in the first material library.
[0164] In an embodiment of the present application, the electronic device sends a material download request to the server. The server can generate a low-quality first material library from the high-quality second material library stored in the server, and return the first material library to the electronic device, thereby achieving the effect of configuring the first material library in the electronic device.
[0165] Furthermore, the processor 1310 is configured to extract modeling material information and material position information from the first model;
[0166] The processor 1310 is configured to generate material configuration information according to the modeling material information and the material location information.
[0167] The embodiment of the present application obtains the modeling material information and material location information in the first model, so that the server can search for the corresponding second modeling material in the second material library according to the modeling material information, and models the second model according to the material location information and the second modeling material, so that the second model established by the server is completely corresponding to the first model established by the electronic device, thereby improving the modeling accuracy of the second model and reducing the error in the subsequent baking of the panoramic image.
[0168] It should be understood that in an embodiment of the present application, the input unit 1304 may include a graphics processing unit (GPU) 13041 and a microphone 13042, and the graphics processor 13041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1306 may include a display panel 13061, and the display panel 13061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1307 includes a touch panel 13071 and at least one of other input devices 13072. The touch panel 13071 is also called a touch screen. The touch panel 13071 may include two parts: a touch detection device and a touch controller. Other input devices 13072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0169] The memory 1309 can be used to store software programs and various data. The memory 1309 may mainly include a first storage area for storing programs or inputs and a second storage area for storing data. The first storage area may store an operating system, applications or inputs required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1309 may include a volatile memory or a non-volatile memory, or the memory 1309 may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 1309 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0170] Processor 1310 may include one or more processing units. Optionally, processor 1310 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1310.
[0171] An embodiment of the present application also provides a readable storage medium, on which a program or input is stored. When the program or input is executed by a processor, the various processes of the above-mentioned three-dimensional modeling method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0172] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0173] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or inputs to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, they will not be repeated here.
[0174] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0175] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned three-dimensional modeling method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0176] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0177] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several inputs for enabling an electronic device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0178] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A three-dimensional modeling method, characterized in that: include: Sending a material download request to a server, so that the server generates a first material library according to a second material library stored in the server, wherein the modeling materials in the second material library correspond one-to-one to the modeling materials in the first material library; receiving the first material library sent by the server and storing the first material library in a local storage area; wherein the server is configured to, in response to the material download request, reduce the precision of each material model in the second material library, so that the precision of the modeling materials in the second material library is higher than the precision of the modeling materials in the first material library; In response to a three-dimensional model configuration instruction, establishing a first model by calling modeling materials in the first material library stored in the local storage area; Obtaining material configuration information in the first model; Sending the material configuration information to a server, so that the server creates a second model according to the material configuration information, and rendering the second model to obtain a panoramic image; receiving the panoramic image sent by the server; Baking the panoramic image into the first model; The accuracy of the second model is higher than that of the first model.
2. The three-dimensional modeling method according to claim 1, characterized in that: The step of establishing the first model in response to the three-dimensional model configuration instruction includes: searching, according to the three-dimensional model configuration instruction, for a first modeling material in a first material library, wherein the first material library is a local material library of the electronic device; A first model is established using a first modeling material.
3. The three-dimensional modeling method according to claim 1 or 2, characterized in that: The acquiring of the material configuration information in the first model includes: Extracting modeling material information and material location information from the first model; Material configuration information is generated according to the modeling material information and the material position information.
4. A three-dimensional modeling method, characterized in that: include: receiving a material download request sent by an electronic device, and in response to the material download request, reducing the precision of each material model in the second material library to generate a first material library based on the second material library, wherein the modeling materials in the second material library correspond one-to-one to the modeling materials in the first material library; Sending the first material library to the electronic device, so that the electronic device stores the first material library in a local storage area and establishes a first model by calling the modeling materials in the first material library stored in the local storage area; wherein the accuracy of the modeling materials in the second material library is higher than the accuracy of the modeling materials in the first material library; receiving material configuration information sent by the electronic device; establishing a second model according to the material configuration information; Rendering the second model to obtain a panoramic image; The panoramic image is sent to the electronic device, so that the electronic device bakes the panoramic image into the first model; wherein the accuracy of the second model is higher than the accuracy of the first model.
5. The three-dimensional modeling method according to claim 4, characterized in that: The establishing of the second model according to the material configuration information includes: determining modeling material information and material position information in the second model according to the material configuration information; searching for a second modeling material in a second material library according to the modeling material information; The second model is established based on the second modeling material according to the material position information.
6. The three-dimensional modeling method according to claim 4 or 5, characterized in that: Before rendering the second model to obtain the panoramic image, the method further includes: Get preset lighting information and preset material maps; The preset material map and the preset lighting information are configured in the second model.
7. A three-dimensional modeling device, characterized in that: include: A first modeling module is configured to establish a first model by calling modeling materials in a first material library stored in a local storage area in response to a three-dimensional model configuration instruction; The acquisition module is used to obtain the material configuration information in the first model: A first sending module is configured to send the material configuration information to a server, so that the server creates a second model according to the material configuration information, and renders the second model to obtain a panoramic image; A first receiving module, configured to receive the panoramic image sent by the server; A mapping module, used for baking the panoramic image into the first model; wherein the accuracy of the second model is higher than the accuracy of the first model; The first sending module is further configured to send a material download request to the server, so that the server generates the first material library according to the second material library stored in the server, wherein the modeling materials in the second material library correspond one-to-one to the modeling materials in the first material library; The first receiving module is further configured to receive the first material library sent by the server and store the first material library in the local storage area; The server is configured to reduce the precision of each material model in the second material library in response to the material download request, and the precision of the modeling materials in the second material library is higher than that of the modeling materials in the first material library.
8. A three-dimensional modeling device, characterized in that: include: A second receiving module, configured to receive material configuration information sent by an electronic device; A second modeling module, configured to establish a second model according to the material configuration information; A rendering module, configured to render the second model to obtain a panoramic image; The second sending module is used to send the panoramic image to the electronic device, so that the electronic device bakes the panoramic image into a first model; wherein the accuracy of the second model is higher than that of the first model, The second receiving module is further configured to receive a material download request sent by the electronic device, and in response to the material download request, reduce the precision of each material model in the second material library to generate a first material library based on the second material library, wherein the modeling materials in the second material library correspond one-to-one to the modeling materials in the first material library; The second sending module is further configured to send the first material library to the electronic device, so that the electronic device stores the first material library in a local storage area and establishes the first model by calling the modeling materials in the first material library stored in the local storage area; The accuracy of the modeling materials in the second material library is higher than that of the modeling materials in the first material library.
9. An electronic device, characterized in that: include: a memory on which programs or instructions are stored; A processor, configured to implement the steps of the three-dimensional modeling method according to any one of claims 1 to 3 when executing the program or instructions.
10. A server, characterized in that: include: a memory on which programs or instructions are stored; A processor, configured to implement the steps of the three-dimensional modeling method according to any one of claims 4 to 6 when executing the program or instruction.
11. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the three-dimensional modeling method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Three dimensional human body modeling method, apparatus and system and storage medium
CN107657657A
Method, apparatus, electronic device and storage medium for displaying augmented reality data
CN109062523A