AlloSphere-Research-Group / AlloSystem

AlloSystem is a cross-platform suite of C++ components for building interactive multimedia tools and applications.
http://mat.ucsb.edu/allosphere/software.php
BSD 3-Clause "New" or "Revised" License
65 stars 22 forks source link

Vbap changes #67

Closed nathanw15 closed 8 years ago

nathanw15 commented 8 years ago

Several files relating to vbap have been modified. I have added vbap.cpp as an example for testing and visualizing different speaker arrangements.

The previous algorithm used for finding triplets of speakers breaks down in the case of the al_AlloSphereSpeakerLayout.hpp because the speaker elevations in each ring are equal. Triangles with speakers of equal elevation are removed and triangles with sides of equal elevation with a speaker in between are also removed. This leaves holes in the top and bottom of the sphere that still needs to be addressed.

One change to note is the vec() function on line 97 of al_Speaker.hpp where I changed the calculation to use the spherical coordinate system. This could impact others using al_Speaker.

LancePutnam commented 8 years ago

Note that your editor is inserting spaces for tabs. I would suggest we don't mix the two since things can look funny in some viewers like github which uses 8 space/tab.