2024-04-17 19:33:56
Well, it turns out that the #godot 360 panorama #vr renderer I wrote still wasn't right.
It does a final image-warp to map from the perspective projection it renders into an equirectangular projection for playback, and the function was doing the opposite of the intended job.
I only thought it was working because it also had an eye-switching bug which fixed the eyes-rendering-wrong bug in the earlier code so really seemed to make things look better.
Only really became apparent as I got to rendering things other than test graphics.
That's fixed now, by reversing the mapping function.
Is it right now? Yes? Maybe. I dunno. I don't really understand the maths let alone why I had to reverse it.
Like the Doctor says, you can just #reverseThePolarityOfTheNeutronFlow, give it a try.
https://github.com/revpriest/godotPanoRenderer/commit/1c09ad2114035b10bfd0a6c35528afff54f55d47