Equirectangular to Rectilinear (Gnomonic) 360° Video mapping with Gen/Jitter
May 04 2022 | 6:42 pm
Hey,
for 3 days now I've been trying to adapt the equation on this site, to convert an equirectangular 360° video into a rectilinear/ normal FOV:
http://blog.nitishmutha.com/equirectangular/360degree/2017/06/12/How-to-project-Equirectangular-image-to-rectilinear-view.html
I've been rebuilding the math from this equation (I think the “inverse equation” is the right one) in a gen patch within a jit.gl.pix object, but I can't get it to work. The resulting image never really looks like a normal FOV. Today I tried to interpret the python code, which was linked on that side and is based on that equation.
Here is the direct link: https://github.com/NitishMutha/equirectangular-toolbox/blob/master/nfov.py
But again with no success.
I might have the wrong assumption on what “lambda0” and “phi1” is suppose to be. I thought ist should both be 0 because it is pointing to the “S point”. I might be wrong, but entering other vaules didn't help.
I'm quite new to Max and Jitter + Gen in particular. Usually searching this forum and adapting some patches works when i get stuck, but this time I didn't really find an existing solution.
Is maybe someone able to point me in the right direction or knows what I did wrong?