Method for automatically designing and quickly rendering ship living cabin to generate texture through image diffusion model

Through the image diffusion model, the design drawings and functional requirements of the ship's living compartment are transformed into input parameters for texture generation, solving the problems of low texture generation and rendering efficiency and insufficient precision, and achieving efficient and accurate texture design and rendering effects.

CN119850843APending Publication Date: 2025-04-18中国船舶集团海舟系统技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411958372.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The prior art is difficult to effectively convert the design drawings and functional requirements of the ship's living compartment into input parameters for texture generation, resulting in low texture generation and rendering efficiency and insufficient accuracy, making it difficult to meet the complex needs of modern ship design.

Method used

Through the image diffusion model, based on the design drawings and functional requirements of the ship's living compartment, the functional area and material requirements of the compartment are analyzed, preliminary design parameters matching the texture are generated, and the distribution and details of the texture are adjusted through optimization processing to achieve accurate matching of textures and high-quality rendering.

Benefits of technology

It significantly improves the efficiency and accuracy of texture design, realizes the intelligent process from functional requirements to texture generation, avoids artificial deviations in traditional design, and improves the realism and intuitiveness of texture rendering effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119850843A_ABST
    Figure CN119850843A_ABST
Patent Text Reader

Abstract

The invention relates to the field of ship design and computer graphics, in particular to a method for automatically designing and quickly rendering a ship living cabin to generate textures through an image diffusion model. The method comprises the steps that based on a ship living cabin design drawing and functional requirements, cabin functional areas and material requirements are analyzed, and preliminary design parameters matched with textures are generated; cabin material characteristic information is extracted from the preliminary design parameters, basic textures are generated based on an image diffusion model, and preliminary material texture preprocessing is carried out; performing optimization processing on the basic texture, adjusting distribution and details of the texture based on cabin structure and function requirements, and generating an optimized texture; loading the optimized texture into the 3D ship design model, and performing real-time rendering and visual display; and adjusting texture design according to the rendering effect and user feedback, and forming closed-loop optimization. The automation degree and rendering precision of ship living cabin texture design can be improved, and meanwhile the design efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of ship design and computer graphics, and in particular to a method for automatically designing and quickly rendering and generating textures for a ship living cabin through an image diffusion model. Background Art

[0002] With the development of modern ship design technology, the interior design of ship living quarters has gradually shown a highly personalized and functional demand. In the traditional ship living quarters design process, texture generation and rendering usually rely on manual material design and manual adjustment methods. This process is not only inefficient, but also prone to inaccurate texture matching due to human differences. Especially when dealing with complex geometric structures and diverse material requirements, it is difficult to achieve high-quality texture distribution and detail expression.

[0003] In recent years, deep learning technology in computer graphics has provided new solutions for texture generation. In particular, the generation technology based on the image diffusion model can automatically generate high-quality textures by inputting design parameters and material properties. However, the direct application of the image diffusion model to the design of ship living cabins still faces the following technical difficulties:

[0004] (1) How to convert the complex ship living cabin design drawings and functional requirements into input parameters for texture generation to achieve accurate expression of material requirements.

[0005] (2) How to combine the geometric characteristics of the cabin with the functional area requirements to achieve accurate texture mapping and distribution optimization in texture generation.

[0006] (3) How to achieve closed-loop optimization of texture design through user feedback to ensure that the texture rendering effect meets the actual design requirements of the ship’s living compartment.

[0007] The existing technology lacks a systematic method that can generate and optimize textures based on design drawings and functional requirements using image diffusion models, which leads to low efficiency and insufficient precision in texture generation and rendering in ship living cabin design, and it is difficult to meet the complex requirements of modern ship design. Therefore, an automated texture generation and rendering method based on image diffusion models is proposed, which has important technical significance and practical application value. Summary of the invention

[0008] The present invention provides a method for automatically designing and quickly rendering and generating textures for a ship living cabin through an image diffusion model, so as to solve the problem of how to automatically generate and optimize textures that meet the functional requirements of the cabin based on the design drawing of the ship living cabin, a 3D ship design model, functional requirements and material characteristics, thereby improving the ship design efficiency and texture rendering accuracy.

[0009] In order to solve the above technical problems, the present invention provides a method for automatically designing and quickly rendering and generating textures for a ship living cabin through an image diffusion model, comprising:

[0010] Based on the ship's living cabin design and functional requirements, analyze the cabin's functional areas and material requirements, and generate preliminary design parameters that match the texture;

[0011] Acquire cabin material characteristic information and a 3D ship design model from the preliminary design parameters, generate basic textures based on an image diffusion model, and perform preliminary material texture preprocessing;

[0012] Optimizing the basic texture, adjusting the distribution and details of the texture based on the cabin structure and functional requirements, and generating an optimized texture;

[0013] Applying the optimized texture to a 3D ship design model, performing real-time rendering based on the optimized texture, displaying the rendering effect and performing visual display;

