Text2Mesh: Text-Driven Neural Stylization for Meshes

Oscar Michel, Roi Bar-On, Richard Liu, Sagie Benaim, Rana Hanocka · DOI

Abstract

In this work, we develop intuitive controls for editing the style of 3D objects. Our framework, Text2Mesh, stylizes a 3D mesh by predicting color and local geometric details which conform to a target text prompt. We consider a disentangled representation of a 3D object using a fixed mesh input (content) coupled with a learned neural network, which we term a neural style field network. In order to modify style, we obtain a similarity score between a text prompt (describing style) and a stylized mesh by harnessing the representational power of CLIP. Text2Mesh requires neither a pre-trained generative model nor a specialized 3D mesh dataset. It can handle low-quality meshes (non-manifold, boundaries, etc.) with arbitrary genus, and does not require UV parameterization. We demonstrate the ability of our technique to synthesize a myriad of styles over a wide variety of 3D meshes.

Introduction

Traditional 3D content creation and editing are notoriously difficult. Stylizing a 3D model usually requires specialized skills in UV mapping, texture painting, and geometric sculpting. Furthermore, existing automated methods often rely on large-scale 3D datasets, which are scarce, or are restricted to specific object categories.

The authors identify a major gap: the lack of intuitive, cross-category controls for 3D stylization. They aim to create a system that can handle "messy" real-world meshes—those with holes, non-manifold edges, or complex topologies—and stylize them based on abstract concepts described in text, such as "crochet," "stained glass," or "rusty metal."

Methodology

The core of Text2Mesh is the Neural Style Field (NSF). Instead of storing colors and offsets in a traditional texture map, the framework uses a coordinate-based Multi-Layer Perceptron (MLP).

The Text2Mesh pipeline: A mesh and text prompt are processed through a Neural Style Field to predict color and displacement, optimized via CLIP similarity.
  1. Neural Style Field (NSF): The MLP takes a 3D coordinate $(x, y, z)$ from the mesh surface and outputs an RGB color and a scalar displacement value ($d$). This displacement moves the vertex along its normal, allowing the network to "grow" local geometric details like fur, scales, or bricks.
  2. Positional Encoding: To capture high-frequency details (like the fine threads in a "crochet" style), the input coordinates are mapped to a higher-dimensional space using Fourier feature mappings.
  3. CLIP-Guided Optimization: The system uses the CLIP (Contrastive Language-Image Pre-training) model as a "critic." The stylized mesh is rendered from multiple 2D viewpoints. These renders are compared to the target text prompt in CLIP’s embedding space. The network weights are then updated to maximize the similarity between the renders and the text.
  4. Regularization through Augmentation: To prevent the network from finding "adversarial" solutions (noisy textures that fool CLIP but look bad to humans), the authors apply 2D augmentations like random perspective transforms and crops during the optimization process.

Key Insights and Ideas

  • Disentangling Content and Style: By keeping the base mesh fixed and only allowing local displacements (constrained to a small range), the method preserves the global "content" of the object while completely transforming its "style."
  • The MLP as a Prior: The authors found that using a neural network (the NSF) acts as a natural regularizer. Unlike direct vertex optimization, which often results in jagged noise, the MLP tends to produce spatially coherent and smooth stylizations.
  • Geometry-Color Synergy: A key finding is that learning geometry and color together is better than either alone. For example, to represent "bricks," the network learns to create both the red color and the physical indentations of the mortar, which creates realistic self-shadowing when rendered.

Key Results

Text2Mesh is an optimization-based, zero-shot method, meaning it does not require a specific training dataset to learn how to stylize. The authors evaluated their method on a diverse set of source meshes from COSEG, Thingi10K, ShapeNet, TurboSquid, and ModelNet. The meshes used were intentionally "low-quality" (averaging 16% non-manifold edges and 12% boundaries) to demonstrate the method's robustness.

Qualitative results showing the versatility of Text2Mesh across different mesh categories (boots, vases, horses) and diverse text-driven styles.
  • Qualitative Superiority: Text2Mesh produces significantly more coherent and detailed results than 2D-based baselines like VQGAN-CLIP, which often produce "flat" or "hallucinated" textures that don't align with 3D geometry.
  • User Study: In a mean opinion score (1-5 scale), Text2Mesh outperformed the baseline significantly in overall quality (3.90 vs 2.83) and style matching (3.91 vs 2.59).
  • Efficiency: The method is relatively fast, typically producing high-quality results in less than 10 minutes on a single NVIDIA RTX 2080Ti.

Limitations and Future Work

While powerful, the framework faces challenges when the target style is fundamentally at odds with the source geometry (e.g., turning a "dragon" into "stained glass"). In such cases, the optimization might struggle or partially erase the underlying shape to satisfy the CLIP loss. Additionally, the current model does not inherently understand object symmetry. Future work could involve incorporating symmetry priors or training a feed-forward "hyper-network" that can stylize any mesh in a single pass, moving closer to real-time performance.

Summary updated

BibTeX
@inproceedings{michel2021text,
  author = {Oscar Michel and Roi Bar-On and Richard Liu and Sagie Benaim and Rana Hanocka},
  title = {{Text2Mesh: Text-Driven Neural Stylization for Meshes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr52688.2022.01313},
}
Figure