Re: The cam, the object … a trigonometric love story

Julien Bayle

hello maxers,
here is what I made, finally.

it calculates azimuth/elevation/distance for a matrix of objects' position, relatively to the cam position & orientation.

I have a curious behaviour when cam is facing straight up or down but I guess it is the projection I'm making with vec 0. 1. 0.

I'll probably have to improve it later.
but it works fine & make its job.

just wanted to share it with you.

Here is the jit.gen code:

– Pasted Max Patch, click to expand. –


  1. aed.PNG
Jun 18, 2012 at 9:59am #175985