[0014] According to the rendering effect and user feedback, the texture design is adjusted, and the modification opinions are fed back to the texture generation and optimization module.

[0015] Furthermore, the step of generating preliminary design parameters matching the texture includes:

[0016] Obtain the design drawings of the ship's living quarters, including the cabin structure distribution, location of functional areas and material requirements;

[0017] Analyzing the geometric characteristics of each functional area in the design drawing, including size, shape and layout;

[0018] Generate preliminary texture design parameters, including texture type, material mapping, and color properties.

[0019] Furthermore, the step of generating a basic texture based on the image diffusion model includes:

[0020] Extract material property information from preliminary design parameters, including texture resolution, roughness, and glossiness;

[0021] Inputting the material property information and the 3D ship design model into an image diffusion model to generate a preliminary texture;

[0022] The generated basic texture is pre-processed and mapped to the 3D ship design model to preview the effect.

[0023] Furthermore, the step of performing preliminary preprocessing on the generated basic texture includes:

[0024] Adjust the texture's level of detail, including glossiness, texture clarity, and color saturation;

[0025] The texture distribution is processed independently according to the characteristics of each functional area;

[0026] Generate preliminary texture files.

[0027] Furthermore, the step of optimizing the basic texture includes:

[0028] Analyze the optimized cabin structure and functional requirements, and adjust the distribution of textures;

[0029] Apply adaptation algorithms to optimize texture edge alignment and transition processing;

[0030] Adjust the color and material properties of the texture to generate an optimized texture.

[0031] Furthermore, the step of generating the optimized texture includes:

[0032] Adjust the size, orientation and distribution pattern of textures;

[0033] Optimizing texture properties to match regional functional requirements, including durability, water repellency, and stain resistance;

[0034] Output optimized texture file.

[0035] Furthermore, the step of applying the optimized texture to the 3D ship design model includes:

[0036] Load optimized texture files into 3D ship design models;

[0037] Adjust the texture mapping position and direction according to the coordinates and surface characteristics of the cabin functional area;

[0038] Through UV mapping technology, the texture is projected onto the surface of the 3D ship design model.

[0039] Furthermore, the step of performing real-time rendering based on optimized texture includes:

[0040] Use 3D graphics rendering engine to render textures in real time;

[0041] Adjust rendering parameters including lighting, reflectivity, and color contrast;

[0042] Shows how the texture effect actually appears on the model.

[0043] Furthermore, the step of adjusting the texture design according to the rendering effect and user feedback includes:

[0044] Get feedback from designers on texture effects, including texture detail, glossiness, and color performance;

[0045] Analyze feedback information to identify texture properties that need to be adjusted;

[0046] Generates the adjusted texture parameter file to provide input for the texture generation module.

[0047] Furthermore, the step of feeding back the adjusted texture parameters to the texture generation and optimization module includes:

[0048] The adjusted texture parameters and the corresponding 3D ship design model are transferred to the image diffusion model to regenerate the texture;

[0049] Further adjust the distribution and details of textures in the Optimize module;

[0050] Repeat the feedback adjustment process until the texture effect meets the design requirements.

[0051] The key innovative features of the present invention include:

[0052] (1) Texture generation and optimization based on image diffusion model. Using the image diffusion model, high-quality textures are generated from material property information based on the 3D ship design model, realizing an intelligent process from functional requirements to texture generation, avoiding artificial deviations in traditional design.

[0053] (2) Automated generation of preliminary design parameters. By analyzing the design drawings of the ship’s living quarters, preliminary design parameters are automatically generated and material property information is extracted, providing high-quality input data for texture generation and improving the level of design automation.

[0054] (3) Texture distribution and detail optimization technology. During the optimization process, the distribution and details of the texture are adjusted in combination with the cabin structure and functional requirements. The adaptation algorithm ensures that the texture is accurately matched with the cabin design, thereby improving the fineness and realism of the texture effect.

[0055] The following are its main beneficial effects:

[0056] (1) Improve texture design efficiency. The present invention automatically generates preliminary design parameters that match the texture by analyzing the ship living cabin design drawing, 3D ship design model and its corresponding functional requirements, and generates basic textures using an image diffusion model. Compared with the traditional method that relies on manual drawing, the design time is significantly reduced and automated and efficient texture generation is achieved.

[0057] (2) Enhanced texture matching accuracy. In the process of generating and optimizing textures, the distribution of textures is optimized and adjusted in detail based on the geometric structure and functional requirements of the cabin to ensure that the distribution of textures meets the actual functions and design requirements of the cabin. For example, moisture-proof textures are used in the kitchen area and soft wood grains are used in the rest area, which improves the accuracy of texture design.

[0058] (3) Improved texture rendering effects. By applying optimized textures to 3D ship design models and combining them with real-time rendering techniques (such as adjusting lighting and material reflectivity), the present invention can achieve high-quality texture visualization, improving the realism and intuitiveness of the design effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A flowchart of a method for automatically designing and rapidly rendering and generating textures for a ship's living compartment through an image diffusion model is provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0061] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0062] Example 1: Reference Figure 1 , is a flow chart of a method for automatically designing and quickly rendering and generating textures for a ship living cabin through an image diffusion model provided by an embodiment of the present invention. The process may at least include steps S100-S500:

