Camera Control for Text-to-Image Generation via Learning Viewpoint Tokens

Xinxuan Lu, Charless Fowlkes, Alexander C. Berg

TL;DR

The authors introduce a novel framework that embeds explicit, fine-grained 3D camera control directly into text-to-image prompts using learned parametric camera tokens. By training on a hybrid dataset of 3D renderings and photorealistic augmentations, their model achieves state-of-the-art viewpoint accuracy and seamlessly generalizes to unseen object categories without sacrificing image quality or prompt fidelity.

Figure 1. Our model vs. Gemini 2.5 Flash Image (Nano Ba- nana) [9]. Our encoded camera viewpoint tokens enable precise camera pose control, while Nano Banana often fails despite de- tailed descriptions: “angled diagonally to show its rear and left side from a rear three-quarter view (approx. 220° azimuth), with the camera slightly below eye level (10° elevation). It occupies approximately 60% of the image width, positioned in the center slightly to the left.” See Supp. B for more results. Objects shown in prompts and 3D rendering column are only shown to illustrate the desired viewpoints.

What Problem Does This Paper Address?

While modern text-to-image (T2I) models excel at generating realistic imagery from complex semantic descriptions, they are notoriously bad at handling precise geometric instructions. Prompts like "30° left-side view" or "45° top-down perspective" typically result in incorrect poses, or cause the model to collapse back to standard, front-facing canonical angles. Natural language is simply too ambiguous and discrete for fine-grained spatial coordination.

Prior attempts to fix this either require explicit 3D reference inputs at inference time (like depth maps or edges), or they overfit heavily to specific object categories and are limited to a single rotation axis (like azimuth-only control). The authors set out to give text-vision latent spaces an explicit, multi-axis 3D camera structure that generalizes across diverse and even unseen objects.

Methods

The core idea is to translate explicit camera parameters into a "viewpoint token" that can sit right alongside standard text tokens in a T2I model's input space.

  1. Viewpoint Parameterization: The camera viewpoint is defined using a factorized 5-parameter representation: azimuth ($\theta_{\text{az}}$), elevation ($\theta_{\text{el}}$), radius ($r$), pitch ($\theta_{\text{pitch}}$), and yaw ($\theta_{\text{yaw}}$).
  2. Token Encoding: To handle periodicity and normalize the inputs, the azimuth is encoded via sine and cosine functions. This 6D vector is then passed through a lightweight 3-layer MLP (Multi-Layer Perceptron) to generate a viewpoint embedding token ($\mathbf{e}_{\text{view}}$).
  3. Joint Fine-Tuning: This camera token is inserted adjacent to the object description in the text prompt. The authors then jointly fine-tune the T2I backbone (primarily using the multimodal model Harmon, but also validated on Stable Diffusion 2.1 and 3.5) alongside the MLP encoder.
Figure 3. Architecture overview. An MLP encoder maps camera parameters to a token embedding that is processed jointly with text tokens for viewpoint-conditioned image generation. We fine-tune the image generation model [7, 34, 42] jointly with the camera token encoder. The rendered red car in the prompt is only shown to illustrate the desired viewpoint.

Datasets

To train the model without causing it to "forget" how to render complex scenes, the authors designed a strategic two-part dataset:

  • Large Rendered Dataset: Comprises 3,111 objects across four categories (animals, vehicles, people, furniture) sourced from TexVerse. Each object was canonically aligned and rendered from 120 random viewpoints, yielding ~373K images with transparent backgrounds for strong geometric supervision.
  • Photorealistic Augmented Dataset: To maintain background diversity and realism, 800 high-quality objects were rendered at 20 random viewpoints and then edited using Gemini 2.5 Flash Image (referred to as Nano Banana) to add diverse backgrounds and textures while preserving the exact 3D pose (~6.6K images).

For evaluation, they utilized 11 "easy" objects from prior benchmarks and 26 "diverse" objects (spanning unseen categories and mythical creatures), totaling 5,550 test samples.

Key Insights and Ideas

  • Factorized Geometric Representations: Unlike previous methods that accidentally couple an object's appearance with its orientation (e.g., assuming only lions can be viewed from the side), this method's viewpoint tokens learn pure geometry. This allows the camera control to transfer flawlessly to entirely unseen or fictional object categories (e.g., "a car made of vines").
  • The Synergy of the Two-Part Dataset: Relying solely on 3D renderings causes T2I models to lose their photorealistic capabilities. Including a small, high-quality fraction of background-augmented images acts as a regularizer, preserving global scene understanding and text adherence.
  • Global Scene Coherence: Because the model learns viewpoint conditioning globally rather than through localized attention masking, it naturally adjusts the entire composition—such as shifting the horizon line realistically when camera elevation changes.

Key Results

  • Viewpoint Accuracy: The proposed method significantly outperformed baselines like Compass Control and Stable-Virtual-Camera across all five camera parameters. It achieved a mean azimuth error of 18.11° on the full test set, compared to Compass Control's 31.07°.
  • Prompt Alignment: On the GenEval benchmark and CLIP similarity metrics, the model retained high prompt fidelity, avoiding the common pitfall where adding spatial control degrades the model's ability to render the correct colors or objects.
  • Robustness to Extreme Angles: In challenging back-view and high-elevation tests, the framework maintained superior accuracy, whereas alternative token-based methods degraded sharply.

Limitations and Future Work

Despite its success, the model still inherits strong structural priors from its T2I backbones. For instance, when prompted with famous landmarks (like the "Taj Mahal"), the model strongly resists extreme camera angles and favors eye-level, horizontally centered views. Additionally, the authors noted occasional quality degradation in fine details like human faces.

Future work includes expanding the dataset beyond its current elevation limits ($0^\circ$ to $45^\circ$) and incorporating camera roll rotations and intrinsic parameters.

Summary updated

BibTeX
@inproceedings{lu2026camera,
  author = {Xinxuan Lu and Charless Fowlkes and Alexander C. Berg},
  title = {{Camera Control for Text-to-Image Generation via Learning Viewpoint Tokens}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=oUCWAJsx6C},
}
Figure