Model rendering method and device, electronic equipment and computer readable medium

By receiving the model access address, loading and adjusting parameters of the three-dimensional model, and performing mapping and expansion and baking processing, the problem of poor rendering effect caused by incomplete 3D model information is solved, and data integrity and rendering effect are improved during the rendering process.

CN119850819AActive Publication Date: 2025-04-18WEIZHANSHI (BEIJING) DIGITAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411930840.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-18
Estimated Expiration
2044-12-25

AI Technical Summary

Technical Problem

During the 3D model rendering process, the uploaded 3D model information may be incomplete, resulting in poor rendering or unavailable to render.

Method used

By receiving the model access address, loading the initial three-dimensional model, adjusting parameters in response to user adjustment information, and mapping and expanding and baking processing, generating complete three-dimensional model data for rendering.

Benefits of technology

It ensures that the expansion and baking process can be automatically performed when three-dimensional model information is missing, providing complete data support for subsequent rendering and output, avoiding poor rendering or inability to render.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119850819A_ABST
    Figure CN119850819A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a model rendering method and device, electronic equipment and a computer readable medium. A specific embodiment of the method comprises the following steps: receiving a model access address sent by a target user; loading the initial three-dimensional model; performing parameter adjustment processing on the initial three-dimensional model; performing mapping expansion processing on the three-dimensional model after parameter adjustment; carrying out baking processing on the unfolded three-dimensional model; performing effect picture rendering processing on the baked three-dimensional model; receiving an export request sent by a target user, and determining a target export format; and generating a three-dimensional model effect picture corresponding to the target export format, and exporting the three-dimensional model effect picture. According to the embodiment, it is ensured that the model can be automatically expanded and baked when the three-dimensional model information is lacked, complete data support is provided for subsequent rendering and output, and then the situation that the effect of the rendered three-dimensional model is poor, and even the three-dimensional model cannot be rendered is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a model rendering method, device, electronic device, and computer-readable medium. Background Art

[0002] 3D model rendering technology plays a vital role in the generation of 3D models. When performing 3D model rendering, the method usually adopted is: according to the 3D model information, the obtained 3D model is rendered to generate a rendering effect picture.

[0003] However, when the above method is used to render a 3D model, the following technical problems often occur: The uploaded 3D model information may be incomplete, resulting in poor rendering of the 3D model or even failure to render the 3D model.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0006] Some embodiments of the present disclosure propose a model rendering method, an apparatus, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0007] In a first aspect, some embodiments of the present disclosure provide a model rendering method, the method comprising: receiving a model access address sent by a target user; loading an initial three-dimensional model according to the model access address and a preset model format; in response to receiving adjustment information for the initial three-dimensional model sent by the target user, adjusting the parameters of the initial three-dimensional model according to the adjustment information to generate a three-dimensional model after parameter adjustment; mapping and expanding the three-dimensional model after parameter adjustment to generate an expanded three-dimensional model; baking the expanded three-dimensional model to generate a baked three-dimensional model; performing rendering processing on the baked three-dimensional model according to the baked three-dimensional model to generate a three-dimensional model rendering; receiving an export request sent by the target user, and determining a target export format according to the export request; generating a three-dimensional model rendering corresponding to the target export format, and exporting the three-dimensional model rendering.

[0008] In a second aspect, some embodiments of the present disclosure provide a model rendering device, the device comprising: a first receiving unit, configured to receive a model access address sent by a target user; a loading unit, configured to load an initial three-dimensional model according to the model access address and a preset model format; a parameter adjustment unit, configured to, in response to receiving adjustment information for the initial three-dimensional model sent by the target user, perform parameter adjustment processing on the initial three-dimensional model according to the adjustment information to generate a parameter-adjusted three-dimensional model; a mapping and expansion unit, configured to perform mapping and expansion processing on the parameter-adjusted three-dimensional model to generate an expanded three-dimensional model; a baking unit, configured to perform baking processing on the expanded three-dimensional model to generate a baked three-dimensional model; a rendering unit, configured to perform rendering processing on the baked three-dimensional model according to the baked three-dimensional model to generate a three-dimensional model rendering; a second receiving unit, configured to receive an export request sent by the target user, and determine a target export format according to the export request; a generating unit, configured to generate a three-dimensional model rendering corresponding to the target export format, and export the three-dimensional model rendering.