[0063] S100, based on the ship living cabin design drawing and functional requirements, analyzing cabin functional areas and material requirements, and generating preliminary design parameters matching the texture;

[0064] S200, acquiring cabin material characteristic information and a 3D ship design model from the preliminary design parameters, generating a basic texture based on an image diffusion model, and performing preliminary material texture preprocessing;

[0065] S300, optimizing the basic texture, adjusting the distribution and details of the texture based on the cabin structure and functional requirements, and generating an optimized texture;

[0066] S400, applying the optimized texture to the 3D ship design model, performing real-time rendering based on the optimized texture, displaying the rendering effect and performing visual display;

[0067] S500: Adjust the texture design according to the rendering effect and user feedback, and feed back the modification opinions to the texture generation and optimization module.

[0068] Step S100 at least includes steps S110-S130:

[0069] S110, obtaining a design drawing and functional requirements of a ship's living cabin, and extracting cabin structure and functional area information from the design drawing.

[0070] Specifically, the design drawings and functional requirements of the ship's living cabin are obtained from the input end. The design drawings provide the overall structural information of the cabin, including the functional area layout, shape characteristics and size of the cabin. The functional requirements cover the actual use requirements of the regional functions, such as the rest area needs to be comfortable, the kitchen area needs to be heat-resistant, and the bathroom area needs to be moisture-resistant. The operation process is as follows:

[0071] First, the input end receives a ship design data file, which is formatted to contain the geometric information and functional division information of the cabin, such as the name of the functional area (resting area, kitchen area, bathroom area, etc.), coordinate range, area and shape type.

[0072] Furthermore, the cabin functional area information and the attribute information, size information, function information, etc. of the objects in the area are extracted from the design drawings and the 3D ship design model.

[0073] Furthermore, the design requirements of each area are parsed from the functional requirement description, such as the material requirements of the rest area (wood or fabric), the heat resistance requirements of the kitchen area, the moisture resistance requirements of the bathroom area, etc., and these requirements are used as text input for the subsequent image diffusion model.

[0074] S120, identifying required texture characteristics based on the demand analysis of the functional area of ​​the ship's living cabin.

[0075] Based on the cabin functional area information extracted by S110, the texture requirements of each area are analyzed and identified. By analyzing the function and material requirements of the area, the specific parameters of the texture characteristics, such as color, glossiness, roughness, etc., are determined. The operation process is as follows:

[0076] According to the functional description of the rest area, kitchen area, and bathroom area, combined with their material requirements, identify their corresponding texture characteristics. For example:

[0077] For a seating area, identify the wood or fabric texture it might need and analyze the desired tonal warmth and sheen.

[0078] For the kitchen area, identify metal or heat-resistant surface textures and analyze roughness and reflectivity.

[0079] For bathroom areas, identify moisture-resistant glass or tile textures and analyze their texture details and surface reflective properties.

[0080] Furthermore, the core parameters of the required texture, such as material hardness, durability, reflectivity, and texture direction, are extracted to form a list of characteristics.

[0081] Furthermore, the texture requirement data analyzed above is matched with the regional characteristics to form a texture attribute table. This table contains the texture type (such as wood, metal, glass), material details and design requirement characteristics of each region.

[0082] S130. Generate preliminary design parameters that match the cabin functional areas.

[0083] Based on the texture characteristics identified by S120, preliminary texture design parameters are generated to ensure that they match the specific requirements of the functional area. The operation process is as follows:

[0084] First, based on the functional requirements, generate preliminary design parameters for each area, such as:

[0085] Seating area: Wood texture, warm tones, low gloss.

[0086] Kitchen area: Metal texture, neutral tones, medium roughness.

[0087] Canteen area: Metal texture, blue and white tone, white is highly reflective.

[0088] Bathroom area: glass or tile texture, white with high reflectivity.

[0089] Furthermore, the generated texture design parameters are matched one by one with the specific requirements of each functional area to ensure the consistency of texture characteristics and functional requirements.

[0090] Furthermore, the preliminary design parameters are integrated into a standardized input file, including area division, material type, texture characteristic parameters, etc., to provide basic data for the subsequent S200 texture generation module.

[0091] Description of the connection:

[0092] The basic data of the cabin functional area (including geometry, location and requirements) output by S110 is the core basis for S120 to analyze texture requirements, ensuring that the texture is consistent with the characteristics of the functional area.

[0093] The texture characteristic data extracted in S120 directly provides a design basis for S130, ensuring that the generation of texture parameters matches actual needs.

[0094] The preliminary design parameter file generated by S130 is directly used as the input of the subsequent S200 module and runs through the entire texture generation and optimization process.

[0095] Step S200 at least includes steps S210-S230:

[0096] S210, obtaining preliminary design parameters, material property information and a 3D ship design model.

[0097] First, the preliminary design parameters generated by S100 are obtained. Regional characteristics related to materials are extracted from the preliminary design parameters output by S100, including functional area division information and demand data corresponding to materials. The preliminary design parameters are composed of the geometric structure, functional requirements and material requirements of each functional area.

[0098] Specifically, the parameters extracted from functional areas (such as rest area, kitchen area, canteen area, and bathroom area) include size, layout, location coordinates, and descriptive data of material requirements (such as wood texture, metallic gloss, and cloth roughness).

[0099] At the same time, the boundary information of each functional area is collected for subsequent texture generation and mapping.

[0100] Furthermore, the material characteristics details are extracted. Based on the material requirements of the functional area, the key characteristics of the material are further extracted from the preliminary design parameters, including:

[0101] Texture characteristics: The texture type of each material (such as wood texture, metal surface texture, cloth texture, etc.).

[0102] Texture distribution mode: how the material is distributed in the functional area, including texture direction, coverage, etc.

[0103] Physical property information: such as texture resolution, roughness, glossiness, color difference, etc. This information directly affects the fineness of subsequent texture generation.

[0104] Furthermore, the material property data is formatted. The extracted material property data is structured to generate a standardized material property information data table for input into the texture generation module (S220).

[0105] S220: Based on the material property information and in combination with the 3D ship design model, a preliminary texture is generated through an image diffusion model.

[0106] First, input material property information and 3D ship design model into the image diffusion model, input material property information extracted from S210 into the image diffusion model, and start the texture generation process. Input data includes:

[0107] Material characteristic parameters: such as glossiness, roughness, tone distribution, texture direction, etc.

[0108] Functional region geometry information: the size, layout, and boundary coordinates of each region, which is used to determine the scope of texture generation.

[0109] The image diffusion model generates a preliminary texture. After receiving the 3D ship design model and material property information, the image diffusion model performs the following processing:

[0110] Based on the input 3D ship design model, the corresponding depth map is generated to understand the depth and position information of the object.

[0111] Based on the input material characteristic parameters, a preliminary texture image is generated. The texture image has a surface effect that matches the material characteristics, such as the grain details of wood texture, the light reflection effect of metal surface, etc.

[0112] Adjust the distribution pattern of the texture to make it consistent with the geometric layout in the functional area. For example, generate a smoothly distributed metal texture in the kitchen area and an evenly distributed tile texture in the bathroom area.

[0113] Furthermore, the diffusion model parameters are adjusted according to the material characteristics. During the texture generation process, the relevant parameters of the image diffusion model are dynamically adjusted according to the material characteristic information, for example:

[0114] Adjusts texture brightness and reflections based on glossiness.

[0115] The arrangement rules of the generated texture are adjusted according to the texture direction to make it consistent with the directional requirements of the functional area.

[0116] Adjust the overall color matching of the texture based on the tint parameter to ensure visual consistency.

[0117] Furthermore, the preliminary texture data is outputted, and the generated preliminary texture is outputted in a standardized format, including a texture image file and its corresponding material description information, as an input of a subsequent pre-processing module (S230).

[0118] S230, pre-processing the preliminary texture to adjust it to meet material requirements.

[0119] First, adjust the optical properties of the generated preliminary texture. According to the material property data, perform optical property preprocessing on the preliminary generated texture:

[0120] Adjust the glossiness of a texture to match the reflectivity needs of a specific material, such as high-gloss metal or low-gloss wood.

[0121] Adjust the color saturation and brightness of a texture to enhance visual impact or match your design needs.

[0122] Furthermore, the detail level of the texture is processed and the details of the generated texture are optimized to ensure the fineness of the texture in visual effects. For example:

[0123] Enhances the depth of wood grain to make it more realistic.

[0124] Increase the subtle granularity of the fabric texture and enhance the tactile performance of the material.

[0125] Smooths the surface of metal textures to reduce unwanted noise or artifacts.

[0126] Furthermore, regional textures are processed independently. The generated textures are processed independently according to the material requirements of different functional areas. :

[0127] Output the preprocessed texture file and output the processed texture file to a standardized data format for use by subsequent optimization modules. The output content includes:

[0128] Texture image files for each feature area.

[0129] Description of the optical and physical properties of textures.

[0130] Texture and material mapping data table.

[0131] Note on the connection between the past and the present: The material property information of S210 is the core input data for S220 to generate preliminary textures, ensuring that the generated textures are consistent with design requirements.

[0132] The preliminary texture data generated by S220 is directly used as the input of S230 preprocessing, and the preprocessing stage further optimizes the texture details and optical properties.

[0133] The pre-processed texture files output by S230 provide high-quality basic data for subsequent optimization modules, running through the entire texture generation chain.

[0134] Step S300 at least includes steps S310-S330:

[0135] S310, obtaining the basic texture and analyzing the cabin structure and functional requirements.

