Abstract
In this paper, we propose a generic neural-based hair rendering pipeline that can synthesize photo-realistic images from virtual 3D hair models. Unlike existing supervised translation methods that require model-level similarity to preserve consistent structure representation for both real images and fake renderings, our method adopts an unsupervised solution to work on arbitrary hair models. The key component of our method is a shared latent space to encode appearance-invariant structure information of both domains, which generates realistic renderings conditioned by extra appearance inputs. This is achieved by domain-specific pre-disentangled structure representation, partially shared domain encoder layers and a structure discriminator. We also propose a simple yet effective temporal conditioning method to enforce consistency for video sequence generation. We demonstrate the superiority of our method by testing it on a large number of portraits and comparing it with alternative baselines and state-of-the-art unsupervised image translation methods.
Introduction
Rendering realistic human hair is a long-standing challenge in computer graphics. Traditionally, achieving high-fidelity results requires simulating complex physics, including light scattering, soft shadowing, and semi-transparent occlusions across hundreds of thousands of individual strands. Because these computations are too intensive for real-time applications like video games or interactive editing, developers often rely on coarse "polygon strip" meshes that lack the visual nuance of real hair.
While neural image-to-image translation offers a potential shortcut, existing supervised methods typically require paired training data—which is non-existent for real-world hair versus low-poly 3D models. Furthermore, the massive domain gap between blocky polygon strips and organic hair photographs causes standard translation models to fail. This paper introduces a novel, unsupervised neural rendering pipeline that bridges this gap, translating low-quality 3D hair models into photorealistic images while allowing for precise control over both hairstyle (via the 3D model) and appearance (via reference photos).
Methodology
The proposed framework utilizes an unsupervised domain adaptation approach consisting of two parallel branches: one for real-world photographs and one for synthetic 3D renderings.
1. Structure Adaptation Subnetwork
To bridge the domain gap, the network extracts structural representations specific to each domain: orientation maps for real hair and surface tangent color maps for synthetic hair. Encoders for both domains share weights in their final layers to project these distinct inputs into a shared latent space. A structure discriminator is employed to ensure these latent features are truly domain-invariant, forcing the network to focus on geometry rather than domain-specific artifacts.
2. Appearance Rendering Subnetwork
The decoders for the real and synthetic domains are designed asymmetrically. The synthetic decoder reconstructs the original input to ensure the latent space preserves geometric integrity. Conversely, the real-domain decoder utilizes Spatially-Adaptive Normalization (SPADE) residual blocks to inject appearance features from a separate reference photograph. This architecture allows the system to render the 3D structure using the specific color, texture, and lighting characteristics of the reference image.
3. Temporal Conditioning
To prevent the flickering common in neural video generation, the authors leverage the inherent advantages of 3D modeling. Because the 3D animation pipeline provides exact ground-truth motion fields (optical flow), the network uses this data to warp the previously generated frame. This warped frame serves as an additional condition for the decoder, ensuring temporal consistency across video sequences without the need for complex recurrent architectures.
Experimental Setup
Datasets
- Real Domain: The authors utilized the FFHQ dataset, consisting of 65,000 training and 5,000 testing images. These were pre-processed using segmentation models and oriented filter kernels to extract dense, pixel-level orientation maps.
- Synthetic Domain: The team developed five custom 3D hair models composed of sparse polygon strips (ranging from 10 to 50 strips each), typical of real-time game engines. Four models were used for training, with one held back for testing unseen geometry.
Results and Discussion
The proposed method significantly outperforms standard unsupervised image-to-image translation baselines, including CycleGAN, UNIT, and DRIT.
- Visual Fidelity: The model achieved a Fréchet Inception Distance (FID) of 57.08, vastly outperforming traditional Graphic Renderers (98.62) and CycleGAN (107.11). This indicates the generated hair is statistically much closer to the distribution of real human hair.
- Structural Integrity: The system achieved an Intersection-over-Union (IoU) of 86.74% and a pixel accuracy of 96.45% when comparing generated hair masks to the target 3D geometry, proving that the neural renderer faithfully follows the intended hairstyle.
- Ablation Studies: Removing the structure discriminator caused the IoU to drop to 80.10%, while removing the shared latent space caused the FID to spike to 94.25, validating the necessity of the dual-branch architecture.
- Efficiency: The pipeline is highly performant, rendering a single frame in less than 1 second on an Nvidia Tesla P100, making it viable for near-real-time applications.
Conclusion and Future Work
This research demonstrates that unsupervised neural rendering can effectively bridge the gap between coarse 3D geometry and photorealistic hair synthesis. By disentangling structure from appearance and leveraging 3D motion data for temporal stability, the method provides a controllable and efficient pipeline for digital human creation.
Future work will address current limitations, such as the need for integrated face inpainting to handle cases where the new 3D hair is smaller than the subject's original hair. Additionally, the authors aim to improve boundary refinement to eliminate minor alpha-blending artifacts against complex backgrounds.
Summary updated