# Exact camera rotation matrix and rotation order used by RealityCapture

**URL:** <https://forums.unrealengine.com/t/exact-camera-rotation-matrix-and-rotation-order-used-by-realitycapture/2676203>\
**Category:** Pipeline & Plugins\
**Tags:** question, realityscan\
**Created:** [November 18, 2025, 4:11pm UTC](https://forums.unrealengine.com/t/exact-camera-rotation-matrix-and-rotation-order-used-by-realitycapture/2676203 "2025-11-18T16:11:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JorleWeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JorleWeb](https://forums.unrealengine.com/u/JorleWeb)\
**Post date:** [November 18, 2025, 4:11pm UTC](https://forums.unrealengine.com/t/exact-camera-rotation-matrix-and-rotation-order-used-by-realitycapture/2676203/1 "2025-11-18T16:11:20Z")

</div>

Hi everyone,

I’m trying to visualize RealityCapture camera poses in my own tool (Three.js) and I’d like to match RealityCapture’s camera orientation exactly.

For that, I need to know the **exact form of the rotation matrix** that RealityCapture uses, expressed explicitly with `cos`/`sin` of the three angles, and also the **rotation order** (which axis is rotated first, second, third).

Concretely, my questions are:

1. **Which rotation order does RealityCapture use for its three angles?**

2. **What is the explicit 3×3 rotation matrix in terms of the three angles?**  
For example, in the style:

3. **Are these angles interpreted as rotations that map:**

I’m not looking for a general Euler-angles explanation, but specifically for the **RealityCapture definition** : rotation order and the precise matrix entries.

If someone from the RC team or anyone who has already reverse-engineered/verified this could post the exact formulas, that would be super helpful.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [November 19, 2025, 8:22am UTC](https://forums.unrealengine.com/t/exact-camera-rotation-matrix-and-rotation-order-used-by-realitycapture/2676203/2 "2025-11-19T08:22:53Z")

</div>

You can check this post about it: [Importing camera alignment in THREE.JS](https://forums.unrealengine.com/t/importing-camera-alignment-in-three-js/712280)

It looks like there is some answer in the link from the first comment.

There you can find also some additional information: [Camera Parameters in the output XMP file](https://forums.unrealengine.com/t/camera-parameters-in-the-output-xmp-file/2004728)

> [@Knowledge Base: Registration export and camera orientations](https://forums.unrealengine.com/t/knowledge-base-registration-export-and-camera-orientations/682588):
>
> Registration export and camera orientations In RealityCapture we define camera orientations this way: Yaw - prior rotation angle Yaw (around Z axis) Pitch - prior rotation angle Pitch (around Y axis) Roll - prior rotat… [https://dev.epicgames.com/community/learning/knowledge-base/7yvm/capturing-reality-registration-export-and-camera-orientations](https://dev.epicgames.com/community/learning/knowledge-base/7yvm/capturing-reality-registration-export-and-camera-orientations)

> [@Camera Coordinate System Explanation](https://forums.unrealengine.com/t/camera-coordinate-system-explanation/712595):
>
> Hello, My question is similar to [this](https://forums.unrealengine.com/hc/en-us/community/posts/4814175050652-Please-help-us-understand-the-Internal-External-Camera-Parameters-export) post. Given the camera output .csv file: #name,x,y,alt,heading,pitch,roll,f,px,py,k1,k2,k3,k4,t1,t2 DJI\_20220221103904\_0022.JPG,-5041986.508798251,2573482.020935406,-2929105.142556032,-148.4200306549068,10.20497551291449,118.7049066788339,34.98005589922394,2.08370424314095e-003,8.261463622613804e-003,-4.472883919490048e-002,4.299250744468713e-002,-0.1293881883164149,0,0,0 DJI\_20220221103956\_0044.JPG,-5041974.610274723,2573499.802754866,-2929110.290966901,…