[0136] First, obtain a basic texture file. Obtain data related to the cabin functional area from the basic texture file output in S200. The basic texture file includes:

[0137] Preliminary texture image data for each functional area.

[0138] Material property description file, including parameters such as glossiness, roughness, texture direction, etc.

[0139] Boundary definition and spatial layout information of functional areas.

[0140] Analyze cabin structure and functional requirements

[0141] According to the functional area data extracted in S100 and S200, the spatial structure information such as the geometric shape, size, position, etc. of each area is analyzed. Specifically:

[0142] Identify the special geometric features of functional areas, such as the plan structure of the lounge area, the vertical distribution of the kitchen area, and the closed shape of the bathroom area.

[0143] Extract functional requirements, such as fire resistance, waterproofness, and anti-pollution properties, to guide subsequent texture optimization processing.

[0144] Further, identify the texture detail requirements of the functional areas. For each functional area, identify the specific texture adjustment requirements:

[0145] Determines whether the texture needs to be stretched or compressed to fit the area, such as compressing it in a small area and expanding it in an open area.

[0146] Adjust the directionality of the texture according to the spatial layout, for example, the grain lines of the wood grain need to be consistent with the laying direction of the floor.

[0147] Extract the corresponding functional requirement data for special functional areas (such as firewalls and waterproof floors) to ensure that the texture details meet the functional requirements.

[0148] S320. Adjust and optimize basic textures based on cabin structure and functional requirements.

[0149] First, adjust the size, shape and color of the texture locally. According to the functional area data analyzed by S310, make the following local adjustments to the base texture:

[0150] Modify the texture size to match the area dimensions. For example, resize the metal texture in the kitchen area to the appropriate size for the actual wall.

[0151] Adjust the texture shape to fit the spatial layout, such as generating adaptive curved textures on complex curved areas.

[0152] Optimize the texture color to make it consistent with the design requirements, such as adjusting the tone of the wood texture in the rest area to warm colors.

[0153] Furthermore, an adaptation algorithm is applied to optimize the distribution of textures. The adaptation algorithm is used to optimize the distribution of textures in functional areas so that the textures are seamlessly integrated with the cabin design:

[0154] Automatically matches texture edges to ensure smooth transitions between textures without visible seams or discontinuities.

[0155] Address issues where textures meet, such as smoothing out metal textures at the corners of kitchen areas or adjusting texture seams where floors meet walls.

[0156] Furthermore, the texture structure is fine-tuned to further optimize the texture structure according to the special needs of different functional areas:

[0157] In the kitchen area, the texture's wear resistance is enhanced and its roughness is adjusted to improve durability.

[0158] In the tile texture of the bathroom area, its water-repellent properties are enhanced and the glossiness is optimized to avoid excessive reflectivity.

[0159] Adjust the clarity of the grain lines in the wood texture of the seating area to enhance the natural feel of the texture.

[0160] S330, generating an optimized texture and outputting it to a subsequent module.

[0161] First, a final optimized texture file is generated. According to the optimization result of S320, a final optimized texture file is generated for each functional area.

[0162] The optimized texture file contains texture image data and its corresponding region matching information, ensuring that the texture characteristics of each region are consistent with functional requirements.

[0163] The textures of all functional areas are integrated as a whole to form a complete cabin texture distribution map.

[0164] Furthermore, the integrity and consistency of the texture file are verified. The generated texture file is checked for consistency to ensure that the texture characteristics meet the following requirements:

[0165] The texture characteristics of the functional area are consistent with the material requirements. For example, the texture of the waterproof area has a higher waterproof performance.

[0166] The texture distribution of each functional area is seamlessly connected to avoid texture misalignment or overlapping problems.

[0167] Furthermore, the optimized texture file is output to a subsequent module. The optimized texture file is output to a rendering module (S400) for subsequent real-time rendering and display. The output file includes:

[0168] Texture image for each functional area and its corresponding material description data.

[0169] Data table showing the mapping relationship between functional areas and texture distribution.

[0170] Visual inspection reports to support rapid verification by the design team.

[0171] Note on the connection between the previous and the next: The cabin structure and functional requirement data analyzed in S310 are the key basis for the texture adjustment in S320, ensuring that the directionality and detail optimization of the texture adjustment meet actual needs.

[0172] The texture structure optimized in S320 is directly input to S330 to generate the final optimized texture file, providing high-quality texture output results.

[0173] The texture file output by S330 is the input basis of the S400 rendering module, providing support for subsequent visualization and design verification.

[0174] Step S400 at least includes steps S410-S430:

[0175] S410, obtaining the optimized texture and loading it into the 3D ship design model.

[0176] First, obtain the optimized texture file. Obtain data related to each cabin functional area from the optimized texture file output by S300. The texture file includes:

[0177] The optimized texture image file has clear partitions and corresponds to the functional requirements of the cabin.

[0178] The material description data of each texture, including glossiness, roughness, color information, etc.

[0179] The boundary and texture distribution mapping information of the functional area is used to accurately match the spatial structure of the 3D model.

