3 ms·
All the translations your graphics card can perform are affine [1]. One effect of this is, that lines always stay lines. If you have a look at the pictures, you
by chronial 12y ago
All the translations your graphics card can perform are affine [1]. One effect of this is, that lines always stay lines. If you have a look at the pictures, you will see, that the Pannini projection does not preserve lines. So no – this can not be done with a view matrix.
[1] http://en.wikipedia.org/wiki/Affine_transformation#Properties http://en.wikipedia.org/wiki/Affine_transformation#Propertie...
- jokoon 12y agoCan't it be done just with a shader ? Why did he use quake to implement it ?
- mrhyperpenguin 12y ago>Can't it be done just with a shader ? Yep. If you look at the "How?" and "Performance vs Quality" sections, you can see that you need to render the scene six times to get the surrounding environment, so all you would just need to do is make a shader for the projection[0]. (Rendering the scene six times is pretty common in graphics in order to generate light probes for dynamic lighting and global illumination.) I suspect with a modern GPU implementation (Vulkan) and some other minor optimizations, this could run pretty easily in real-time. [0] - http://tksharpless.net/vedutismo/Pannini/panini.pdf http://tksharpless.net/vedutismo/Pannini/panini.pdf