CIG-mode Rendering Using Stencil Buffers for Virtual Fitting
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current virtual fitting systems face challenges in efficiently rendering multiple garments simultaneously, particularly in real-time, due to the complexity of interfering garments and the combinatorial explosion of pre-simulation requirements, which limits high-quality simulation and causes artifacts in CIG-mode rendering.
Innovation Solution
A method and system for CIG-mode rendering that uses inner-saver objects (ISOs) to manage stencil buffers, allowing for independent garment simulation (IGS) of outer and inner garments, with specific pixel manipulation steps to render interiors and exteriors effectively, and utilizing OpenGL hardware for real-time processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple garments are rendered simultaneously using traditional methods, then the virtual fitting system can display complete outfits, but the rendering complexity increases exponentially due to interfering garments
Solution Approach 1:
The patent divides the rendering process into separate passes for different garment layers. The outer garment is rendered first, then inner garments are rendered in subsequent passes using stencil buffers to mask areas already covered by outer garments. This segmentation prevents exponential complexity by processing garments hierarchically rather than simultaneously.
Solution Approach 2:
The patent introduces a stencil buffer as an additional rendering dimension layer. This stencil buffer tracks which pixels are already covered by outer garments, allowing the system to efficiently determine where inner garments should be visible without increasing computational complexity proportionally to the number of garment combinations.
2Manufacturing precision
If pre-simulation is performed for all garment combinations to ensure high-quality simulation, then the accuracy of garment interaction is improved, but the computational time and resources increase exponentially
Solution Approach 1:
The patent performs preliminary rendering of outer garments and stores their pixel coverage information in stencil buffers before rendering inner garments. This preliminary action eliminates the need for extensive pre-simulation of all garment combinations, as the rendering system efficiently handles interactions through the stencil buffer masking technique during the actual rendering phase.
3Ease of manufacture
If traditional rendering methods are used for CIG-mode, then the system can handle simple cases, but artifacts appear when rendering complex garment combinations
Solution Approach 1:
The patent introduces stencil buffers as an intermediary mechanism between the rendering of outer and inner garments. This intermediary structure accurately tracks pixel coverage and prevents rendering artifacts by ensuring that inner garments are only rendered in areas not already covered by outer garments, maintaining reliability for complex garment combinations while preserving rendering simplicity.
Data Source
AI summary
A method for CIG-mode rendering in a virtual fitting system is provided. The method comprises step for: preparing a three-dimensional body, selecting a first garment for an outer and a second garment for an inner, assigning a plurality of inner-saver objects (ISOs), initializing all pixels of a stencil buffer for the screen; incrementing first pixels of the stencil buffer corresponding to interiors and RGB-drawing of the interiors, and the interiors comprise pixels of the outer or the inner, decrementing second pixels of the stencil buffer corresponding to exteriors and RGB-drawing of the exteriors, incrementing third pixels of the inner-saver objects and void-drawing the inner-saver objects; RGB-drawing forth pixels of the inner, where the stencil values are greater than zero.