[0180] Furthermore, the optimized texture is loaded into the 3D design model. The texture file obtained above is loaded into the 3D ship design model, and the texture and model are aligned. The specific steps include:

[0181] Load the 3D model of the ship's living cabin and extract its geometric feature information, including the coordinates, surface shape and boundary information of each functional area.

[0182] According to the texture mapping data, the texture is aligned with the surface coordinates of the functional area to ensure that the texture covers the surface of the area accurately.

[0183] Apply texture mapping technology (such as UV mapping) to project the texture image onto the surface of the 3D model to generate a preliminary texture coverage effect.

[0184] Furthermore, check the consistency of texture loading. Verify whether the texture loading result in the 3D model conforms to the optimized texture characteristics:

[0185] Make sure the texture is aligned with the borders of the functional area without misalignment or insufficient coverage.

[0186] Make sure the grain direction matches your design requirements, for example, the grain lines of wood grain match the direction the floor will be laid.

[0187] S420, performing real-time rendering based on optimized textures and 3D models.

[0188] First, the real-time rendering environment is initialized. The rendering environment is initialized using 3D graphics rendering technology (such as BlueDrender, OpenGL, etc.), and the 3D model of the ship's living cabin and its corresponding texture data are loaded.

[0189] Set rendering parameters, including light source position, light intensity, viewing angle, etc.

[0190] Make sure the rendering environment and the optical properties of the texture file are consistent, for example, the reflection of light sources matches the glossiness of the texture.

[0191] Furthermore, the texture effect is rendered in real time. The texture of each functional area is rendered in real time, including:

[0192] When rendering wood textures, highlight their grain lines and warm tonal effects to enhance visual comfort.

[0193] When rendering metal textures, adjust the glossiness and reflection effects to make it appear metallic.

[0194] When rendering tile textures, adjust their smoothness and color saturation to match the functional needs of the bathroom area.

[0195] Furthermore, the rendering parameters are adjusted dynamically. According to the needs of different functional areas, the rendering parameters are adjusted in real time:

[0196] The metal texture in the kitchen area is designed to enhance its reflective intensity to reflect the modern feel of the material.

[0197] The wood texture in the rest area reduces its reflective effect to increase the sense of warmth.

[0198] For the tile texture in the bathroom area, balance its smoothness and anti-slip effect to ensure the unity of vision and function.

[0199] Furthermore, optimize the overall rendering effect and adjust the global rendering parameters to ensure that the texture effect of the entire model is natural and coordinated without any abruptness or mismatch.

[0200] Apply global illumination algorithms (such as PBR, physically based rendering) to simulate real light and shadow effects.

[0201] Adjust color contrast and saturation to optimize the visual quality of your textures.

[0202] S430, display the rendering effect and perform visual adjustment.

[0203] First, show the real-time rendering effect. Show the real-time rendering effect in the design interface, including:

[0204] Displays the texture overlay effect of the overall 3D model of the ship's living quarters.

[0205] Supports viewing rendering results from multiple angles, including top view, side view and partial magnified view.

[0206] Furthermore, designers are allowed to make visual adjustments. Interactive adjustment tools are provided to allow designers to fine-tune the rendering effects in real time in the interface:

[0207] Adjust texture details, such as the line definition of wood textures, the reflectivity of metal textures, and more.

[0208] Modify the color matching of textures to suit the visual needs of different functional areas.

[0209] Correct the texture's mapping position and orientation to ensure that the texture fits the geometry of the functional area exactly.

[0210] Optimize texture effects based on feedback

[0211] Collect the designer's feedback on the rendering effect and feed back the modification suggestions to the texture optimization module (S300):

[0212] To address deficiencies in rendering (such as unclear texture details), adjust the texture's level of detail and material properties.

[0213] In response to changes in functional requirements (such as adding waterproof performance to a certain area), re-optimize texture parameters and update rendering effects.

[0214] Furthermore, the final rendering result is output. After the adjustment is completed, the final rendering file is generated and saved, including:

[0215] Complete 3D ship design model and its texture data.

[0216] Renderings are used for project presentation and subsequent verification.

[0217] Note on the connection between the past and the present: The optimized texture files provided by S410 are the basis for real-time rendering of S420, ensuring that the textures can be accurately loaded into the 3D model and match the functional requirements.

[0218] The texture effects rendered by S420 are directly input into the visualization display module in S430, supporting designers to make further adjustments and optimizations.

[0219] The feedback mechanism in S430 transmits the adjustment suggestions back to the texture optimization module (S300), forming a closed-loop design process to ensure continuous optimization of the texture effect.

[0220] Step S500 at least includes S510-S530:

[0221] S510: Obtain user feedback and analyze rendering effect.

[0222] First, obtain user feedback information. After completing the real-time rendering and visual display of S400, obtain the designer's feedback information on the texture effect. The feedback information includes:

