Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Is there a known projection shader for a panini projection?

  1. #1
    Newbie Newbie
    Join Date
    May 2018

    Is there a known projection shader for a panini projection?

    Basically a panini projection is projecting vertices onto a cylinder (if I get it right), which is then unrolled on screen.

    Here is how blinky, a quake mode, is doing is, using some LUA script:

    Not sure it's a real projection since it's using globes and lenses.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	120deg-panini-construction-3.jpg 
Views:	93 
Size:	6.1 KB 
ID:	2764  

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    The thing about non-linear projections is that the projection of a straight line isn't a straight line. So you can't project a triangle simply by projecting the vertices. Typically, you'd either use tessellation to get a sufficient approximation, or project onto the faces of a cube map and then project the cube map as a post-processing step using a fragment shader.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts