Procedural Cloth Shader Using Curved Ray Marching for Yarn Detail

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current techniques for shading and rendering cloth in computer-generated imagery (CGI) and computer-aided animation face challenges in achieving realistic, detailed representations while efficiently managing computational resources, particularly in maintaining global weave coherence and avoiding texture stretching.

Innovation Solution

An adaptive, ray-marched-tangent space shader using an implicit weave/thread procedural texture performs curved ray marching to create the appearance of individual cloth yarns with sub-fibers, correcting UV to world-space mapping and incorporating local occlusion to ensure accurate shading and rendering of cloth surfaces.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If traditional shading techniques are used for cloth rendering, then computational resources can be allocated efficiently, but the visual detail and realism of yarn separation is insufficient

Engineering Contradiction:
Improvevisual detail of yarn separationVSAvoidcomputational resource allocation efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The cloth surface is segmented into individual yarns and sub-fibers through procedural texture generation, allowing each element to be rendered independently with high detail while maintaining overall efficiency through algorithmic generation rather than pixel-by-pixel processing

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent transitions from traditional 2D texture mapping to 3D volumetric ray marching through the cloth surface, enabling detailed rendering of yarn separation and sub-fiber structures by marching rays through the volumetric texture data to compute accurate shading

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Manufacturing precision

If detailed cloth textures are applied to subdivision meshes, then visual appeal is improved, but texture stretching and global weave coherence are compromised

Engineering Contradiction:
Improvetexture mapping accuracyVSAvoidglobal weave coherence
Core Design Contradiction:
Manufacturing precisionVSStability of the object's composition

Solution Approach 1:

The procedural texture generation creates locally adapted yarn patterns that conform to the subdivision mesh geometry at each point, ensuring accurate texture mapping without stretching while maintaining consistent weave patterns globally through shared algorithmic parameters

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The texture generation system dynamically adapts to the subdivision mesh topology and geometry, automatically adjusting yarn placement and orientation to match the mesh structure, which prevents texture stretching and maintains global coherence across the entire cloth surface

Inventive Principle:
Principle #15Dynamics

3Manufacturing precision

If curved ray marching is performed through volumetric textures, then realistic yarn appearance is achieved, but computational cost increases

Engineering Contradiction:
Improverealism of yarn renderingVSAvoidcomputational cost
Core Design Contradiction:
Manufacturing precisionVSUse of energy by moving object

Solution Approach 1:

The cloth surface is pre-subdivided into manageable patches, and the volumetric texture is pre-generated with optimized resolution, allowing ray marching to be performed on smaller, pre-processed data structures that reduce computational cost while maintaining rendering quality

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The ray marching algorithm dynamically adjusts parameters such as step size, resolution, and sampling density based on local cloth properties and viewing conditions, performing high-resolution rendering only where needed while using lower resolution elsewhere to optimize overall computational efficiency

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS9378579B1Creation of cloth surfaces over subdivision meshes from curves
Publication Date: 2016.06.28 PIXAR CORP
  • US9378579B1 patent drawing
  • US9378579B1 patent drawing
  • US9378579B1 patent drawing

AI summary

In various embodiments, a cloth weave structure is built from curves over the surface of a subdivision mesh at rendertime. A coherent woven or knitted surface is generated from interwoven curve geometry and a subdivision (or polygon) mesh. In one aspect, this is done at render-time. Accordingly, in one embodiment, a geometry generation process takes an ST map as input to control the direction of flow of curves (yarns) over the surface. Since each face is calculated independently, general global coordinates in ST space are predefined (at the beginning of the render) to make sure that each face transitions smoothly to the next.