BlueBrain / Brayns

Visualizer for large-scale and interactive ray-tracing of neurons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose camera as translation vector + rotation quaternion

rolandjitsu opened this issue · comments

Currently the camera is exposed as {lookAt, origin, up}, but this makes it difficult to work with when rotation operations are needed.

We should instead expose the camera as translation vector + rotation as a quaternion. As a consequence, rotation and translation operations can be achieved easier from the Python and/or JavaScript clients.

{
  "translation": [0, 0, 1],
  "rotation": [0, 1, 0, 3.14]
}

Can we close this one?