Hello,

haven’t posted stuff here for a while, but I’m still alive

I’m currently trying to visualize some cameras that I get from a photogrammetry suite in my playcanvas viewer, however I’m stuck on the coordinate conversion with my limited math skills and their sparse documentation Would be glad if somebody could help me out :>

I have a json object containing all my cameras, each with a 3x3 rotation matrix + position (at least I think it’s a 3x3 matrix).

```
"transform": {
"rotation": [
"0.9999193845748845",
"-0.0067983904445017788",
"0.010724096173963507",
"0.0068467717389110727",
"0.99996651966619976",
"-0.0044812122715727218",
"-0.010693272096957062",
"0.0045542764553496541",
"0.99993245396768116"
],
"position": [
"-0.010643984874932972",
"-0.0041727243704965328",
"0.033338095005651464"
]
```

Using the center coordinates for positioning my cameras works, but I am stuck on converting the rotation data into a Quat, or Euler angles, so that I can apply it to my playcanvas entity.

pc.Quat has a function “setFromMat4“ but none for a Mat3.

Any ideas?

Greetings,

Martin