Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
95 views
in Technique[技术] by (71.8m points)

android - VrPanoramaView angle update listener

How to get current rotation angle change event for VrPanoramaView?

I am building a simple 360 image viewer with VrPanoramaView with an angle icon that shows current angle of the 360 image.

enter image description here

As far as I see, there is no default "navigator" icon for VrPanoramaView, so I am adding manually but I am not able to simple get current rotation angle of 360 image.

There are two ways that image angle will be changed: gyroscope and touch/drag event. I beleive I can add my custom gyroscrope and touch event and manually call getHeadRotation but I am looking for something simple callback from the library.

I don't see any documentation regarding this.

P.S. I am not looking to update to the new Cardboard SDK, which I think is heavy for a simple 360 image viewer. Plus, I don't see any sample code for using Cardboard SDK, other than google's own repo.

question from:https://stackoverflow.com/questions/65880663/vrpanoramaview-angle-update-listener

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...