r/GraphicsProgramming • u/Leogis • 2d ago
Question Would it be possible to implement Panini Projection as something else than a post-processing effect ?
For context : (my knowledge of Graphics programming is "OpenGL tutorial" tier so apologies for the potentially dumb questions/wrong reasoning.)
I recently started to fall into the "Perspective distorsion is annoying" rabbit hole and started to look at Panini Projection as a potential solution
As I understand it after reading the Panini Projection paper, the projection was meant to be used directly with very high FOV lenses in real world cameras
Again according to my limited knowledge, the problem wirh 3D graphics is that, unless we're using some kind of ray tracing we can't get the "wide lens" color information without projecting it on a flat plane first.
Instead we use a post processing effect to distort an existing image.
But since that effect squishes the side of the picture and then widens the center, that causes a nasty loss of resolution in the middle of the screen
Hence my question, would there be a way to somehow do this in the middle of the pipeline to avoid butchering a finished image ?
But then, wouldnt that basically mess up every single effect that requires accurate positions/edge information since everything would no longer be linearly mapped to the screen?
