This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17356 - (AudioListenerOrientation): AudioListener.setOrientation vectors
Summary: (AudioListenerOrientation): AudioListener.setOrientation vectors
Status: CLOSED FIXED
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: This bug has no owner yet - up for the taking
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 11:46 UTC by Philip Jägenstedt
Modified: 2014-10-28 17:16 UTC (History)
2 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2012-06-05 11:46:06 UTC
Audio-ISSUE-68 (AudioListenerOrientation): AudioListener.setOrientation vectors [Web Audio API]

http://www.w3.org/2011/audio/track/issues/68

Raised by: Philip Jägenstedt
On product: Web Audio API

https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioListener

The setOrientation method takes two vectors, front and up. No constraints are given for these, nor is their interpretation defined.

The gluLookAt function [1] is similar, and is defined as such:

"The viewing matrix created is based on an eye point eyex,eyey,eyez, a reference point that represents the center of the scene centerx,centery,centerz, and an up vector upx,upy,upz. The matrix is designed to map the center of the scene to the negative Z axis, so that when a typical projection matrix is used, the center of the scene will map to the center of the viewport. Similarly, the projection of the up vector on the viewing plane is mapped to the positive Y axis so that it will point upward in the viewport. The up vector must not be parallel to the line-of-sight from the eye to the center of the scene."

pyOpenGL [2] defines it in even more detail, with the actual transformation matrix being given.

The Web Audio API needs a similar level of detail.

[1] http://www.opengl.org/registry/doc/glu1.3.pdf
[2] http://pyopengl.sourceforge.net/documentation/manual/gluLookAt.3G.html
Comment 1 Chris Rogers 2012-11-14 21:19:17 UTC
Added informative text describing the interpretation of orientation.  The normative part (exact calculations) is already taken care of in the spatialization section.

Fixed:
https://dvcs.w3.org/hg/audio/rev/314a8115e5e6
Comment 2 Philip Jägenstedt 2012-11-15 09:26:01 UTC
LGTM
Comment 3 Olivier Thereaux 2014-10-28 17:16:40 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.