Manuscript Offprint
arXiv:2611.06070RouTex: Multi-reference 3D Texture Generation by Reprogramming Rotary Position Encoding
ABSTRACT
While single-image 3D texture generation has advanced significantly, conditioning texture synthesis on multi-view reference images remains largely under-explored, despite its necessity for resolving surface ambiguity in unobserved regions. In this paper, we propose RouTex, a novel multi-reference 3D texture generation framework based on in-context Diffusion Transformers (DiT). Our key insight is that native 3D Rotary Position Encoding (RoPE) inherently possesses spatial addressing capabilities. We introduce Positional Routing (PR) to reprogram 3D RoPE along spatial and semantic dimensions, establishing explicit reference-to-view correspondence without introducing additional parameters. To execute this routing efficiently, Dual-Granularity Attention (DGA) combines per-view local attention for fine texture fidelity with global joint attention over deduplicated references for cross-view consistency. Extensive experiments demonstrate that RouTex achieves new state-of-the-art performance in multi-reference 3D texture generation.
Index Terms— Multi-Reference Texture Generation, 3D Modeling
1. INTRODUCTION
High-quality 3D assets with rich surface textures are essential for e-commerce, gaming, and augmented reality, typically acquired via reconstruction or generation. While reconstruction methods [1, 2, 3] require dense, precisely calibrated multi-view captures, generative methods [4, 5, 6] synthesize 3D content from a text prompt or a single image. However, such inputs of generation methods provide insufficient guidance for texture synthesis: text lacks fine-grained appearance control, while a single image leaves most surface areas unobserved. Worse, because the mapping from visible to occluded regions is one-to-many (e.g., a mug with a bird on the front may have a plain or a floral back), synthesized back-view textures must rely entirely on learned priors, often producing hallucinated or inaccurate details. Conditioning texture generation on multiple reference images is therefore crucial, as each additional view provides explicit appearance supervision for different surfaces of the object.
A straightforward approach to multi-reference conditioning is the cyclic injection scheme from TRELISIS [6], which applies one reference per denoising step. However, due to weak 3D priors and limited texture representation capabilities, TRELISIS recovers only coarse base textures, leading to severe distortion on fine details like text and logos. We thus turn to the prevailing Multi-View Diffusion (MVD) framework [7, 8, 9]. Directly transplanting cyclic injection into a MVD framework fails, as it lacks 3D structural priors to auto-align mesh surfaces with reference images via cross-attention. Consequently, the central challenge becomes: how to establish explicit correspondences between reference images and target views within a pure 2D framework.
To address this challenge, our key observation is that modern in-context Diffusion Transformers (DiT) [10, 11], such as Flux-Kontext [12], inherently possess spatial addressing capabilities via 3D Rotary Position Encoding (RoPE), where axis-0 of the position triplet distinguishes different images, while the two spatial axes encode 2D layout. We therefore propose to reprogram this native mechanism, without adding parameters, to inject explicit reference-to-view correspondence into generation.
Concretely, we introduce two complementary strategies to realize this design. First, Positional Routing (PR) partitions camera yaws into canonical azimuth regions to group target views and reference images, and reprograms 3D RoPE to align each reference's spatial coordinates with its corresponding target view, enabling self-attention to automatically route appearance guidance (Sec. 2.2). Second, Dual-Granularity Attention (DGA) leverages the native double-stream and single-stream blocks of Flux-Kontext to execute this routing efficiently, combining per-view local attention for fine texture fidelity with global joint attention over deduplicated references for cross-view consistency (Sec. 2.3). Crucially, because correspondence is governed purely by position encodings across discrete regions, RouTex requires only coarse azimuth categories rather than precise camera calibration, substantially relaxing capture requirements while achieving state-of-the-art performance.
2.1. Preliminaries
Flux-Kontext is an in-context image-editing Diffusion Transformer (DiT) that concatenates reference and target tokens into a unified sequence, processed by double-stream blocks followed by single-stream blocks. It encodes
Corresponding author: huangtaicheng.1@jd.com

