The lifview program will allow you to interactively view light fields. This page describes how to download and configure the viewer to load light fields directly from your web browser. After you have downloaded and configured the viewer, click here to see some sample light fields from the Stanford Light Fields Archive.
The lifview program is available for the following platforms:
chmod +x lifview
) and make sure its directory is
in your path.
All of our sample light fields are gzipped to save space (and transfer time). If you use Netscape as your web browser, you can configure it to automatically decompress a light field and launch the lifview program when you click on one of our links. To do this:
application/x-lif; lifview %s
enc=x-gzip exts=gz icon=internal-gopher-unknownTo find out where your mime.types file is located, look at the Options -> General Preferences -> Helpers menu.
"gzip"
program in your directory path
for this to work.
At this point, it should run the lifview program whenever you click on a light field. See the Running lifview section below for a brief primer on how to control the viewer.
This version of lifview will run on PCs running Windows 95 or NT.
To download lifview, hold down the shift key and click on the link
below:
Download lifview.exe v1.0 (PC)
All of our sample light fields are gzipped to save space (and transfer time).
If you use Netscape as your web browser, you can configure it to automatically launch the lifview program when you click on one of our links by making changes to the Options -> General Preferences -> Helpers menu.
All of our sample light fields are gzipped to save space (and transfer time). If you have WinZip (a popular shareware program), it can decompress .gz files. Otherwise, you can download gzip-1_2.exe , a self-extracting PC version of the free gzip program. After you download it, click on its icon to make it decompress itself.
We have not found a way to configure the PC version of Netscape to automatically decompress a file before launching an application (if you know how, tell us!). Instead, you can decompress the file by either:
Alternatively, the current version of the viewer will accept gzipped files and
perform the decompression for you. You must have "gzip.exe"
in
your directory path for this to work.
Once you have the icon for the uncompressed file, drag it onto the lifview program icon. This should launch the viewer. It may take a few seconds for the window to appear, especially for large files.
Usage: lifview [-v] [-size <x> <y>] [-zoom <z>] [-lerp <mode>] [-refine <mode>] <lightfield> -v Verbose on -size <x> <y> Size (in pixels) of display window -zoom <z> Zoom factor for display window (The actual window size will be x*z, y*z) -lerp uvst Start with full uvst interpolation filter -lerp uv Start with only uv interpolation (default) -lerp st Start with only st interpolation -lerp none Start with point sampling -refine all Auto-refine image when viewer isn't moving (this refines both uvst and zoom) -refine uvst Auto-refine uvst interpolation only -refine zoom Auto-refine pixel zoom only -refine off Never auto-refine image <lightfield> This can be the name of either a .lif file or a .lid file. If it is a .lid file, it will tell lifview where to find the raw .rgb images.
Except for commercial resale, lease, license or other commercial transactions, permission is hereby given to use, copy, and/or modify this software, provided that the above copyright notice and this permission notice appear in all copies of this software. No part of this software or any derivatives thereof may be used in the production of computer models for resale or for use in a commercial product.
This software is provided "as is" and without warranty of any kind, express, implied or otherwise, including without limitation, any warranty of merchantability or fitness for a particular purpose.
lightpack@graphics.stanford.edu
back to the LightPack home page.