cs.CVApr 10, 2026

Rays as Pixels: Learning A Joint Distribution of Videos and Camera Trajectories

Authors: Wonbong Jang, Shikun Liu, Soubhik Sanyal, Juan Camilo Perez, Kam Woh Ng, Sanskar Agrawal, Juan-Manuel Perez-Rua, Yiannis Douratsos, 

Organizations: Meta AI, London, United Kingdom

Abstract

Recovering camera parameters from images and rendering scenes from novel viewpoints have been treated as separate tasks in computer vision and graphics. This separation breaks down when image coverage is sparse or poses are ambiguous, since each task depends on what the other produces. We propose Rays as Pixels, a Video Diffusion Model (VDM) that learns a joint distribution over videos and camera trajectories. To our knowledge, this is the first model to predict camera poses and do camera-controlled video generation within a single framework. We represent each camera as dense ray pixels (raxels), a pixel-aligned encoding that lives in the same latent space as video frames, and denoise the two jointly through a Decoupled Self-Cross Attention mechanism. A single trained model handles three tasks: predicting camera trajectories from video, generating video from input images along a pre-defined trajectory, and jointly synthesizing video and trajectory from input images. We evaluate on pose estimation and camera-controlled video generation, and introduce a closed-loop self-consistency test showing that the model's predicted poses and its renderings conditioned on those poses agree. Ablations against Plücker embeddings confirm that representing cameras in a shared latent space with video is subtantially more effective.

Figures & tables

Explore similar work

CardsList
  1. WorldForge V2: Eliciting Camera-Trajectory Alignment in Video Diffusion Models

    Oct 22, 2026Chenxi Song, Yanming Yang, Tong Zhao +3Camera-Controlled Video GenerationTrajectory-Guided Video Generation

  2. PartiCam: Camera Controlled Video Generation with Reward Guidance

    Sep 30, 2026Amine Ouasfi, Runjia Li, Junlin Han +3Diffusion Model GuidanceCamera-Controlled Video Generation

  3. Beyond Inpainting: Unleash 3D Understanding for Stable Camera-Controlled Video Generation

    Jan 15, 2026Dong-Yu Chen, Yixin Guo, Shuojin Yang +2Camera-Controlled Video GenerationVideo Diffusion Models