[0009] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0010] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0011] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the model rendering method of some embodiments of the present disclosure, the situation where the effect of the rendered three-dimensional model is poor or even the three-dimensional model cannot be rendered is avoided. Specifically, the reason for the poor effect of the rendered three-dimensional model or even the inability to render the three-dimensional model is that the uploaded three-dimensional model information may be incomplete, resulting in the poor effect of the rendered three-dimensional model or even the inability to render the three-dimensional model. Based on this, the model rendering method of some embodiments of the present disclosure first receives the model access address sent by the target user. Thus, the storage address of the initial three-dimensional model can be determined. Secondly, the initial three-dimensional model is loaded according to the above-mentioned model access address and the preset model format. Thus, the initial three-dimensional model can be loaded according to the preset format. Then, in response to receiving the adjustment information for the above-mentioned initial three-dimensional model sent by the above-mentioned target user, the above-mentioned initial three-dimensional model is adjusted according to the above-mentioned adjustment information to generate a three-dimensional model after parameter adjustment. Thus, various parameters of the initial three-dimensional model can be adjusted. Afterwards, the above-mentioned three-dimensional model after parameter adjustment is mapped and expanded to generate an expanded three-dimensional model; and the above-mentioned expanded three-dimensional model is baked to generate a baked three-dimensional model. Thus, by automatically mapping the expansion and baking, it is ensured that the model can be automatically expanded and baked when the three-dimensional model information is missing, and complete data support is provided for subsequent rendering and output. Then, according to the above-mentioned three-dimensional model after baking, the above-mentioned three-dimensional model after baking is subjected to rendering of the rendering to generate a three-dimensional model rendering. Thus, the rendering of the rendering of the three-dimensional model after rendering is completed, and it is ensured that the model can be automatically expanded and baked when the three-dimensional model information is missing, and complete data support is provided for subsequent rendering and output. Finally, the export request sent by the above-mentioned target user is received, and the target export format is determined according to the above-mentioned export request; a three-dimensional model rendering corresponding to the above-mentioned target export format is generated, and the above-mentioned three-dimensional model rendering is exported. Thus, the rendered rendering can be exported in the format required by the user. It avoids the situation where the effect of the rendered three-dimensional model is poor or even the three-dimensional model cannot be rendered. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0013] Figure 1 is a flow chart of some embodiments of the model rendering method according to the present disclosure; Figure 2 is a schematic diagram of the structure of some embodiments of the model rendering device according to the present disclosure; Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure.

[0014] Figure 4 It is a model loading test diagram according to some embodiments of the model rendering method disclosed in the present invention. DETAILED DESCRIPTION

[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0016] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0017] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0018] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0019] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0020] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0021] Figure 1 A process 100 of some embodiments of the model rendering method according to the present disclosure is shown. The model rendering method comprises the following steps: Step 101: Receive a model access address sent by a target user.

[0022] In some embodiments, the execution subject (e.g., server) of the model rendering method may receive a model access address sent by a target user. The target user may be the user who sent the model access address. The model access address may be a network address for accessing the initial three-dimensional model. For example, the model access address may be a URL link.

[0023] Step 102: Load the initial three-dimensional model according to the model access address and the preset model format.

[0024] In some embodiments, the execution subject may load the initial three-dimensional model according to the model access address and the preset model format. The preset model format may be a preset format for loading the initial three-dimensional model. For example, the preset model format may be a GLTF model format. Figure 4 As shown, a model loading test diagram of some embodiments of the model rendering method of the present disclosure is shown. It can be seen that the scene is equipped with multiple real-time light sources, and the light sources can act on multiple components at the same time, making the model texture clearer.

[0025] In practice, the above initial 3D model can be loaded by the following steps: The first step is to asynchronously load the three-dimensional model represented by the above model access address.

