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
Have you tried the cosm library?
The object for Cartesian to Polar conversion are: cartopol and poltocar
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…
Thanks for those links guys, I’ll check them out ASAP =)
late to this party but damn! that jcom.dataspace is one handy external…
C74 RSS Feed | © Copyright Cycling '74