Forums > Jitter

Displaying an ambisonically panned sound source on a jit.gl sphere

May 19, 2010 | 11:59 pm

Hello everyone,

I’m attempting to write a patch which displays a 3D plot of the position of an ambisonically panned sound source around a central receiver point. Apologies in advance but my knowledge of jit.gl objects is basic at best.

I am trying to write a patch which displays a small solid sphere (representing the sound source) on a larger opaque sphere (representing the unit sphere). I need the smaller sphere to move around with the paramaters azimuth and elevation (the radius would be fixed).

So far I’ve managed to display both of the spheres but I cant seem to control them in the way I would like. Can anyone give me a pointer to an object they think could help? I’m assuming I need some sort of cartesian to spherical coordinate converter and I’ll have to be careful about which coordinate system I use.

Thanks in advance for any help

Laird0



efe
May 20, 2010 | 5:59 am

Have you tried the cosm library?
http://www.allosphere.ucsb.edu/cosm/
The object for Cartesian to Polar conversion are: cartopol and poltocar


May 20, 2010 | 10:51 am

I haven’t fully explored the cosm library yet, but be aware that cartopol and poltocar objects already exist in Max5 so there is no need for the cosm library if that is all you want it for.

If you want less of a challenge than adapting those built-in functions to your purposes, you might also try the rather sexy jcom.dataspace – part of the Jamoma 0.5 distribution which is effectively a "universal" converter. The nice thing about that object is that it will convert data triplets (x, y, z -> a, e, d) Nice…


May 21, 2010 | 1:14 pm

Fantastic,

Thanks for those links guys, I’ll check them out ASAP =)



dtr
November 8, 2012 | 7:14 pm

late to this party but damn! that jcom.dataspace is one handy external…


Viewing 5 posts - 1 through 5 (of 5 total)