Part of the Khronos Group
OpenGL.org

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
    Posts
    1

    Is there a known projection shader for a panini projection?

    http://tksharpless.net/vedutismo/Pannini/



    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:

    https://github.com/shaunlebron/blink...ses/panini.lua

    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:	20 
Size:	6.1 KB 
ID:	2764  

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,828
    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
  •