Fig. 1. Overview of RouTex. Given multi reference images from different azimuth regions and geometry conditions, Positional Routing assigns fractional semantic codes and aligns each reference to its target view coordinates. Double-stream blocks perform per-view local attention, then single-stream blocks perform global joint attention with deduplicated references.
positions with 3D Rotary Position Encoding (RoPE) using triplets , where the semantic axis distinguishes different input images and the spatial axes specify the 2D layout.
Problem Setup. Following multi-view diffusion protocols [5, 7], we arrange six orthographic target views into a grid, as illustrated in Fig. 1. Given a 3D mesh, text prompt , multi-view geometry conditions, and reference images (), RouTex aims to generate high-fidelity textures consistent across all views. For each target view , we denote its latent representation and geometry condition as and respectively.
2.2. Positional Routing
To establish explicit reference-to-view correspondence within a pure 2D framework, we propose Positional Routing (PR), which reprograms the native 3D RoPE triplets along both spatial and semantic dimensions without adding parameters or modifying the architecture.
Coordinate-Space Routing. We divide the camera yaw into four canonical azimuth regions (front, right, back, and left). Each reference and target view is assigned to a region according to its camera yaw, except the two polar views (top and bottom with pitch ), which are assigned to region 0 by default.
Let a single VAE latent have spatial size . For a token with local coordinate in the view at row and column of the canvas, its global RoPE coordinate is
where and .
For a reference in region , we align its spatial coordinates with those of the first target view in the same region:
The region-0 reference is instead positioned at the center of the canvas to broadcast its front-view appearance to all target views, as shown in Fig. 1. Thus, relevant reference
and target tokens share aligned spatial positions in the RoPE space, enabling parameter-free appearance routing.
Fractional Semantic Addressing. To further distinguish token types, views, and reference regions, we reprogram the semantic axis as follows:
where is the candidate view pool size and is the number of azimuth regions. Six target views are sampled per iteration while retaining their intrinsic indices , allowing the fractional offsets and to distinguish views and reference regions.
2.3. Dual-Granularity Attention
Positional Routing specifies which reference is associated with each target view. However, six target views outnumber the available references () and directly duplicating references is computationally inefficient, we therefore introduce Dual-Granularity Attention (DGA) to exploit the native two-stage architecture of Flux-Kontext for local texture transfer and global cross-view consistency.
Double-Stream Blocks (Per-View Local Attention). During the double-stream stage, we isolate each target view into an independent sequence: , where denotes the matched reference for view . By reshaping the batch dimension from to , attention is restricted to each view-reference pair, reducing sequence length and enabling efficient fine-grained texture transfer.
Single-Stream Blocks (Global Joint Attention). Before the single-stream stage, reference features from different view-reference pairs are merged into unique representations via scatter-averaging. The input sequence is then reconstructed as , allowing joint attention across all target views and unique references. This global interaction promotes cross-view appearance consistency while avoiding redundant reference computation.
Together, the double-stream blocks preserve local texture details at lower compute cost, while the single-stream blocks enforce global cross-view coherence to get high-fidelity texture.
2.4. Training
We train the entire model using the vanilla flow-matching [13] loss. The number of reference images is randomly sampled from , strictly requiring at least one reference from region 0. Our view pool consists of 30 candidate viewpoints, comprising six canonical orthographic views (front, back, left, right, top, and bottom) and 24 surrounding views. At each iteration, six target views are randomly sampled from this pool while ensuring full coverage of all four azimuth regions. For geometry conditioning, the surface normal map and canonical coordinate map (CCM) are averaged into a single composite condition map per view.
3. EXPERIMENTS
3.1. Implementation Details
Our training dataset comprises approximately 200K 3D assets curated from public datasets (Objaverse [14], ABO [15], 3D-FUTURE [16], TexVerse [17]) alongside proprietary high-quality handcrafted models. For each asset, we render 24 reference views at resolution following the camera setup of TRELLIS [6], and 30 orthographic target views at as ground truth. We train RouTex on 8 NVIDIA B200 GPUs with a batch size of 64 for 5.5K iterations (~32 hours) at resolution. During inference, we scale the resolution to , generating six target views in approximately 40 seconds over 15 denoising steps without classifier-free guidance. FlashAttention V4 [18] is employed across both training and inference to optimize runtime efficiency.
3.2. Experimental Settings
Baselines and Metrics. We compare RouTex against five state-of-the-art baselines: two multi-reference methods (TRELLIS [6] and TRELLIS.2 [19]) and three single-reference methods (Hunyuan3D-2.1 [20], MV-Adapter [7], and LumiTex [5]). Specifically, multi-image input is natively supported in the official codebase of TRELLIS, whereas for TRELLIS.2, we adapt it using the same cyclic injection mechanism as TRELLIS for fair evaluation. Besides, all other baselines run under their default single-view setups. To isolate texture generation quality from geometric variations, all methods texture the same meshes reconstructed by Hunyuan3D-2.1 and decimated to 50K faces. Outputs are evaluated by baking synthesized textures back onto these shared meshes, measuring quality via FID [21], KID [22], CLIP-I [23], and LPIPS [24].
Evaluation Dataset. We curate an independent evaluation set of 475 high-quality 3D assets, disjoint from the training data. For each asset, we render 12 evaluation views at a elevation angle, uniformly sampled every in azimuth starting from . To eliminate illumination bias arising from differences between PBR-based and shaded texture pipelines among baselines, all evaluation renderings
| Method | FID↓ | KID↓ | CLIP-I↑ | LPIPS↓ |
|---|---|---|---|---|
| TRELLIS | 18.83 | 28.49 | 0.9149 | 0.1727 |
| TRELLIS.2 | 12.93 | 4.53 | 0.9246 | 0.1656 |
| Hunyuan3D-2.1 | 15.52 | 10.34 | 0.9242 | 0.1703 |
| MV-Adapter | 15.34 | 12.04 | 0.9217 | 0.1710 |
| LumiTex | 17.64 | 23.82 | 0.9258 | 0.1666 |
| Ours | 12.06 | 8.66 | 0.9423 | 0.1519 |
Table 1. Quantitative comparison with state-of-the-art methods. Red and blue highlight the best and second-best results, respectively.
are performed under uniform ambient lighting. RouTex and other multi-reference baselines take four canonical orthogonal views (front, back, left, right) as condition images, whereas single-reference baselines use the front view.
3.3. Quantitative Results
As shown in Table 1, RouTex outperforms all baselines. Single-reference methods see only the front view, failing to hypothesize plausible textures for unobserved surfaces. Multi-reference methods suffer from weak 3D priors and limited texture representation capacity, while their iterative injection scheme lacks explicit reference-to-view correspondence, resulting in severe texture distortion. In contrast, RouTex explicitly routes multi-reference texture within a strong generative framework, producing high-quality textures that remain plausible and consistent across all views.
3.4. Qualitative Results
Open-Source Methods. Fig. 2 compares RouTex with open-source state-of-the-art baselines using 2 to 4 reference images, where RouTex faithfully reproduces complex textures across all input views. Single-reference methods receive no visual guidance for unobserved regions, often generating flat, uninformative surfaces. Even within observed areas, they fail to reconstruct fine-grained appearance details. While multi-reference methods capture basic color distributions, their limited 3D texture representations and iterative injection scheme lack explicit reference-to-view correspondence, leaving fine patterns and text noticeably blurred or garbled.
Commercial Methods. We further compare against two commercial models that support multi-image 3D generation. To reduce the resolution gap for a fairer comparison, we retrain our model at resolution. As shown in Fig. 3, Hunyuan3D v3.1 produces chaotic textures with severe cross-view inconsistencies. Tripo3D v3.1 generates cleaner textures overall but struggles with spatial precision and fine details. As highlighted in the zoomed-in insets, the painting in the orange box (column 4, row 2) is misaligned relative to the reference image, and the text in the red box is less crisp than ours.
3.5. Ablation Study
We validate the necessity of each key component through four ablation variants: (1) CSIC (Cyclic Single-Image Condi-

Fig. 2. Qualitative comparison with open-source methods. Orange and red boxes highlight zoomed-in regions for detail inspection. In the input column, red-bordered images indicate the input of single-image methods.

Fig. 3. Qualitative comparison with commercial methods. Orange and red boxes highlight zoomed-in regions for detail inspection.
tioning) adopts TRELLIS's injection strategy with the single reference MVD framework; (2) w/o PR removes Positional Routing, assigning identical RoPE to all reference images in single-stream blocks while retaining per-view matching in double-stream blocks; (3) w/o DGA processes all target views and references jointly across both double-stream and single-stream stages while preserving Positional Routing; (4) w/o PR & DGA disables both components.
As reported in Table 2 and Fig. 4, removing any core component or replacing our multi-reference injection with TRELLIS's strategy leads to a performance degradation. Furthermore, although removing DGA leads to only a slight quantitative drop, it remains essential for preventing localized texture artifacts and enabling a ~17% inference speedup.
| Method | FID↓ | KID↓ | CLIP-I↑ | LPIPS↓ |
|---|---|---|---|---|
| CSIC | 20.08 | 27.49 | 0.9122 | 0.1700 |
| w/o PR & DGA | 14.61 | 13.13 | 0.9280 | 0.1619 |
| w/o PR | 12.49 | 9.63 | 0.9395 | 0.1541 |
| w/o DGA | 12.11 | 8.36 | 0.9413 | 0.1523 |
| Full Model | 12.06 | 8.66 | 0.9423 | 0.1519 |
Table 2. Quantitative results of ablation study. Red and blue highlight the best and second-best results, respectively.

