4
\$\begingroup\$

I have read about the pannini projection, which involves (I think) projecting a scene onto a cyclinder instead of a rectangle.

How can I implement this projection in a vertex shader?

Blinky is using lenses and globes, but I don't think it's what I am looking for. The lua script for the pannini projection is not commented https://github.com/shaunlebron/blinky/blob/master/game/lua-scripts/lenses/panini.lua

As explained on The Pannini Projection, it works (if I understand it well), by projecting geometry on a cylinder, and then unrolling that cylinder on screen.

Diagram illustrating Pannini projection from a floor map

\$\endgroup\$
2
  • \$\begingroup\$ If you did ray tracing, you'd just need to shoot each ray in a direction determined by the cylindrical frustum. \$\endgroup\$
    – Exilyth
    Commented Sep 8, 2018 at 23:28
  • \$\begingroup\$ Honestly I thought this had to do with projecting a bread asset somehow. :D \$\endgroup\$
    – Almo
    Commented Jan 5, 2022 at 20:03

0

You must log in to answer this question.

Browse other questions tagged .