pannellum icon indicating copy to clipboard operation
pannellum copied to clipboard

Conversion between the angles

Open SANJAYSGOWDA opened this issue 8 months ago • 1 comments

A help is needed, I have some data given by the clients and I am trying to convert the omega, phi and Kappa to Head, Roll and pitch how may I do it?

SANJAYSGOWDA avatar Apr 11 '25 05:04 SANJAYSGOWDA

You've provided three Greek letter variable names. I can assume they're rotation angles but without any information about your coordinate system or rotation order, they're entirely meaningless.

As discussed in #1114, Pannellum uses Euler angles with a YXZ order, where pitch is X, yaw is Y, and roll is Z. This is for if you're trying to set the view direction in Pannellum. And you're already commented on #1124, which may or may not be the same thing, since, again, you haven't defined your variables.

If instead you're trying to set the orientation of the panorama itself using the horizonPitch and horizonRoll parameters to level the horizon, Pannellum uses the same convention as Photo Sphere XMP metadata.

mpetroff avatar Apr 12 '25 15:04 mpetroff