[0026] The second step is to add the loaded 3D model to the pre-generated 3D model scene through a preset loading algorithm. In practice, the loaded 3D model can be added to the pre-generated 3D model scene through the GLTFLoader tool. The 3D model scene can be a Three.js scene for displaying the loaded 3D model.

[0027] Step 103, in response to receiving the adjustment information for the initial three-dimensional model sent by the target user, the initial three-dimensional model is adjusted according to the adjustment information to generate a three-dimensional model after adjustment.

[0028] In some embodiments, the execution entity may, in response to receiving adjustment information for the initial three-dimensional model sent by the target user, perform parameter adjustment processing on the initial three-dimensional model according to the adjustment information to generate a three-dimensional model after parameter adjustment.

[0029] In practice, the above initial 3D model can be adjusted by the following steps to generate a 3D model after adjustment: The first step is to receive adjustment information for the initial three-dimensional model sent by the target user, wherein the adjustment information may be information for adjusting the displayed initial three-dimensional model.

[0030] The second step is to split the adjustment information to generate split adjustment information. The split adjustment information may include: size information and material information. The size information may be the size of the required initial three-dimensional model. The material information may be the material of the model to be modified. The material information may include but is not limited to: color and texture.

[0031] The third step is to adjust the size of the three-dimensional model according to the scaling factor included in the size information, wherein the scaling factor may be a factor used to represent the degree of scaling of the initial three-dimensional model.

[0032] The fourth step is to adjust the material of the above three-dimensional model to the three-dimensional model material represented by the above material information to generate a three-dimensional model after parameter adjustment.

[0033] Step 104, mapping and unfolding processing is performed on the adjusted three-dimensional model to generate an unfolded three-dimensional model.

[0034] In some embodiments, the execution entity may perform mapping and expansion processing on the adjusted three-dimensional model to generate an expanded three-dimensional model.

[0035] In practice, the execution subject may perform mapping and expansion processing on the three-dimensional model after parameter adjustment through the following steps to generate an expanded three-dimensional model: The first step is to import the adjusted 3D model into the unfolding module, which may be the bpy module of the Blender suite.

[0036] The second step is to select the above-mentioned adjusted three-dimensional model and adjust the above-mentioned expansion module to the editing mode. In practice, the adjusted three-dimensional model in the above-mentioned expansion module can be switched to the editing mode to facilitate mapping expansion.

[0037] The third step is to map and unfold each face of the three-dimensional model after the above parameter adjustment. The above mapping and unfolding can be UV Unwrapping.

[0038] The fourth step is to adjust the above expansion module to the object mode in response to the completion of the mapping and expansion of each surface of the three-dimensional model after the above parameter adjustment.

[0039] The fifth step is to save the adjusted 3D model after mapping and unfolding to a folder to obtain the unfolded 3D model.

[0040] In the process of adopting technical solutions to solve the above technical problems, the following technical problems often occur: when the UV of the model is unfolded, the secants of the closed three-dimensional model are different, resulting in inconsistency in the unfolded two-dimensional image, which in turn causes distortion of the rendered image.

[0041] In some optional implementations of some embodiments, the execution subject may perform mapping and expansion processing on the three-dimensional model after parameter adjustment through the following steps: In the first step, at least one mesh slit is generated according to the three-dimensional model after parameter adjustment, wherein the mesh slit in the at least one mesh slit is used to cut the mesh included in the three-dimensional model and generate new mesh vertices.

[0042] In the second step, according to the at least one grid cut, the grid included in the three-dimensional model after parameter adjustment is divided into a plurality of grid disk structures to obtain a grid disk structure group.

[0043] The third step is to expand each grid disk structure in the grid disk structure group into a two-dimensional plane according to a preset algorithm, wherein the preset algorithm may be a PCA (Principal Component Analysis) algorithm.

[0044] In the fourth step, for each grid disk structure in the above grid disk structure group, the following determination steps are performed: The first determination step is to determine the surface curvature corresponding to the mesh disk structure. In practice, the surface curvature corresponding to the mesh disk structure can be determined using a curvature calculation formula.

