vispy/vispy — pull request #572 by lcampagn (2014-09-17 15:43:12+00:00)
Title: Magnify

Just a fun demo, although I could conceive of some real-world uses.

Questions:
* Should the transform classes be moved to `scene.transforms.nonlinear`, or should they live here in the demo?
* This implements camera subclasses as a way to insert the transform at exactly the correct spot in the scenegraph (it needs to be added to the beginning of `viewbox.scene.transform`, which is set by the camera). Would it make sense to just add an option to the base camera class that allows addition of any arbitrary transforms so that subclassing is not necessary here?

Notes:
* Use mouse wheel to change the lens magnification
* This is not a post-processing gimmick; the magnification is implemented as a nonlinear transform.
* There is a bit of noise apparent in the grid line and image; this should be corrected by adding multisampling to those visuals.