3DTrajMaster: Mastering 3D Trajectory for Multi-Entity Motion in Video Generation

Xiao Fu, Xian Liu, Xintao Wang, Sida Peng, Menghan Xia, Xiaoyu Shi, Ziyang Yuan, Pengfei Wan, Di Zhang, Dahua Lin

Controllable video generation has made massive strides, allowing users to guide video synthesis using text, sketches, or bounding boxes. However, current motion control methods rely almost entirely on 2D signals, such as 2D trajectories or pixel-space bounding boxes. The real world is 3D, and 2D signals fundamentally struggle to express depth (the z-axis), 3D rotation (pitch, yaw, roll), and complex occlusions. For instance, if you want to generate a video of a car turning a corner while a pedestrian walks in front of it, 2D controls often result in blended, physically impossible artifacts.

To tackle the challenge of injecting true 3D, multi-entity motion control into video diffusion models, researchers have introduced 3DTrajMaster. This novel framework for text-to-video generation allows users to precisely control the 3D motion of multiple objects simultaneously using 6 Degrees of Freedom (6DoF) trajectories.

Complex 3D trajectories with 6DoF control

How 3DTrajMaster Works

The authors build upon a latent text-to-video diffusion transformer (DiT) and introduce three key technical innovations to enable robust 3D control without degrading the underlying video model's visual quality:

  1. 3D-Motion Grounded Object Injector: This is the core architectural contribution. It takes text descriptions for multiple entities and pairs them with their respective 6DoF pose sequences (3D location and rotation). The text and pose embeddings are combined and fed into a gated self-attention layer. This "plug-and-play" module is inserted into the frozen base video model to guide motion without destroying the model's pre-trained knowledge.
  2. Video Domain Adaptor (LoRA): Because real-world 3D motion data is scarce, the model is trained on synthetic video game data. To prevent the diffusion model from permanently adopting a "video game style," the authors train a LoRA module alongside the object injector. This LoRA acts as a sponge, absorbing the synthetic visual style during training. During inference, its influence is dialed down, preserving the photorealism of the base model.
  3. Annealed Sampling: During the inference phase, the 3D trajectory guidance is applied strongly in the early denoising steps to establish the physical layout and motion. In the later steps, the trajectory guidance is dropped, allowing the base model to focus entirely on refining high-frequency visual details.

The 360°-Motion Dataset

Because existing datasets lack accurate 6DoF annotations for diverse, non-rigid objects (like animals), the authors built a custom synthetic dataset using Unreal Engine (UE). They combined 70 animated 3D assets (humans, animals) with GPT-generated 3D trajectories. They rendered 54,000 video clips using 12 evenly spaced cameras across diverse 3D environments, such as cities, forests, and deserts.

Key Insights and Results

3DTrajMaster demonstrates that forcing the model to understand 6DoF naturally handles z-buffering and occlusion. This allows a person to seamlessly walk in front of an animal without the pixels merging—a scenario where 2D controls typically fail.

Multi-entity generation handling complex depth and occlusion
  • Quantitative Superiority: 3DTrajMaster significantly outperforms existing state-of-the-art baselines (MotionCtrl, Tora, Direct-a-Video) in trajectory accuracy. For multi-entity scenarios, it achieved a Translation Error of 0.390m and a Rotation Error of 0.272°. The next best baseline lagged far behind at 1.391m and 0.942°, respectively.
  • Qualitative Success: The model successfully generated complex motions like a 180° turn-around and continuous inward 90° turns. In contrast, 2D baselines simply shifted objects linearly across the screen.
  • Decoupling Motion from Style: The use of the Video Domain Adaptor proves you can teach a model "physics" using synthetic data while keeping its "art style" anchored in the real world. Removing this adaptor or the Annealed Sampling strategy caused massive spikes in Frechet Video Distance (FVD), proving their necessity.
  • Negative Prompts for Motion: Interestingly, using "static motion" as a negative prompt actually amplified the intended movement of the entities, confirming the model learned a true latent representation of 3D motion rather than just memorizing pixels.

Limitations and Future Work

While groundbreaking, 3DTrajMaster has a few limitations. The system allows for fine-grained editing of humans but struggles with animals due to a lack of diverse, granular 3D animal assets in the training data. Additionally, the model currently controls global trajectories (moving from point A to B) but does not yet model fine-grained local interactions well, such as a human specifically reaching out to pet a dog. Finally, the model is currently capped at generating about three controlled entities at a time.

Future work will likely focus on scaling up foundation video models and creating larger, more diverse paired 4D datasets to solve entity limits and enable the modeling of complex local interactions.

Summary updated

BibTeX
@inproceedings{fu2025dtrajmaster,
  author = {Xiao FU and Xian Liu and Xintao Wang and Sida Peng and Menghan Xia and Xiaoyu Shi and Ziyang Yuan and Pengfei Wan and Di ZHANG and Dahua Lin},
  title = {{3DTrajMaster: Mastering 3D Trajectory for Multi-Entity Motion in Video Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Gx04TnVjee},
}
Figure