Frank Summers Shaders

What's on this page:

Email Frank Summers

Simple fisheye lens shader. Uses near clip-plane and raytracing (trace function).


User must define a square polygon just beyond the near clip-plane distance. Generally, this polygon fills the entire viewing frustrum.

This shader is applied to the polygon and the user should specify the polygon placement and the maximum angle of the lens.

The result is a circular lensed image on the square polygon, with black corners. The angular distribution is like polar graph paper, with angle increasing linearly with distance from the center.

Corners of polygon are assumed to be (in camera space):

[ scale, scale, zdistance]

[-scale, scale, zdistance]

[-scale, -scale, zdistance]

[ scale, -scale, zdistance]

See shader for more description.

no_lens.rib Sample RIB

Any comments or suggestions? Send them to: rib AT renderman DOT org

Parent: RMRShaders

Siblings: BMRTShaders AKShaders DPShaders DWShaders EMShaders FGShaders IDShaders DWShaders KMShaders JBUMShaders JMShaders LGShaders LCShaders MBShaders MRShaders MKShaders PQShaders RCShaders SHWShaders SWShaders XMBShaders SIG91 SIG2000 SIG2001 TLShaders

RenderMan is a registered trademark of Pixar. The RenderMan Repository is maintained by Pixar's RenderMan Products Group