[0045] The second determination step is to segment and unfold the grid disk structure according to the preset algorithm in response to the surface curvature being greater than a preset surface curvature threshold.

[0046] The fifth step is to perform texture coordinate packing processing on each unfolded grid disk structure to generate each packed grid disk structure as the unfolded three-dimensional model.

[0047] The above-mentioned first step to the seventh step, as an inventive point of an embodiment of the present disclosure, combined with the following step "step 106", solves the technical problem "When the UV unfolding of the model is performed, due to the different secants of the closed three-dimensional model, the unfolded two-dimensional image is inconsistent, which in turn causes the rendered image to be distorted". The reasons for the distortion of the rendered image are as follows: When the UV unfolding of the model is performed, due to the different secants of the closed three-dimensional model, the unfolded two-dimensional image is inconsistent, which in turn causes the rendered image to be distorted. If the above factors are solved, the effect of avoiding the distortion of the rendered image can be achieved. In order to achieve this effect, the present disclosure first generates at least one grid cut according to the above-mentioned three-dimensional model after parameter adjustment. Thus, multiple grid cuts can be generated. Second, according to the above-mentioned at least one grid cut, the grid included in the above-mentioned three-dimensional model after parameter adjustment is divided into multiple grid disk structures to obtain a grid disk structure group. Thus, the three-dimensional model can be divided into multiple grid disks by grid cuts. Third, according to a preset algorithm, each grid disk structure in the above-mentioned grid disk structure group is unfolded into a two-dimensional plane. Thus, the divided three-dimensional model can be unfolded on a two-dimensional plane to achieve dimensionality reduction processing of the three-dimensional model. Fourth, for each grid disk structure in the above-mentioned grid disk structure group, the following determination steps are performed: determining the surface curvature corresponding to the above-mentioned grid disk structure; in response to the above-mentioned surface curvature being greater than the preset surface curvature threshold, the above-mentioned grid disk structure is segmented and unfolded according to the above-mentioned preset algorithm. Thus, the grid disk with a higher curvature can be divided again, thereby reducing the curvature and reducing distortion. Thus, the situation where the unfolded two-dimensional image is inconsistent due to different secants can be avoided. Fifth, the texture coordinates of each unfolded grid disk structure are packaged to generate each packaged grid disk structure as the unfolded three-dimensional model. Thus, the unfolded three-dimensional model can be texture packaged. Combined with "step 106", according to the baked three-dimensional model, the baked three-dimensional model is rendered to generate a three-dimensional model rendering. Thus, the distortion of the rendered three-dimensional model rendering can be avoided.

[0048] Step 105 , baking the unfolded three-dimensional model to generate a baked three-dimensional model.

[0049] In some embodiments, the execution entity may bake the unfolded three-dimensional model to generate a baked three-dimensional model.

[0050] In some optional implementations of some embodiments, the execution subject may bake the unfolded three-dimensional model through the following steps to generate a baked three-dimensional model: The first step is to load the unfolded 3D model into a baking module, which may be a bpy module of the Blender suite.

[0051] The second step is to receive the baking configuration information sent by the target terminal, wherein the baking configuration information may include but is not limited to: light source information and baking resolution.

[0052] The third step is to generate a light source component in the baking module according to the light source information included in the baking configuration information.

[0053] Step 4: Create an initial texture file group, wherein the initial texture file may be a texture for storing baked texture information.

[0054] The fifth step is to distribute and process the material information corresponding to the initial texture file group and the expanded three-dimensional model. Here, for each initial texture file in the initial texture file group, the material part of the expanded three-dimensional model corresponding to the initial texture file is determined.

[0055] The sixth step is to obtain baking information, and, based on the baking information, bake the initial map file included in the unfolded three-dimensional model to generate a baked three-dimensional model, so as to bake the baking information into the initial map file.

[0056] Step 7: Save the baked 3D model to a folder.

[0057] Step 106: According to the baked three-dimensional model, rendering processing is performed on the baked three-dimensional model to generate a three-dimensional model rendering.

[0058] In some embodiments, the execution entity may perform a rendering process on the baked three-dimensional model according to the baked three-dimensional model to generate a three-dimensional model rendering.

[0059] In practice, the execution subject may perform rendering processing on the baked 3D model through the following steps: In the first step, the baked three-dimensional model is replaced by the initial three-dimensional model.

[0060] The second step is to obtain the pre-stored model adjustment information, and adjust the baked 3D model according to the pre-stored model adjustment information to generate an adjusted 3D model. The pre-stored model adjustment information may be a pre-stored JSON file for adjusting the baked 3D model.

[0061] The third step is to input the above adjustments into a preset renderer to perform a rendering loop on the above adjusted 3D model to obtain a rendered 3D model. In practice, first, the above baked 3D model can be input into a pre-configured renderer. Secondly, a camera and a light source can be set in the renderer to ensure the correct display of the model. Then, the above adjusted 3D model can be subjected to a rendering loop for real-time rendering.

[0062] The fourth step is to generate a 3D model rendering according to the rendered 3D model. Here, each rendering layer in the rendered 3D model can be combined to generate a 3D model rendering.

[0063] In the process of adopting technical solutions to solve the above technical problems, the following technical problems are often accompanied: when the three-dimensional model is rendered as a whole, the model rendering speed is slow and the rendering efficiency is low, so it takes a long time to render the model.

[0064] In some optional implementations of some embodiments, the execution subject may perform rendering processing on the baked three-dimensional model to generate a three-dimensional model rendering through the following steps: In the first step, the baked three-dimensional model is divided into blocks to generate a group of divided models.

[0065] The second step is to determine the baked three-dimensional model as a root node, and generate a quadtree model based on the root node.

[0066] The third step is to match each of the block models in the block model group with each of the nodes included in the quadtree model to obtain a matched quadtree.

[0067] Step 4: For each node in the quadtree after the above matching, perform the following processing steps: The first processing step is to determine whether the node intersects with the baked three-dimensional model.

[0068] The second processing step is to determine the node and the child node corresponding to the node as a first rendering node in response to the node not intersecting with the baked three-dimensional model.

[0069] The third processing step is to determine, in response to the node intersecting with the baked three-dimensional model, whether each child node corresponding to the node intersects with the baked three-dimensional model.

[0070] In a fourth processing step, the node and the sub-nodes intersecting with the baked three-dimensional model among the sub-nodes corresponding to the node are determined as second rendering nodes.

[0071] In the fifth step, the CPU performs multi-dimensional matrix processing on the divided models corresponding to the determined second rendering nodes in real time, and performs smoothing processing on the vertices corresponding to each divided model.

[0072] In the sixth step, each smoothed block model is transmitted to the shader according to the position of the corresponding node in the quadtree model for rendering to obtain a three-dimensional model rendering.

[0073] The above-mentioned first step to the seventh step, as an inventive point of an embodiment of the present disclosure, solves the technical problem of "when the three-dimensional model is rendered as a whole, the model rendering speed is slow, the rendering efficiency is low, and it takes a long time to render the model". The reasons why it takes a long time to render the model are as follows: when the three-dimensional model is rendered as a whole, the model rendering speed is slow, the rendering efficiency is low, and it takes a long time to render the model. If the above factors are solved, the effect of reducing the time for rendering the model can be achieved. In order to achieve this effect, the present disclosure first blocks the above-mentioned baked three-dimensional model to generate a block model group. Thus, the three-dimensional model can be divided into different data blocks. Second, the above-mentioned baked three-dimensional model is determined as a root node, and a quadtree model is generated according to the above-mentioned root node. Thus, a quadtree structure can be obtained. Third, each block model in the above-mentioned block model group is matched with each node included in the above-mentioned quadtree model to obtain a matched quadtree. Thus, each data block can be combined with a node in the quadtree. Fourth, for each node in the above-mentioned matched quadtree, the following processing steps are performed: determine whether the above-mentioned node intersects with the above-mentioned baked three-dimensional model; in response to the node not intersecting with the above-mentioned baked three-dimensional model, determine the above-mentioned node and the child node corresponding to the above-mentioned node as the first rendering node; in response to the above-mentioned node intersecting with the above-mentioned baked three-dimensional model, determine whether each child node corresponding to the above-mentioned node intersects with the above-mentioned baked three-dimensional model; determine the child node and the above-mentioned node that intersect with the above-mentioned baked three-dimensional model in each child node corresponding to the above-mentioned node as the second rendering node. Thus, it can be determined whether each data block needs to be rendered by traversal, and the data blocks are classified according to the traversal results. Fifth, the multi-dimensional matrix processing is performed on the block models corresponding to each second rendering node determined by the CPU in real time, and the vertices corresponding to each block model are smoothed; the smoothed block models are transmitted to the shader according to the position of the corresponding node in the quadtree model for rendering, and a three-dimensional model effect diagram is obtained. Thus, the rendering of the three-dimensional model is completed. By dividing the three-dimensional model into blocks and rendering only the data blocks that need to be rendered, the transmission of rendering data is reduced, thereby improving the rendering efficiency and reducing the time for rendering the three-dimensional model.

[0074] Step 107: receiving an export request sent by a target user, and determining a target export format according to the export request.

[0075] In some embodiments, the execution host may receive an export request sent by a target user, and determine a target export format according to the export request. The export request may be a request for exporting the three-dimensional model rendering. In practice, format information representing the format of the three-dimensional model rendering selected by the target user may be selected from the export request to determine the target export format.

[0076] Step 108, generating a three-dimensional model rendering corresponding to the target export format, and exporting the three-dimensional model rendering.

[0077] In some embodiments, the execution subject may generate a 3D model rendering corresponding to the target export format, and export the 3D model rendering. In practice, the format of the 3D model rendering may be converted to the target export format, and the converted 3D model rendering may be exported.

[0078] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the model rendering method of some embodiments of the present disclosure, the situation where the effect of the rendered three-dimensional model is poor or even the three-dimensional model cannot be rendered is avoided. Specifically, the reason for the poor effect of the rendered three-dimensional model or even the inability to render the three-dimensional model is that the uploaded three-dimensional model information may be incomplete, resulting in the poor effect of the rendered three-dimensional model or even the inability to render the three-dimensional model. Based on this, the model rendering method of some embodiments of the present disclosure first receives the model access address sent by the target user. Thus, the storage address of the initial three-dimensional model can be determined. Secondly, the initial three-dimensional model is loaded according to the above-mentioned model access address and the preset model format. Thus, the initial three-dimensional model can be loaded according to the preset format. Then, in response to receiving the adjustment information for the above-mentioned initial three-dimensional model sent by the above-mentioned target user, the above-mentioned initial three-dimensional model is adjusted according to the above-mentioned adjustment information to generate a three-dimensional model after parameter adjustment. Thus, various parameters of the initial three-dimensional model can be adjusted. Afterwards, the above-mentioned three-dimensional model after parameter adjustment is mapped and expanded to generate an expanded three-dimensional model; and the above-mentioned expanded three-dimensional model is baked to generate a baked three-dimensional model. Thus, by automatically mapping the expansion and baking, it is ensured that the model can be automatically expanded and baked when the three-dimensional model information is missing, and complete data support is provided for subsequent rendering and output. Then, according to the above-mentioned three-dimensional model after baking, the above-mentioned three-dimensional model after baking is subjected to rendering of the rendering to generate a three-dimensional model rendering. Thus, the rendering of the rendering of the three-dimensional model after rendering is completed, and it is ensured that the model can be automatically expanded and baked when the three-dimensional model information is missing, and complete data support is provided for subsequent rendering and output. Finally, the export request sent by the above-mentioned target user is received, and the target export format is determined according to the above-mentioned export request; a three-dimensional model rendering corresponding to the above-mentioned target export format is generated, and the above-mentioned three-dimensional model rendering is exported. Thus, the rendered rendering can be exported in the format required by the user. It avoids the situation where the effect of the rendered three-dimensional model is poor or even the three-dimensional model cannot be rendered.