Fig. 4. Qualitative ablation results. Green and red boxes highlight successful recoveries by the Full Model and failures of the ablated variants, respectively.
4. CONCLUSION
In this work, we present a multi-reference framework for high-quality 3D texture generation within a 2D multi-view diffusion framework. We introduce Positional Routing (PR) to establish explicit reference-to-view correspondence through reprogrammed 3D RoPE, and Dual-Granularity Attention (DGA) to efficiently combine local texture transfer with global cross-view consistency. With these components, RouTex achieves state-of-the-art performance in multi-reference 3D texture generation.
5. REFERENCES
[1] B. Kerbl, G. Kopanas, T. Leimkühler, and G. Drettakis, "3D Gaussian Splatting for real-time radiance field rendering," ACM Transactions on Graphics, vol. 42, no. 4, pp. 139:1–139:14, 2023.
[2] B. Mildenhall, P. P. Srinivasan, M. Tancik, et al., “NeRF: Representing scenes as neural radiance fields for view synthesis,” in European Conference on Computer Vision (ECCV), 2020, pp. 405–421.
[3] L. Pan, D. Barath, M. Pollefeys, and J. L. Schönberger, “Global structure-from-motion revisited,” in European Conference on Computer Vision (ECCV), 2024, pp. 54–73.
[4] Z. Lai, Y. Zhao, Z. Zhao, et al., “NaTex: Seamless texture generation as latent color diffusion,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026, pp. 18619–18629.
[5] J. Bao, H. Chen, L. Zhu, et al., “LumiTex: Towards high-fidelity PBR texture generation with illumination context,” in International Conference on Learning Representations (ICLR), 2026.
[6] J. Xiang, Z. Lv, S. Xu, et al., “TRELLIS: Structured 3D latents for scalable and versatile 3D generation,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025, pp. 21469–21480.
[7] Z. Huang, Y.-C. Guo, H. Wang, et al., “MV-Adapter: Multi-view consistent image generation made easy,” in IEEE/CVF International Conference on Computer Vision (ICCV), 2025, pp. 16377–16387.
[8] ByteDance Seed, “Seed3D 1.0: From images to high-fidelity simulation-ready 3D assets,” arXiv preprint arXiv:2501.00000, 2025.
[9] Y. Shi, P. Wang, J. Ye, et al., “MVDream: Multi-view diffusion for 3D generation,” arXiv preprint arXiv:2308.16512, 2023.
[10] J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” Advances in Neural Information Processing Systems (NeurIPS), vol. 33, pp. 6840–6851, 2020.
[11] W. Peebles and S. Xie, “Scalable diffusion models with transformers,” in IEEE/CVF International Conference on Computer Vision (ICCV), 2023, pp. 4195–4205.
[12] Black Forest Labs, S. Batifol, A. Blattmann, et al., “FLUX.1 Kontext: Flow matching for in-context image generation and editing in latent space,” arXiv preprint arXiv:2506.15742, 2025.
[13] Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, et al., “Flow matching for generative modeling,” arXiv preprint arXiv:2210.02747, 2022.
[14] M. Deitke, D. Schwenk, J. Salvador, et al., “Objaverse: A universe of annotated 3D objects,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023, pp. 13142–13153.
[15] J. Collins, S. Goel, K. Deng, et al., “ABO: Dataset and benchmarks for real-world 3D object understanding,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 21094–21104.
[16] H. Fu, R. Jia, L. Gao, et al., “3D-FUTURE: 3D furniture shape with texture,” International Journal of Computer Vision, vol. 129, no. 12, pp. 3313–3337, 2021.
[17] Y. Zhang, L. Zhang, R. Ma, and N. Cao, “TexVerse: A universe of 3D objects with high-resolution textures,” arXiv preprint arXiv:2508.10868, 2025.
[18] T. Zadouri, M. Hoehnerbach, J. Shah, et al., “FlashAttention-4: Algorithm and kernel pipelining co-design for asymmetric hardware scaling,” Proceedings of Machine Learning and Systems, vol. 8, pp. 912–926, 2026.
[19] J. Xiang, X. Chen, S. Xu, et al., “Native and compact structured latents for 3D generation,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026, pp. 14419–14429.
[20] Tencent Hunyuan3D Team, “Hunyuan3D 2.1: From images to high-fidelity 3D assets with production-ready PBR material,” arXiv preprint arXiv:2506.15442, 2025.
[21] M. Heusel, H. Ramsauer, T. Unterthiner, et al., “GANs trained by a two time-scale update rule converge to a local Nash equilibrium,” Advances in Neural Information Processing Systems (NeurIPS), vol. 30, pp. 6626–6637, 2017.
[22] M. Bińkowski, D. J. Sutherland, M. Arbel, and A. Gretton, “Demystifying MMD GANs,” in International Conference on Learning Representations (ICLR), 2018.
[23] A. Radford, J. W. Kim, C. Hallacy, et al., “Learning transferable visual models from natural language supervision,” in International Conference on Machine Learning (ICML), 2021, pp. 8748–8763.
[24] R. Zhang, P. Isola, A. A. Efros, et al., “The unreasonable effectiveness of deep features as a perceptual metric,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2018, pp. 586–595.