Fisheye Lens Shader for Renderman

A near clip-plane shader that uses raytracing to provide a simple fisheye lens for the camera.

Below is a link to the source code for the shader. I use three renderers (BMRT, Entropy, and PRman), each with its own slightly different syntax for doing raytracing. Hence, I have three slightly different versions of the shader and the example RIB files below. The diffferences are just a couple of lines. The current version is 1.2, updated 2/24/05. See the notes in the source code for usage details.

*** Please note that version 1.1 contained a small error. Update to 1.2. ***

Here is the older version 1.0, which was used with BMRT:


Example #1 - Images and RIB Files

Image Description Files
This image is of a normal scene. It is just a bunch of colored polygons placed in front of the camera. This RIB file works with all of the renderers.
no_lens.rib
no_lens.jpg
Here is the same scene viewed using the fisheye lens shader. The fisheye lens angle is set to 90 degrees, which is the same angle as the standard camera in the above scene.
with_lens_90_bmrt.rib
with_lens_90_entropy.rib
with_lens_90_prman.rib
with_lens_90.jpg
Here is the same scene viewed using the fisheye lens shader with the fisheye lens angle is set to 120 degrees.
with_lens_120_bmrt.rib
with_lens_120_entropy.rib
with_lens_120_prman.rib
with_lens_120.jpg
Here is the same scene viewed using the fisheye lens shader with the fisheye lens angle is set to 150 degrees.
with_lens_150_bmrt.rib
with_lens_150_entropy.rib
with_lens_150_prman.rib
with_lens_150.jpg
Here is the same scene viewed using the fisheye lens shader with the fisheye lens angle is set to 180 degrees.
with_lens_180_bmrt.rib
with_lens_180_entropy.rib
with_lens_180_prman.rib
with_lens_180.jpg


Example #2 - Images and RIB Files

Image Description Files
Here is a scene that shows the full extent of the fisheye lens. It is simply a hemispherical arrangement of colored polygons around the camera. The fisheye lens angle is set to 180 degrees.
fisheye_180_bmrt.rib
fisheye_180_entropy.rib
fisheye_180_prman.rib
fisheye_180.jpg
Here is the same scene with the fisheye lens angle is set to 150 degrees.
fisheye_150_bmrt.rib
fisheye_150_entropy.rib
fisheye_150_prman.rib
fisheye_150.jpg
Here is the same scene with the fisheye lens angle is set to 120 degrees.
fisheye_120_bmrt.rib
fisheye_120_entropy.rib
fisheye_120_prman.rib
fisheye_120.jpg
Here is the same scene with the fisheye lens angle is set to 90 degrees.
fisheye_90_bmrt.rib
fisheye_90_entropy.rib
fisheye_90_prman.rib
fisheye_90.jpg


Main Visualization Page Home Page

Page last updated on: February 24, 2005