W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Audio-ISSUE-68 (AudioListenerOrientation): AudioListener.setOrientation vectors [Web Audio API]

From: Audio Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Wed, 16 May 2012 09:30:44 +0000
Message-Id: <E1SUaZA-0001U7-MG@tibor.w3.org>
To: public-audio@w3.org
Audio-ISSUE-68 (AudioListenerOrientation): AudioListener.setOrientation vectors [Web Audio API]


Raised by: Philip J├Ągenstedt
On product: Web Audio API


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
Received on Wednesday, 16 May 2012 09:30:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:04 UTC