Not all mobile devices and browsers correctly report the device orientation. According the the World Wide Web Consortium (W3C) Working Draft 1 from December 2011 "DeviceOrientation Event Specification" the orientation is given by three angles representing compass direction (α), tilt (β), and rotation (γ). The 0 values for these is with the device flat, screen up, pointed North.
"Creating 3D Scenes for the Browser", a presention to Digital Designers Los Angeles and Digital Media Artists Los Angeles on 20 Jan 2015. The PDF of the presentation with slides and notes is available. This is the final version.
The presentation focuses on the capabilities and reasons for using X3D for Serious VR & 3D graphics .
Getting X3D to display on your webpage is very simple. The simpliest example can be accomplished in three easy steps. These are summarized as
In a previous post I showed how a scene could be displayed in a browser and viewed stereoscopicly with Google Cardboard. This post describes a more efficient means of creating the display. In both cases, the browser screen is split in half with slightly different viewpoints so the eyes/brain combination views the result with depth.