Amphtml: [Story 360] Gyroscope default heading

Created on 27 Aug 2020  路  5Comments  路  Source: ampproject/amphtml

When gyroscope is enabled, default to the heading-end value.

pitch should always be natural. The ground should always be beneath the user in the experience.

cc @ampproject/wg-stories

High Priority Feature Request stories

Most helpful comment

BTW, shouldn't we use heading-end if provided, instead of heading-start ? When an animation is provided it's likely that the point of interest is at the end, besides it would be less jarring if the gyro is enabled afterwards. WDYT?

All 5 comments

Glad to see you're considering this 馃槂

This should be reset on page navigation, not on load, I think? Otherwise, you're not guaranteed to be looking in the correct direction when you actually navigate to the page.

The new scene-heading attribute could possibly solve this, or more precisely the new this.renderer_.setImageOrientation we introduced for it. We could update image orientation when starting the gyro, offsetting the scene heading by the current heading read by the sensor.

The new scene-heading attribute could possibly solve this, or more precisely the new this.renderer_.setImageOrientation we introduced for it. We could update image orientation when starting the gyro, offsetting the scene heading by the current heading read by the sensor.

100%
I think you did most of the work this in #30138 :)
Thanks so much Tom!

BTW, shouldn't we use heading-end if provided, instead of heading-start ? When an animation is provided it's likely that the point of interest is at the end, besides it would be less jarring if the gyro is enabled afterwards. WDYT?

I agree it's safe to assume heading-end is the point of interest. Good call.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aghassemi picture aghassemi  路  43Comments

vockalimo picture vockalimo  路  49Comments

retornam picture retornam  路  52Comments

ericlindley-g picture ericlindley-g  路  117Comments

lisotton picture lisotton  路  52Comments