Projections & SSAA

Forum Thread

Camera Projection Rendering Toolkit (CPRT) is a plugin that will help you to :
- achieve wide field of view perspective with advanced perspective techniques (up to 160°),*
- add Super-Sampling Anti-Aliasing (SSAA),**
- use oblique orthographic projections as in classic RPG or strategy games (Top-Down, Isometric ...),
- take high resolution screenshots.***

This plugin is only compatible with Unity Built-in Render Pipeline, and is not intended for VR. Also, oblique orthographic projections are not compatible with deferred rendering, but the plugin features a Pseudo-orthographic projection which allows you to work with a long distance perspective to mimic an orthographic projection in deferred rendering.

CPRT introduces Stereospherical and Pannini perspective technique that solve the deformation that can occur with a wide field of view on objects far from the center of the screen:
- the Pannini projection (Inspired by the painter Giovanni Paolo Pannini), compensate horizontal perspective distortion and gives a pretty good feeling of being small relative to the architectural structures.
- the Stereospherical projection ("fisheye"), which compensate perspective distortion at all borders.

If you're not looking for perspective, this plugin can produce oblique orthographic projections and will help you give a more classic look to your game/project, for example: Isometric (strategy games), Top-Down (old school RPG).

The plugin allows you to add SSAA to take high resolution screenshots and to add high quality Anti-Aliasing even in deferred rendering (which isn't supported by Unity's MSAA). ***
It can also pixelize the image to give it a classic "Quake-like" feel.


* expect fps drops if you use very wide field of view in real time (110° needs x1.36 SSAA for full quality).
** In real time, SSAA quality is currently limited to 2x, which is equivalent to a "better" MSAA 4x. It's quite enough for real-time purposes and can be improved with other AA techniques.
*** while taking screenshot, SSAA can use up to x64 samples. Screenshots resolution is limited to 16384x16384, it can be limited to 8192x8192 on lower tier hardware.


This package also includes :
- full C# and shader code
- PDF Documentation
- sample scenes with their models and textures (some sample scenes may be broken in the latest Unity versions, but all prefabs are working).