viro icon indicating copy to clipboard operation
viro copied to clipboard

Help: ViroButton position from yaw and pitch radius

Open vlkpa opened this issue 4 years ago • 3 comments

Hi guys, in our admin web/browser app for creating static buttons in 360 images (for navigation/tour between 360 images) we use this tool Pannellum In mobile app we use React Viro as a view of the tour = 360 images + buttons as links. In Pannellum buttons/hotspots are positioned in 360 images with yaw and pitch (in radians). ViroButton uses for positioning Cartesian position as [x,y,z] . Is there a way how to convert this yaw and pitch into Cartesian cooridinates?

vlkpa avatar May 31 '21 10:05 vlkpa

Pls use the transformation matrix mentioned here,

https://stackoverflow.com/questions/1568568/how-to-convert-euler-angles-to-directional-vector

rollingstone avatar May 31 '21 11:05 rollingstone

Yes, I saw this answers and tried some solutions but without success.

vlkpa avatar Jun 01 '21 05:06 vlkpa

@vlkpa can you provide more information about the issue you are having? I.E. viro version, maybe a sample repo or some more context as to the issue you are having?

robertjcolley avatar Dec 18 '21 18:12 robertjcolley

Closing due to no update.

robertjcolley avatar Jan 29 '24 22:01 robertjcolley