[0079] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a model rendering device. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the model rendering device can be specifically applied to various electronic devices.

[0080] like Figure 2As shown, the model rendering device 200 of some embodiments includes: a receiving unit 201, a loading unit 202, a parameter adjustment unit 203, a mapping expansion unit 204, a baking unit 205, a rendering unit 206, a second receiving unit 207 and a generating unit 208. Among them, the receiving unit 201 is configured to receive the model access address sent by the target user; the loading unit 202 is configured to load the initial three-dimensional model according to the above-mentioned model access address and the preset model format; the parameter adjustment unit 203 is configured to respond to the adjustment information for the above-mentioned initial three-dimensional model sent by the above-mentioned target user, and according to the above-mentioned adjustment information, perform parameter adjustment processing on the above-mentioned initial three-dimensional model to generate a three-dimensional model after parameter adjustment; the mapping and expansion unit 204 is configured to perform mapping and expansion processing on the above-mentioned three-dimensional model after parameter adjustment to generate an expanded three-dimensional model; the baking unit 205 is configured to bake the above-mentioned expanded three-dimensional model to generate a baked three-dimensional model; the effect rendering unit 206 is configured to perform effect rendering processing on the above-mentioned baked three-dimensional model according to the above-mentioned baked three-dimensional model to generate a three-dimensional model effect diagram; the second receiving unit 207 is configured to receive the export request sent by the above-mentioned target user, and determine the target export format according to the above-mentioned export request; the generating unit 208 is configured to generate a three-dimensional model effect diagram corresponding to the above-mentioned target export format, and export the above-mentioned three-dimensional model effect diagram.

[0081] It can be understood that the units recorded in the model rendering device 200 and the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the model rendering device 200 and the units included therein, and will not be described in detail here.

[0082] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 300 suitable for implementing some embodiments of the present disclosure. The electronic devices in some embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0083] like Figure 3As shown, the electronic device 300 may include a processing device 301 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 to a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0084] Typically, the following devices may be connected to the I / O interface 305: an input device 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0085] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0086] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0087] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0088] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: receives the model access address sent by the target user. Loads the initial three-dimensional model according to the model access address and the preset model format. In response to receiving the adjustment information for the initial three-dimensional model sent by the target user, the initial three-dimensional model is adjusted according to the adjustment information to generate a three-dimensional model after parameter adjustment. The three-dimensional model after parameter adjustment is mapped and expanded to generate an expanded three-dimensional model. The expanded three-dimensional model is baked to generate a baked three-dimensional model. According to the baked three-dimensional model, the baked three-dimensional model is rendered to generate a three-dimensional model rendering. An export request sent by the target user is received, and a target export format is determined according to the export request. A three-dimensional model rendering corresponding to the target export format is generated, and the three-dimensional model rendering is exported.

[0089] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0090] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0091] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including a receiving unit, a loading unit, a parameter adjustment unit, a mapping expansion unit, a baking unit, a rendering unit, a second receiving unit, and a generating unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the receiving unit may also be described as a "unit for receiving a model access address sent by a target user".

[0092] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0093] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A model rendering method, comprising: Receive the model access address sent by the target user; Loading the initial three-dimensional model according to the model access address and the preset model format; In response to receiving the adjustment information for the initial three-dimensional model sent by the target user, performing parameter adjustment processing on the initial three-dimensional model according to the adjustment information to generate a parameter-adjusted three-dimensional model; Performing mapping and expansion processing on the parameter-adjusted three-dimensional model to generate an expanded three-dimensional model; Performing baking processing on the unfolded three-dimensional model to generate a baked three-dimensional model; According to the baked three-dimensional model, performing effect graph rendering processing on the baked three-dimensional model to generate a three-dimensional model effect graph; receiving an export request sent by the target user, and determining a target export format according to the export request; Generate a three-dimensional model rendering corresponding to the target export format, and perform export processing on the three-dimensional model rendering.