[0223] Color expression: whether the color of the texture meets the design requirements of the functional area, such as whether warm colors are soft enough or whether neutral colors are bright enough.

[0224] Gloss and roughness: Whether the optical properties of the texture meet the design requirements, for example, whether the glossiness of the wood surface is too high, or whether the roughness of the metal surface needs to be adjusted.

[0225] Detail integrity: Is the texture clear enough? Does it need to enhance the texture's layering and detail?

[0226] Furthermore, collect the differences between rendering effects and requirements. Compare user feedback with the current rendering effects and analyze the shortcomings of texture effects. Specifically include:

[0227] Evaluate how well color saturation matches the functional needs of the area, identifying if adjustments to hue or brightness are needed.

[0228] Identifies issues with insufficient texture detail, such as uneven texture distribution or lack of line definition.

[0229] Determine deviations in optical effects, such as whether reflectivity needs to be adjusted to better match material requirements.

[0230] Further, mark the texture features that need to be optimized. Based on the feedback and difference analysis, mark the texture features that need further adjustment. For example:

[0231] The reflection intensity of the metal texture in the kitchen area does not meet the requirements, and its glossiness parameters need to be optimized.

[0232] The details of the tile texture in the bathroom area are not clear enough, and its resolution and detail level need to be enhanced.

[0233] S520. Adjust texture design based on user feedback.

[0234] First, adjust the texture details. According to the texture characteristics marked in S510, adjust the specific details of the texture to ensure that it meets the designer's needs. The specific adjustments include:

[0235] Modify color properties: Adjust hue, brightness, and saturation to suit the functional needs of the area. For example, adjust the wood texture in the seating area to a softer warm tone.

[0236] Optimize optical properties: recalculate glossiness and roughness parameters. For example, reduce the reflection intensity of the metal texture in the kitchen area to reduce glare effects.

[0237] Enhanced texture details: In response to the feedback about insufficient details, the resolution and line clarity of textures are increased to make them more realistic.

[0238] Furthermore, the texture attributes are recalculated. The adjusted attributes are recalculated using a texture generation algorithm to generate new texture parameter data. These parameters include:

[0239] Texture distribution information is used to ensure that the texture is consistent with the spatial structure of the functional area.

[0240] Texture optical parameters to adjust key properties such as reflectivity and refractive index.

[0241] Texture level-of-detail data, used to enhance the realism of textures.

[0242] Furthermore, an improved texture parameter file is generated. The adjusted texture design parameters are formatted and a new texture parameter file is generated, ensuring that the file content includes all updated data to provide input for the next step of optimization.

[0243] S530, feeding back the modified texture parameters to the texture generation and optimization module to form a closed-loop design.

[0244] First, the adjusted texture parameters are transferred. The improved texture parameter file generated in S520 is fed back to the texture generation module (S200) and the texture optimization module (S300). The specific transfer content includes:

[0245] Updated texture parameters for functional areas such as color, size, glossiness, roughness, etc.

[0246] The optimized distribution rules and mapping information ensure that the texture can accurately match the regional requirements in the next round of design.

[0247] Furthermore, a closed-loop optimization design process is initiated. In S200, the basic texture is regenerated based on the new texture parameters, and then the texture is further optimized in S300:

[0248] During the texture generation process, the parameter settings of the diffusion model are adjusted according to the new parameters to generate a basic texture that meets the feedback requirements.

[0249] During the texture optimization process, the distribution and details of the texture are adjusted to make it more in line with actual needs.

[0250] Furthermore, verify the closed-loop optimization results. After the optimization is completed, apply the updated texture to the 3D model again and perform real-time rendering to verify whether the optimization results solve the problems reported by users:

[0251] Verify that color attributes are as desired, such as whether the wood texture in a seating area has been adjusted to the warm tone the designer intended.

[0252] Verify that the optical effects are as desired, for example, that the glossiness of metallic textures has been reduced to an acceptable level.

[0253] Verify that details are clearly represented, such as whether the resolution of tile textures has been increased.

[0254] Further, the feedback loop is repeated. If there are still deficiencies in the optimization results, continue to obtain user feedback and update the texture parameters until the designer is satisfied with the texture effect and completes the final rendering.

[0255] Contextual explanation: The user feedback analysis results of S510 directly guide the texture adjustment operation of S520, ensuring that the adjustment content is accurately targeted at the issues raised by users.

[0256] The improved texture parameters generated by S520 are the core content of the closed-loop feedback of S530, ensuring that the new parameters can drive further adjustments of the texture generation and optimization modules.

[0257] S530 transmits the feedback parameters to S200 and S300 to form a complete closed-loop design process, and ensures that the optimization effect meets the design requirements through final verification.

[0258] The key innovative features of the present invention include:

[0259] (1) Texture generation and optimization based on image diffusion model. The image diffusion model is used to generate high-quality textures from the 3D ship design model and the corresponding material property information of the object, realizing the intelligent process from functional requirements to texture generation and avoiding the artificial deviation in traditional design.

