# Please help us understand the Internal/External Camera Parameters export

**URL:** <https://forums.unrealengine.com/t/please-help-us-understand-the-internal-external-camera-parameters-export/712503>\
**Category:** Asset Creation\
**Tags:** realityscan\
**Created:** [May 5, 2022, 8:40am UTC](https://forums.unrealengine.com/t/please-help-us-understand-the-internal-external-camera-parameters-export/712503 "2022-05-05T08:40:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 5, 2022, 9:52am UTC](https://forums.unrealengine.com/t/please-help-us-understand-the-internal-external-camera-parameters-export/712503/2 "2022-05-05T09:52:37Z")

</div>

Hi [Josh33357](https://forums.unrealengine.com/hc/en-us/profiles/381341774580-Josh33357),

regarding to question 1, it is considered in the camera coordinate system, where X is pointing to the plane nose (or north), Y is pointing to right wing and Z is pointing down. Then heading/yaw is around Z axis, pitch is around Y axis and roll is around X axis.

Default direction looks like this (in a local world coordinate system, where Y is pointing to north):

Yaw = 0, image is oriented to Y (upper side of image is oriented that way)  
Pitch = 0, image is looking down  
Roll = 0, image is parallel with X axis

Regarding to question 2 and 3, the YPR are considered in camera coordinate system, as I mentioned in previous answer (X to north, Y to east and Z down).

Regarding to question 4, this is how you can compute the rotation matrix in JavaScript:

&nbsp;&nbsp;&nbsp; EulerRotation: function (y, p, r) {

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var cx = Math.cos(LA.Deg2Rad \* r);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var cy = Math.cos(LA.Deg2Rad \* p);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var cz = Math.cos(LA.Deg2Rad \* y);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var sx = Math.sin(LA.Deg2Rad \* r);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var sy = Math.sin(LA.Deg2Rad \* p);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var sz = Math.sin(LA.Deg2Rad \* y);

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return [cx \* cz + sx \* sy \* sz, -cx \* sz + cz \* sx \* sy, -cy \* sx,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cy \* sz, -cy \* cz, -sy,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cx \* sy \* sz - cz \* sx, cx \* cz \* sy + sx \* sz, -cx \* cy];

&nbsp;&nbsp;&nbsp; },

&nbsp;

---

_[View the full topic](https://forums.unrealengine.com/t/please-help-us-understand-the-internal-external-camera-parameters-export/712503)._