2. The method according to claim 1, wherein: The loading of the initial three-dimensional model according to the model access address and the preset model format includes: Performing asynchronous loading processing on the three-dimensional model represented by the model access address; Through the preset loading algorithm, the loaded 3D model is added to the pre-generated 3D model scene.

3. The method according to claim 1, wherein: In response to receiving the adjustment information for the initial three-dimensional model sent by the target user, performing parameter adjustment processing on the initial three-dimensional model according to the adjustment information to generate a parameter-adjusted three-dimensional model, including: Receiving adjustment information for the initial three-dimensional model sent by the target user; Splitting the adjustment information to generate split adjustment information, wherein the split adjustment information includes: size information and material information; Adjusting the size of the three-dimensional model according to the scaling factor included in the size information; The material of the three-dimensional model is adjusted to the three-dimensional model material represented by the material information to generate a three-dimensional model after parameter adjustment.

4. The method according to claim 1, wherein: The mapping and unfolding processing is performed on the parameter-adjusted three-dimensional model to generate an unfolded three-dimensional model, including: Importing the adjusted three-dimensional model into the expansion module; Selecting the adjusted three-dimensional model and adjusting the expansion module to an editing mode; Mapping and unfolding each surface of the three-dimensional model after parameter adjustment; In response to completion of mapping and unfolding of each face of the three-dimensional model after the parameter adjustment, adjusting the unfolding module to an object mode; Save the adjusted 3D model after mapping and unfolding to a folder to obtain the unfolded 3D model.

5. The method according to claim 1, wherein: The step of baking the unfolded three-dimensional model to generate a baked three-dimensional model includes: Loading the unfolded three-dimensional model into a baking module; Receiving baking configuration information sent by the target terminal, wherein the baking configuration information includes: light source information and baking resolution; Generating a light source component in the baking module according to the light source information included in the baking configuration information; Create an initial texture file group; Distributing and processing the material information corresponding to the initial texture file group and the unfolded three-dimensional model; Acquiring baking information, and, according to the baking information, baking the initial map file included in the unfolded three-dimensional model to generate a baked three-dimensional model, so as to bake the baking information into the corresponding initial map file; The baked three-dimensional model is saved in a folder.

6. The method according to claim 1, wherein: The step of performing rendering processing on the baked three-dimensional model according to the baked three-dimensional model to generate a three-dimensional model rendering includes: Replacing the baked three-dimensional model with the initial three-dimensional model; Acquiring pre-stored model adjustment information, and adjusting the baked three-dimensional model according to the pre-stored model adjustment information to generate an adjusted three-dimensional model; Inputting the adjusted three-dimensional model into a preset renderer to perform a rendering loop process on the adjusted three-dimensional model to obtain a rendered three-dimensional model; A three-dimensional model rendering is generated according to the rendered three-dimensional model.

7. A model rendering device, comprising: A first receiving unit is configured to receive a model access address sent by a target user; A loading unit, configured to load the initial three-dimensional model according to the model access address and the preset model format; a parameter adjustment unit, configured to, in response to receiving adjustment information for the initial three-dimensional model sent by the target user, perform parameter adjustment processing on the initial three-dimensional model according to the adjustment information to generate a parameter-adjusted three-dimensional model; A mapping expansion unit is configured to perform mapping expansion processing on the adjusted three-dimensional model to generate an expanded three-dimensional model; A baking unit, configured to perform a baking process on the unfolded three-dimensional model to generate a baked three-dimensional model; An effect picture rendering unit is configured to perform effect picture rendering processing on the baked three-dimensional model according to the baked three-dimensional model to generate a three-dimensional model effect picture; A second receiving unit is configured to receive an export request sent by the target user, and determine a target export format according to the export request; The generating unit is configured to generate a three-dimensional model rendering corresponding to the target export format, and to perform export processing on the three-dimensional model rendering.

8. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Three-dimensional model baking method and system based on urban brain space-time construction component

    CN113822988A

  • Three-dimensional modeling method based on artificial intelligence, electronic equipment and storage medium

    CN117671158A

  • Rendering adjustment method of three-dimensional model, rendering adjustment method of medical three-dimensional model and computer equipment

    CN119131217A