Sorry for bumping this, but I'm now trying to do this: http://www.orbiter-forum.com/showthread.php?t=18272
So I'm asking here: how to actually change cartesian to spherical?
Is this the right way to obtain that fish eye scope?
or, if you want, i can just give you the source for that... it's pretty simple actually
you might be overcomplicating... when i wrote that, i just used the flightpath vector as "prograde" - no need to convert too much stuff...
and the "fisheye" effect is as simple as normalize, zero out Z, then multiply X and Y over the radius of the scope....
i'll get you the source for that, don't sweat it :thumbup:
and of you wanna finish it up and release as an addon - by all means! do it! i'm pretty low on free time right now to do so myself.... you know how it is...:facepalm:
the math is all there... i'll post the code up when i get to work tomorrow morning, i left it on my computer there.....
or, search and see in the "TroposcopeMFD" thread of i haven't uploaded it already - i really think i did :hmm:
cheers!
---------- Post added at 09:49 PM ---------- Previous post was at 09:46 PM ----------
aha! i knew i had it here somewhere!
There ya go! :thumbup: