A real-time neural fabric rendering method and system based on structure and shading decoupling
By constructing a neural texture pyramid with fiber-level geometric trajectory and scale decoupling, and a semi-vector dual-plane decoupled optical path, combined with a dual-branch shared decoder, the computational bottleneck and topological limitations of fabric rendering in existing technologies are solved, achieving efficient, real-time, multi-scale high-fidelity rendering and material parameter editing.
Patent Information
- Application Number
- CN202611482491.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-22
- Publication Date
- 2026-11-27
AI Technical Summary
Existing high-fidelity fabric rendering methods struggle to balance visual realism and computational performance, especially when dealing with multi-scale aggregation, where computational bottlenecks are severe, and they cannot handle complex topological structures and lack real-time material parameter editing capabilities.
By constructing fiber-level geometric trajectories to generate prior data, a scale-decoupled neural texture pyramid and a half-vector dual-plane are used for optical path decoupling. Combined with a dual-branch shared decoder for rendering, spatial features and shading logic are decoupled, and real-time parameter editing is supported.
It achieves efficient real-time rendering, breaks through topology limitations, has excellent generalization ability and multi-scale rendering fidelity, and supports fiber-level detail reconstruction and real-time interactive editing of material parameters.
Smart Images

Figure CN123181683A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer graphics and neural rendering technology, specifically to a real-time neural fabric rendering method and system based on structure and shading decoupling. Background Technology
[0002] High-fidelity cloth rendering is crucial for immersive multimedia applications, but it is inherently a challenging multi-scale problem because it requires bridging the vast difference between microscopic fiber scattering and macroscopic surface appearance. Existing physically based rendering methods often struggle to strike a balance between visual realism and computational performance. For example, while curve-based models pursue ultimate physical fidelity, they heavily rely on expensive Monte Carlo integration calculations, failing to meet the demands of real-time applications.
[0003] To improve performance, surface-based rendering methods abstract fabrics into two-dimensional sheets and use bidirectional scattering distribution functions (BSDF) to describe their appearance. However, these surface models face a common computational bottleneck when dealing with multi-scale aggregation: the need for extremely expensive numerical integration calculations. Even state-of-the-art multi-scale surface rendering techniques heavily rely on time-consuming pre-computations and lack real-time editability of material parameters.
[0004] To overcome the computational bottlenecks of traditional physics-based methods, neural rendering offers a novel approach. Currently, the closest existing technologies to this invention mainly fall into two categories:
[0005] The first category is multi-resolution neural material representation methods, represented by NeuMIP. This method aims to learn and represent a continuous multi-scale bidirectional texture function (MBTF) to render materials with complex geometry and multi-scale details. For example... Figure 1 As shown, its network architecture mainly consists of three core modules connected in series: a neural offset module for handling parallax and occlusion effects of non-flat materials; a neural texture pyramid for encoding the appearance of materials with multi-scale spatial variations; and a material decoder for converting feature vectors into the final rendered colors. This method extracts features from the pyramid using spatial location and query kernel size, and combines this with angular information to output RGB values through the decoder.
[0006] The second category is a unified neural rendering method for woven fabrics that supports parameter editing. This approach utilizes the regularity of woven fabric patterns to design a lightweight encoder-decoder network. For example... Figure 2 As shown, its architecture includes: a material encoder, which receives the geometric texture pattern and appearance parameters of the fabric and compresses them into latent vectors; a spatial fusion module, which fuses the material features with the spatial query parameters; and an angle decoder, which parses the fused features into individual BSDF components and finally combines them into a complete rendering result.
[0007] However, in the field of high-fidelity multi-scale neural rendering of fabrics, the aforementioned existing technologies still have the following core drawbacks:
[0008] Lack of generalization and editability: Multi-resolution neural material representation methods, such as NeuMIP, require independent optimization and training for each specific fabric pattern and material, severely lacking generalization ability. Furthermore, because material properties are embedded in the network weights, this method cannot support real-time interactive editing of core material parameters such as roughness.
[0009] Strictly limited to woven fabrics, this approach cannot handle knitted fabrics and fiber-level details: While the latest real-time neural rendering schemes for woven fabrics support editable parameters, their network design and geometric representation are strictly bound to the relatively simple structure of woven fabrics (warp and weft interlacing). Due to the lack of complete decoupling between spatial structure and shading logic, this method is completely unable to handle knitted fabrics with topological structures composed of nested coils. Furthermore, this scheme treats scattering distribution as a whole and fails to physically and explicitly distinguish the complex transmission and reflection light paths within the fabric, resulting in the inability to reconstruct microfiber-level light path details, such as anisotropic transmission specular highlights under backlighting conditions.
[0010] Based on this, the present invention designs a real-time neural fabric rendering method and system based on structure and color decoupling to solve the above problems. Summary of the Invention
[0011] The purpose of this invention is to provide a real-time neural fabric rendering method and system based on structure and color decoupling, so as to solve the problems mentioned in the background art.
[0012] To achieve the above objectives, the present invention provides the following technical solution:
[0013] A real-time neural fabric rendering method based on structure and color decoupling includes the following steps:
[0014] S1. Construct fiber-level geometric trajectories and generate prior data.
[0015] The explicit fiber trajectory is recursively derived through a twist displacement strategy to generate a continuous geometry of the fabric. The geometric properties are baked into a two-dimensional texture, and the macroscopic bidirectional scattering distribution function (BSDF) is calculated to form a training dataset.
[0016] S2. Construct a scale-decoupled neural texture pyramid to extract spatial features.
[0017] A neural texture pyramid is assigned to each fabric pattern to store the material features of spatial variation, and trilinear interpolation sampling is performed in it based on the UV coordinates of the shading points and the size of the pixel coverage area to extract multi-channel spatial feature vectors.
[0018] S3. Construct a half-vector bi-plane for optical path decoupling and direction feature extraction.
[0019] The normalized half-vector is calculated, and the projection and sampling of the half-vector on two independent feature planes are performed to obtain the directional latent code, which is then concatenated with the ray difference vector to form a directional feature descriptor.
[0020] S4. Joint rendering via dual-branch shared decoder.
[0021] Deploy a shared decoder with two branches, input the required parameters into the two branches respectively, predict the high-frequency high-brightness signal and the low-frequency diffuse reflection coloring signal, and add them together to obtain the effective bidirectional scattering distribution function value;
[0022] S5, End-to-End Joint Optimization and Network Training
[0023] Differentiated learning rate configurations are applied to the decoder, neural texture pyramid, and semi-vector biplane. A composite loss function is designed to handle the dynamic range difference between specular and diffuse reflection, and regularization is performed on the neural texture features.
[0024] Furthermore, S1 includes:
[0025] S1-1, Explicit Fiber Trajectory Derivation
[0026] Based on a parametric geometric model, the explicit three-dimensional physical trajectory from macroscopic yarn to microscopic fiber is derived by recursively applying a twisting displacement strategy, as follows:
[0027] Define the yarn centerline path ,in To control the roundness of the coil, For depth, For depth and height;
[0028] Based on this, the stock line path is derived. , among which, among which Where is the yarn radius. The position of the stock line angle. For the normal and tangent of the local coordinate system of the yarn;
[0029] Finally, the fiber path was determined. ,in The radius of the line is . The fiber twist angle;
[0030] This recursive formula system can uniformly support and generate continuous geometries for both knitted and woven fabrics;
[0031] S1-2, Baking of Geometric Properties
[0032] Using orthogonal projection technology, the inherent geometric properties of the above mesh (including normals, tangents, spatial three-dimensional position and yarn ID) are baked into a high-fidelity two-dimensional texture map, unfolding the complex three-dimensional geometry into the two-dimensional signal domain;
[0033] S1-3, Training Data Generation and Macroscopic BSDF Calculation
[0034] The underlying light scattering is described using a local fiber-level surface shading model based on micro-thin sheets, in order to calculate the macroscopically effective BSDF (i.e., BSDF) within the pixel coverage area. ), pixel footprint in local tangent space Numerical integration and aggregation of the radiation response within:
[0035]
[0036] in, and These are the incident light and the observation direction, respectively. The visibility term is used to handle self-occlusion between yarns. For the normalized kernel function, The projected area of the microscopic surface. The area is the macroscopic geometric projection area;
[0037] By uniformly sampling this high-dimensional space, the true rendering result of the above integral is calculated and used as the benchmark dataset for subsequent neural network learning.
[0038] Furthermore, S2 specifically includes:
[0039] S2-1, Material-Specific Pyramid Allocation
[0040] Assign a separate, multi-resolution neural texture pyramid to each unique fabric topology pattern in the scene (such as a specific knitted or woven structure) to specifically store the material features of the spatial variations of that pattern;
[0041] S2-2, Spatial Feature Trilinear Interpolation Sampling
[0042] During the rendering query phase, the system receives the UV coordinates of the shading points and the size of the pixel coverage area. Using the UV coordinates of the shading points and the size of the pixel coverage area These two parameters are sampled using trilinear interpolation in the corresponding neural texture pyramid to extract multi-channel spatial feature vectors that reflect the local structure at that scale. .
[0043] Furthermore, S3 specifically includes:
[0044] S3-1, Semi-vector calculation
[0045] According to the direction of the incident light and launch direction Calculate the normalized half-vector ;
[0046] S3-2, Dual-plane projection and sampling
[0047] Two globally shared and learnable independent feature planes are established, namely the reflection plane and the transmission plane, and half-vectors are extracted. of and The components are sampled and projected onto these two feature planes, thereby physically distinguishing and decoupling the complex reflection and transmission optical paths, and extracting the latent directional encoding. ;
[0048] S3-3, Concatenation of Direction Descriptors
[0049] Extracted directional latent code Difference vector of light rays The features are then spliced together to form a complete high-frequency directional feature descriptor.
[0050] Furthermore, S4 specifically includes:
[0051] S4-1, Deploy a shared decoder
[0052] Design a lightweight dual-branch multilayer perceptron (MLP) network, including a specular network branch and a diffuse network branch. This decoder is globally shared for all different fabric materials. Its actual structure is a 4-layer SIREN network with sinusoidal activation functions.
[0053] S4-2, High-Frequency Highlight Reconstruction and Parameter Injection
[0054] Spatial features extracted from S2 S3 extracts directional features ( , ) and the real-time material roughness parameters input by the user. As network input, these signals are fed into the hyperbola branch to predict high-frequency hyperbola signals containing fiber anisotropic details. ;
[0055] S4-3, Low-frequency diffuse reflection reconstruction
[0056] Considering that diffuse reflection signals are relatively smooth, spatial features are directly used. Compared with the original incident direction , emission direction The input is fed into the diffuse reflection network branch to predict the low-frequency diffuse reflection coloring signal. ;
[0057] S4-4, Final Effective BSDF Synthesis
[0058] Add the outputs of the specular network branch and the diffuse network branch ( This yields the effective bidirectional scattering distribution function value required for the final rendering.
[0059] Furthermore, S5 specifically includes:
[0060] S5-1, Differentiated Learning Rate Configuration
[0061] To ensure training stability, a relatively low learning rate is applied to the globally shared MLP decoder. A higher learning rate is applied to material-specific neural pyramids and shared semi-vector biplanes. ;
[0062] S5-2. Calculation of Composite Loss Function
[0063] To handle the significant difference in dynamic range between specular and diffuse reflection, a composite loss function is designed:
[0064] For the specular term, a logarithmic mapping is applied to the reference signal before calculating the mean squared error (MSE). In order to balance the energy distribution of reflection and transmission, the reflected light path is set... Setting up the transmission optical path ;
[0065] For the diffuse reflection term, the standard mean square error loss is applied directly;
[0066] The total loss is obtained by adding the two losses together.
[0067] S5-3, Texture Regularization Processing
[0068] During training, the neural texture features are regularized by applying exponentially decaying Gaussian blur, and the initial blur kernel size (e.g., 8) and decay half-life (e.g., 3000 steps) are set to eliminate high-frequency noise and accelerate convergence.
[0069] This invention also provides a real-time neural fabric rendering system based on structure and shading decoupling, comprising:
[0070] The spatial feature extraction module is used to receive the UV coordinates of the colored points. and pixel coverage The data is then input into a pre-allocated multi-resolution neural texture pyramid for trilinear interpolation to extract local spatial feature vectors. ;
[0071] Directional feature decoupling module, used to receive the direction of incident light and the direction of emitted light Calculate the half vector Projection and sampling are performed on the reflection feature plane and the transmission feature plane to obtain the directional latent features. , and the difference vector of light Concatenate to form a direction descriptor;
[0072] A dual-branch shared decoder, comprising:
[0073] The specular branch is used to receive local spatial feature vectors. Direction descriptor ( , And roughness parameters, outputting high-frequency high-gloss signals;
[0074] The diffuse reflection network branch is used to receive local spatial feature vectors. Incident light direction and the direction of emitted light It outputs a low-frequency diffuse reflection signal;
[0075] The output synthesis module adds the high-frequency high-light signal obtained from the dual-branch shared decoder to the low-frequency diffuse reflection signal to obtain the final effective bidirectional scattering distribution function. .
[0076] Furthermore, the spectrophoton network branch adopts a 4-layer SIREN architecture (with the sine function as the activation function and no activation in the last layer), with each layer containing 32 hidden neurons.
[0077] Furthermore, the diffuse reflection network branch adopts a 4-layer SIREN architecture, with each layer containing 21 hidden neurons.
[0078] Compared with the prior art, the beneficial effects of the present invention are:
[0079] 1. Extremely high computational efficiency and real-time rendering performance: By sharing the shader decoder, the bottleneck of traditional high-dimensional numerical integration is eliminated, achieving efficient and real-time neural fabric rendering and meeting the requirements of low-latency interaction.
[0080] 2. Breaking through topological limitations, possessing excellent generalization ability and multi-scale rendering fidelity: By separating spatial features and shading logic through a scale decoupling architecture, it breaks through the limitation of traditional methods being limited to woven fabrics, and achieves high-quality rendering and improved versatility for complex topological structures such as knitted fabrics.
[0081] 3. Perfect support for real-time interactive parameter editing and fiber-level detail reconstruction: By directly inputting core parameters such as material roughness into the network, the model is successfully endowed with real-time parameter editing capabilities. At the same time, based on the semi-vector dual-plane feature, the system physically decouples the reflection and transmission light paths. Attached Figure Description
[0082] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0083] Figure 1 This is a schematic diagram of the network architecture of the existing multi-resolution neural material representation method (NeuMIP);
[0084] Figure 2 A schematic diagram of the network architecture of a unified neural rendering method for woven fabrics that supports parameter editing in the prior art;
[0085] Figure 3 A schematic diagram of the overall architecture and signal transmission of a real-time neural fabric rendering method based on structure and color decoupling provided in an embodiment of the present invention;
[0086] Figure 4 This is a comparison chart of real-time rendering effects and performance data in complex multi-material scenes according to an embodiment of the present invention;
[0087] Figure 5 These are rendering fidelity and visual comparison images of knitted and woven fabrics at different scales, representing embodiments of the present invention.
[0088] Figure 6 This is a rendering of the effect of real-time editing of material roughness parameters and close-up micro-fiber optical details in an embodiment of the present invention. Detailed Implementation
[0089] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0090] Please refer to the accompanying drawings. This invention provides a real-time neural fabric rendering method and system based on structure and color decoupling, which can realize multi-scale high-fidelity rendering of fabrics and real-time parameter editing.
[0091] I. Specific steps of the method
[0092] Step 1: Construct fiber-level geometric trajectories and generate prior data
[0093] 1.1 Derivation of Explicit Fiber Trajectory:
[0094] Based on a parametric geometric model, an explicit three-dimensional physical trajectory from macroscopic yarn to microscopic fiber is derived by recursively applying a torsion displacement strategy.
[0095] First, define the yarn centerline path as follows:
[0096]
[0097] in Controlling the roundness of the coil and Determine the depth and height.
[0098] Based on this, the stock line path is derived as follows:
[0099]
[0100] in, Where is the yarn radius. The position of the stock line angle. These are the normal and tangent lines in the local coordinate system of the yarn.
[0101] Finally, the fiber path was determined to be:
[0102]
[0103] in The radius of the line is . The fiber twist angle.
[0104] This recursive formula system can uniformly support and generate continuous geometries for both knitted and woven fabrics.
[0105] 1.2 Baking of Geometric Attributes:
[0106] Using orthogonal projection technology, the inherent geometric properties of the above mesh (including normals, tangents, spatial three-dimensional position and yarn ID) are baked into a high-fidelity two-dimensional texture map, unfolding the complex three-dimensional geometry into the two-dimensional signal domain.
[0107] 1.3 Training Data Generation and Macroscopic BSDF Calculation:
[0108] Using a local fiber-level surface coloring model based on micro-thin sheets To describe the light scattering at the bottom layer.
[0109] To calculate the macroscopically effective BSDF (i.e., within the pixel coverage area) ), pixel footprint in local tangent space Numerical integration and aggregation of the radiation response within:
[0110]
[0111] in, and These are the incident light and the observation direction, respectively. The visibility term is used to handle self-occlusion between yarns. For the normalized kernel function, The projected area of the microscopic surface. It represents the macroscopic geometric projected area.
[0112] By uniformly sampling this high-dimensional space, the true rendering result of the above integral is calculated and used as the benchmark dataset for subsequent neural network learning.
[0113] Step 2: Construct a scale-decoupled neural texture pyramid to extract spatial features.
[0114] 2.1 Material-Specific Pyramid Allocation:
[0115] Assign a separate, multi-resolution neural texture pyramid to each unique fabric topology pattern in the scene (such as a specific knitted or woven structure) to specifically store the material features of the spatial variations of that pattern.
[0116] 2.2 Spatial Feature Trilinear Interpolation Sampling:
[0117] During the rendering query phase, the system receives the UV coordinates $u$ of the shading point and the pixel coverage kernel size. Using these two parameters, trilinear interpolation sampling is performed in the corresponding neural texture pyramid to extract multi-channel spatial feature vectors that reflect the local structure at this scale. .
[0118] Step 3: Construct a half-vector bi-plane for optical path decoupling and orientation feature extraction.
[0119] 3.1 Semi-vector calculation:
[0120] According to the direction of the incident light and launch direction Calculate the normalized half-vector .
[0121] 3.2 Dual-plane projection and sampling:
[0122] Two globally shared and learnable independent feature planes are established: the "reflection plane" and the "transmission plane".
[0123] Extracting half vectors of and The components are sampled and projected onto these two feature planes, thereby physically distinguishing and decoupling the complex reflection and transmission optical paths, and extracting the latent directional encoding. .
[0124] 3.3 Concatenation of direction descriptors:
[0125] Extracted directional latent code Difference vector of light rays The features are then spliced together to form a complete high-frequency directional feature descriptor.
[0126] Step 4: Perform joint rendering using a dual-branch shared decoder.
[0127] 4.1 Deploy a shared decoder:
[0128] Design a lightweight dual-branch multilayer perceptron (MLP) network, including a "spectral network branch" and a "diffuse network branch"; the decoder is globally shared for all different fabric materials, and its actual structure is a 4-layer SIREN network with sinusoidal activation functions.
[0129] 4.2 High-frequency highlight reconstruction and parameter injection:
[0130] The spatial features extracted in step 2 Step 3 extracts directional features ( , ), and the real-time material roughness parameters input by the user. As network input, these signals are fed into the specular network branch to predict high-frequency specular signals containing details of fiber anisotropy. .
[0131] 4.3 Low-frequency diffuse reflection reconstruction:
[0132] Considering that diffuse reflection signals are relatively smooth, spatial features are directly used. Compared with the original incident direction , emission direction The input is fed into the diffuse reflection network branch to predict the low-frequency diffuse reflection coloring signal. .
[0133] 4.4 Final Effective BSDF Synthesis:
[0134] Add the outputs of the specular network branch and the diffuse network branch ( This yields the effective bidirectional scattering distribution function value required for the final rendering.
[0135] Step 5: End-to-end joint optimization and network training
[0136] 5.1 Differentiated learning rate configuration:
[0137] End-to-end joint optimization is performed on the entire rendering pipeline. To ensure training stability, a lower learning rate is applied to the globally shared MLP decoder. However, higher learning rates are applied to material-specific neural pyramids and shared semi-vector biplanes. .
[0138] 5.2 Calculation of Composite Loss Function:
[0139] To address the significant dynamic range difference between specular and diffuse reflection, a composite loss function is designed. For the specular term, a logarithmic mapping is applied to the reference signal before calculating the mean squared error (MSE). In order to balance the energy distribution of reflection and transmission, the reflected light path is set... Setting up the transmission optical path For the diffuse reflection term, the standard mean square error loss is applied directly; the two losses are added together to obtain the total loss.
[0140] 5.3 Texture regularization processing:
[0141] During training, the neural texture features are regularized by applying exponentially decaying Gaussian blur, and the initial blur kernel size (e.g., 8) and decay half-life (e.g., 3000 steps) are set to eliminate high-frequency noise and accelerate convergence.
[0142] II. System Composition
[0143] The overall network architecture of this invention achieves unified neural fabric rendering by decoupling spatial and directional features. The system receives a high-dimensional query, whose input signals include: UV coordinates of the shading point and pixel footprint size. Incident light direction , emission direction and material roughness parameters .
[0144] The core components of the system's specific architecture include a multi-scale neural texture pyramid, a semi-vector biplane (H Bi-plane), and a dual-branch shared decoder, such as... Figure 3As shown, the multi-scale neural texture pyramid is used to store the spatial variation features of a specific fabric pattern (compatible with knitted and woven fabrics), the semi-vector dual-plane is a representation module specifically for orientation decoupling, and the dual-branch shared decoder contains two parallel lightweight multilayer perceptrons (MLPs). The global sharing is used for all materials and is divided into a specular network and a diffuse network.
[0145] The network computation flow and static parameter configurations of each component of the system are as follows:
[0146] 1. Input processing and spatial feature extraction:
[0147] The rendering pipeline receives the UV coordinates of the shading points. and pixel coverage The system pre-assigns an independent multi-resolution neural texture pyramid for each fabric topology (such as knitted or woven), and extracts local spatial feature vectors by performing trilinear interpolation within the pyramid using input parameters. .
[0148] 2. Decoupling and extraction of directional features:
[0149] Obtain the direction of incident light and launch direction Calculate the normalized half-vector ;Will The x and y components are projected onto a globally shared dual-plane of "reflection" and "transmission" features for bilinear sampling, outputting the directional latent features. and compare it with the light difference vector The high-frequency direction descriptors are formed by splicing them together.
[0150] 3. Dual-branch shared decoder rendering (dynamic calculation process):
[0151] Spec Network: Employs a 4-layer SIREN architecture (using a sine function as the activation function, with no activation in the last layer), with each layer containing 32 hidden neurons. This branch dynamically receives... High-frequency direction descriptors and roughness parameters edited by the user in real time. Predicting high-frequency anisotropic high-light signals .
[0152] Diff Network: Also employs a 4-layer SIREN architecture, with each layer containing 21 hidden neurons. Due to the smoothness of diffuse signals, this branch only receives... , and Predicting the substrate color of low-frequency diffuse reflection and transmission. .
[0153] Output synthesis: The final effective two-way scattering distribution function is .
[0154] III. Specific Implementation Methods for Model Training and Data Generation
[0155] 1. Geometric Data Generation and Truth Calculation: Explicit fiber trajectories (including yarn and ply twist displacements) are recursively derived through parameterized curves, baking intrinsic geometric 2D feature maps such as normals, tangents, and positions. Using GPU computing shaders, uniform sampling is performed on the hemisphere of the local tangent space, generating 250 high-dimensional query parameters for each texel (producing over 16 million samples), generating baseline rendering data (Ground Truth).
[0156] 2. Calculation of the composite loss function (Loss): The network is trained end-to-end. Total loss. For the highlight branch, apply a logarithmic mapping. Compress the dynamic range and set the reflection time. During transmission To balance energy; the diffuse branch uses standard mean square error (MSE).
[0157] 3. Optimizer and Hyperparameter Configuration: The Adam optimizer is used, with a batch size of [missing information]. The total number of iterations was 60,000. To stabilize feature learning across materials, a differentiated learning rate was applied: the shared decoder was... The material's proprietary spatial pyramid and double-plane design are... In addition, exponentially decaying Gaussian blur with an initial kernel size of 8 and a half-life of 3000 steps was applied to the neural texture features for feature regularization.
[0158] IV. Effect Experiment, Results and Data Analysis
[0159] 1. Rendering performance and efficiency experiments (e.g.) Figure 4 (as shown)
[0160] Experimental Procedure: On a single NVIDIA RTX 4060 GPU, experiments were conducted on 9 fabric instances (4 knitted, 3 woven, [resolution missing]). Rendering tests were conducted on the scene.
[0161] Data Analysis: This method completes the inference of the entire neural pipeline in just 3.4 ms at 1 SPP (single sampling rate) (including 0.17 ms for multi-scale pyramid sampling, 0.11 ms for dual-plane directional sampling, 0.56 ms for specular MLP, and 0.29 ms for diffuse MLP), achieving an extremely high real-time frame rate of over 200 FPS. In a 1024 SPP test, this method only takes 3.96 s, far faster than the 19 s for ground truth physics path tracing, demonstrating extremely high rendering computational efficiency.
[0162] 2. Multi-scale generalization and fidelity comparison experiment (e.g.) Figure 5 (and as shown in Table 1):
[0163] Experimental procedure: The unified network of the present invention was tested at three scales: far view, middle view, and near view, and its performance in rendering knitted and woven fabrics was quantitatively evaluated against the independently optimized NeuMIP baseline.
[0164] Data Analysis: Experiments demonstrate that our method, using a single network, surpasses the baseline trained on each material. For knitted fabrics with extremely complex topologies, at the close-range scale, the PSNR of this invention reaches 38.55, significantly better than the baseline of 34.17; lower FLIP and LPIPS perceptual errors are achieved across all scales, completely resolving the aliasing problem in macroscopic aggregation of complex topologies.
[0165] 3. Biplane ablation experiments and fiber detail reconstruction (e.g.) Figure 6 (as shown)
[0166] Experimental procedure: Remove the semi-vector dual-plane module in the network (and replace it with direct splicing of the input and output directions), and test the rendering quality of transmitted specular highlights under backlight conditions.
[0167] Data analysis: Ablation degradation produces isotropic artifacts, making it impossible to accurately recover high-frequency signals. However, our invention (Ours Full), employing a complete dual-plane design, successfully preserves and reconstructs with high fidelity the iconic "cross-shaped" cross-transmission specular highlights on the fiber strand structure, demonstrating the absolute necessity and significant technical effect of physically separating the transmission and reflection light paths. Simultaneously, by modifying the input parameters... At that time, a smooth and physically correct transition was achieved in both the macroscopic and microscopic realms.
[0168] V. Advantages of the present invention
[0169] 1. Extremely high computational efficiency and real-time rendering performance
[0170] This invention completely eliminates the bottleneck of expensive high-dimensional numerical integration computation required for calculating the effective bidirectional scattering distribution function (effective BSDF) when performing multi-scale appearance aggregation in surface-based fabric rendering models by using a shared shading decoder.
[0171] In complex test scenarios containing multiple fabric instances, the rendering performance of this invention is demonstrated through... Figure 4 The intuitive three-column comparison has been rigorously verified:
[0172] Significant speedup at the same high sampling rate: At a configuration of 1024 SPP (samples per pixel) achieving extremely high convergence quality, this invention renders in just 3.96 seconds; in contrast, ground truth tracing at the same 1024 SPP takes up to 19 seconds. This invention demonstrates an extremely significant computational speedup.
[0173] Superior real-time rendering performance: More importantly, with a 1 SPP configuration, the complete rendering inference of this invention requires only 3.4 milliseconds per frame (frame rate exceeding 200 FPS). This method achieves truly low-latency real-time rendering while maintaining extremely high visual fidelity, fully meeting the stringent performance requirements of next-generation virtual try-on, cloud gaming, and other real-time interactive applications.
[0174] 2. Breaks through topological limitations, possessing excellent generalization ability and multi-scale rendering fidelity.
[0175] The "Scale-Disentangled" architecture of this invention completely separates spatial features from shading logic, successfully breaking the limitation of existing general-purpose networks that are "strictly limited to woven fabrics." A single shared network can not only process woven fabrics, but also perfectly accommodate and render highly complex knitted fabrics with excellent topology.
[0176] Objective experimental data show that, at far, medium, and near observation scales, this method comprehensively surpasses the closest existing baseline method in all quantitative evaluation indicators, including MSE, PSNR, SSIM, and LPIPS. Particularly at the microscopic scale, for knitted fabrics with severe self-occlusion, this invention achieves a significant improvement in PSNR, effectively eliminating aliasing caused by undersampling.
[0177] Figure 5 Table 1 shows a comparison of the rendering fidelity of the present invention on knitted and woven fabrics at different scales, demonstrating its superior rendering effect and versatility.
[0178] Table 1. Comparison of rendering fidelity for knitted and woven fabrics at different scales.
[0179]
[0180] 3. Perfectly supports real-time interactive parameter editing and fiber-level detail reconstruction.
[0181] This invention uses core parameters such as material roughness as direct input to the network, successfully endowing the model with real-time parameter editing capabilities. Simultaneously, thanks to the invention's pioneering Half-vector Bi-Plane feature, the system physically decouples the reflection and transmission light paths. When users adjust the roughness parameters in real time, they can not only obtain a smooth and physically consistent transition response of the global specular distribution, but also observe high-fidelity optical details at the micro-fiber level in close-up views (such as the complex anisotropic transmission specular highlights between fiber strands under backlighting conditions), truly achieving a unity of macroscopic interaction and microscopic fidelity. Figure 6 This invention demonstrates that it supports real-time editing of material roughness parameters and perfectly preserves and reconstructs fiber-level optical details in close-up shots.
[0182] In the description of this specification, references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0183] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to any specific implementation. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. A real-time neural fabric rendering method based on structure and shading decoupling, characterized in that, Includes the following steps: S1. Construct fiber-level geometric trajectories and generate prior data. The explicit fiber trajectory is recursively derived through a twist displacement strategy to generate a continuous geometry of the fabric. The geometric properties are baked into a two-dimensional texture, and the macroscopic bidirectional scattering distribution function (BSDF) is calculated to form a training dataset. S2. Construct a scale-decoupled neural texture pyramid to extract spatial features. A neural texture pyramid is assigned to each fabric pattern to store the material features of spatial variation, and trilinear interpolation sampling is performed in it based on the UV coordinates of the shading points and the size of the pixel coverage area to extract multi-channel spatial feature vectors. S3. Construct a semi-vector dual-plane for optical path decoupling and direction feature extraction. The normalized half-vector is calculated, and the projection and sampling of the half-vector on two independent feature planes are performed to obtain the directional latent code, which is then concatenated with the ray difference vector to form a directional feature descriptor. S4. Joint rendering via dual-branch shared decoder Deploy a shared decoder with two branches, input the required parameters into the two branches respectively, predict the high-frequency high-brightness signal and the low-frequency diffuse reflection coloring signal, and add them together to obtain the effective bidirectional scattering distribution function value; S5, End-to-End Joint Optimization and Network Training Differentiated learning rate configurations are applied to the decoder, neural texture pyramid, and semi-vector biplane. A composite loss function is designed to handle the dynamic range difference between specular and diffuse reflection, and regularization is performed on the neural texture features.
2. The real-time neural fabric rendering method based on structure and shading decoupling according to claim 1, characterized in that, S1 includes: S1-1, Explicit Fiber Trajectory Derivation Based on the parametric geometric model, the explicit three-dimensional physical trajectory from macroscopic yarn to microscopic fiber is derived by recursively applying the twist displacement strategy, and continuous geometry of knitted and woven fabrics is generated. S1-2, Baking of Geometric Properties Using orthogonal projection technology, the inherent geometric properties of the above mesh are baked into a high-fidelity two-dimensional texture map, and the complex three-dimensional geometry is unfolded into the two-dimensional signal domain; S1-3, Training Data Generation and Macroscopic BSDF Calculation The underlying light scattering is described using a local fiber-level surface coloring model based on micro-thin sheets. Uniform sampling is performed within the local tangent space to determine the pixel footprint. The radiative response within the pixel area is numerically integrated and aggregated to calculate the macroscopically effective BSDF within the pixel coverage area, which serves as the benchmark dataset for subsequent neural network learning.
3. The real-time neural fabric rendering method based on structure and shading decoupling according to claim 1, characterized in that, S2 specifically includes: S2-1, Material-Specific Pyramid Allocation Assign an independent, multi-resolution neural texture pyramid to each unique fabric topology pattern in the scene, specifically for storing the material features of spatial variations of that pattern; S2-2, Spatial Feature Trilinear Interpolation Sampling Using the UV coordinates of the shading point and the size of the pixel coverage area These two parameters are sampled using trilinear interpolation in the corresponding neural texture pyramid to extract multi-channel spatial feature vectors that reflect the local structure at that scale. .
4. The real-time neural fabric rendering method based on structure and shading decoupling according to claim 1, characterized in that, S3 specifically includes: S3-1, Semi-vector calculation According to the direction of the incident light and launch direction Calculate the normalized half-vector ; S3-2, Dual-plane projection and sampling Two globally shared and learnable independent feature planes are established, namely the reflection plane and the transmission plane, and half-vectors are extracted. of and The components are sampled and projected onto these two feature planes, thereby physically distinguishing and decoupling the complex reflection and transmission optical paths, and extracting the latent directional encoding. ; S3-3, Concatenation of Direction Descriptors Extracted directional latent code Difference vector of light rays The features are then spliced together to form a complete high-frequency directional feature descriptor.
5. The real-time neural fabric rendering method based on structure and shading decoupling according to claim 1, characterized in that, S4 specifically includes: S4-1, Deploy a shared decoder Design a lightweight two-branch multilayer perceptron (MLP) network, including a specular network branch and a diffuse reflection network branch; S4-2, High-Frequency Highlight Reconstruction and Parameter Injection Spatial features extracted from S2 S3 extracts directional features ( , ) and the real-time material roughness parameters input by the user. As network input, these signals are fed into the specular network branch to predict high-frequency specular signals containing details of fiber anisotropy. ; S4-3, Low-frequency diffuse reflection reconstruction spatial features Compared with the original incident direction , emission direction The input is fed into the diffuse reflection network branch to predict the low-frequency diffuse reflection coloring signal. ; S4-4, Final Effective BSDF Synthesis The outputs of the specular and diffuse network branches are added together to obtain the effective bidirectional scattering distribution function value required for the final rendering.
6. The real-time neural fabric rendering method based on structure and shading decoupling according to claim 1, characterized in that, S5 specifically includes: S5-1, Differentiated Learning Rate Configuration Apply a low learning rate to the globally shared MLP decoder A high learning rate is applied to material-specific neural pyramids and shared semi-vector biplanes. ; S5-2. Calculation of Composite Loss Function For the specular term, a logarithmic mapping is applied to the reference signal before calculating the mean square error. For the diffuse term, the standard mean square error loss is applied directly, and the two losses are added together to obtain the total loss. S5-3, Texture Regularization Processing During training, Gaussian blurring with exponential decay is applied to the neural texture features for regularization, which eliminates high-frequency noise and accelerates convergence.
7. A real-time neural fabric rendering system based on structure and shading decoupling, characterized in that, include: The spatial feature extraction module is used to receive the UV coordinates of the colored points. and pixel coverage The data is then input into a pre-allocated multi-resolution neural texture pyramid for trilinear interpolation to extract local spatial feature vectors. ; Directional feature decoupling module, used to receive the direction of incident light and the direction of emitted light Calculate the half vector Projection and sampling are performed on the reflection feature plane and the transmission feature plane to obtain the directional latent features. , and the difference vector of light Concatenate to form a direction descriptor; A dual-branch shared decoder, comprising: The specular branch is used to receive local spatial feature vectors. Direction descriptor ( , And roughness parameters, outputting high-frequency high-gloss signals; The diffuse reflection network branch is used to receive local spatial feature vectors. Incident light direction and the direction of emitted light It outputs a low-frequency diffuse reflection signal; The output synthesis module adds the high-frequency high-light signal obtained from the dual-branch shared decoder to the low-frequency diffuse reflection signal to obtain the final effective bidirectional scattering distribution function. .
8. The real-time neural fabric rendering system based on structure and shading decoupling according to claim 7, characterized in that, The high-light network branch adopts a 4-layer SIREN architecture, with each layer containing 32 hidden neurons.
9. The real-time neural fabric rendering system based on structure and shading decoupling according to claim 7, characterized in that, The diffuse reflection network branch adopts a 4-layer SIREN architecture, with each layer containing 21 hidden neurons.