[0260] (2) Automated generation of preliminary design parameters. By analyzing the design drawings of the ship’s living quarters, preliminary design parameters are automatically generated and material property information is extracted, providing high-quality input data for texture generation and improving the level of design automation.

[0261] (3) Texture distribution and detail optimization technology. During the optimization process, the distribution and details of the texture are adjusted in combination with the cabin structure and functional requirements. The adaptation algorithm ensures that the texture is accurately matched with the cabin design, thereby improving the fineness and realism of the texture effect.

[0262] The following are its main beneficial effects:

[0263] (1) Improve texture design efficiency. The present invention automatically generates preliminary design parameters that match the texture by analyzing the ship's living cabin design drawings and functional requirements, and generates basic textures using an image diffusion model. Compared with traditional methods that rely on manual drawing, the design time is significantly reduced, and automated and efficient texture generation is achieved.

[0264] (2) Enhanced texture matching accuracy. In the process of generating and optimizing textures, the distribution of textures is optimized and adjusted in detail based on the geometric structure and functional requirements of the cabin to ensure that the distribution of textures meets the actual functions and design requirements of the cabin. For example, moisture-proof textures are used in the kitchen area and soft wood grains are used in the rest area, which improves the accuracy of texture design.

[0265] (3) Improved texture rendering effects. By applying optimized textures to 3D ship design models and combining them with real-time rendering techniques (such as adjusting lighting and material reflectivity), the present invention can achieve high-quality texture visualization, improving the realism and intuitiveness of the design effects.

[0266] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A method for automatically designing and quickly rendering and generating textures for a ship's living cabin through an image diffusion model, characterized in that: The following steps are involved: Based on the ship's living cabin design and functional requirements, analyze the cabin's functional areas and material requirements, and generate preliminary design parameters that match the texture; Acquire cabin material property information and a 3D ship design model from the preliminary design parameters, generate basic textures based on an image diffusion model, and perform preliminary material texture preprocessing; Optimizing the basic texture, adjusting the distribution and details of the texture based on the cabin structure and functional requirements, and generating an optimized texture; Applying the optimized texture to a 3D ship design model, performing real-time rendering based on the optimized texture, displaying the rendering effect and performing visual display; According to the rendering effect and user feedback, the texture design is adjusted, and the modification opinions are fed back to the texture generation and optimization module.

2. The method according to claim 1, characterized in that The step of generating preliminary design parameters matching the texture comprises: Obtain the design drawings of the ship's living quarters, including the cabin structure distribution, location of functional areas and material requirements; Analyzing the geometric characteristics of each functional area in the design drawing, including size, shape and layout; Generate preliminary texture design parameters, including texture type, material mapping, and color properties.

3. The method according to claim 1, characterized in that The step of generating a basic texture based on an image diffusion model comprises: Extract material property information from preliminary design parameters, including texture resolution, roughness, and glossiness; Inputting the material property information and the 3D ship design model into an image diffusion model to generate a preliminary texture; Format the generated base texture.

4. The method according to claim 3, characterized in that The step of pre-processing the generated basic texture comprises: Adjust the texture's level of detail, including glossiness, texture clarity, and color saturation; The texture distribution is processed independently according to the characteristics of each functional area; Generate preliminary texture files.

5. The method according to claim 1, characterized in that The step of optimizing the basic texture comprises: Analyze the optimized cabin structure and functional requirements, and adjust the distribution of textures; Apply adaptation algorithms to optimize texture edge alignment and transition processing; Adjust the color and material properties of the texture to generate an optimized texture.

6. The method according to claim 5, characterized in that The step of generating the optimized texture comprises: Adjust the size, orientation and distribution pattern of textures; Optimizing texture properties to match regional functional requirements, including durability, water repellency, and stain resistance; Output optimized texture file.

7. The method according to claim 1, characterized in that The step of applying the optimized texture to the 3D ship design model comprises: Load optimized texture files into 3D ship design models; Adjust the texture mapping position and direction according to the coordinates and surface characteristics of the cabin functional area; Through UV mapping technology, the texture is projected onto the surface of the 3D model.

8. The method according to claim 7, characterized in that The step of performing real-time rendering based on optimized texture includes: Use a graphics rendering engine to render textures in real time; Adjust rendering parameters including lighting, reflectivity, and color contrast; Shows how the texture effect actually appears on the model.

9. The method according to claim 1, characterized in that: The step of adjusting the texture design according to the rendering effect and user feedback includes: Get feedback from designers on texture effects, including texture detail, glossiness, and color performance; Analyze feedback information to identify texture properties that need to be adjusted; Generates the adjusted texture parameter file to provide input for the texture generation module.

10. The method according to claim 9, characterized in that The step of feeding back the adjusted texture parameters to the texture generation and optimization module comprises: The adjusted texture parameters and the corresponding 3D model are transferred to the image diffusion model to regenerate the texture; Further adjust the distribution and details of textures in the Optimize module; Repeat the feedback adjustment process until the texture effect meets the design requirements.